mirror of
https://github.com/opencloud-eu/opencloud.git
synced 2025-12-30 17:00:57 -06:00
@@ -95,7 +95,11 @@ func GetAnnotatedVariables(s interface{}) []ConfigField {
|
||||
desc = re.ReplaceAllString(desc, "\\$1")
|
||||
re = regexp.MustCompile(`(\|)`)
|
||||
v = re.ReplaceAllString(v, "\\$1")
|
||||
fields = append(fields, ConfigField{EnvVars: td, DefaultValue: v, Description: desc, Type: value.Type().Name()})
|
||||
typeName := value.Type().Name()
|
||||
if typeName == "" {
|
||||
typeName = value.Type().String()
|
||||
}
|
||||
fields = append(fields, ConfigField{EnvVars: td, DefaultValue: v, Description: desc, Type: typeName})
|
||||
case reflect.Ptr:
|
||||
// PolicySelectors in the Proxy are being skipped atm
|
||||
// they are not configurable via env vars, if that changes
|
||||
|
||||
Reference in New Issue
Block a user