diff --git a/localdev/kubechecks/values.yaml b/localdev/kubechecks/values.yaml index 9e5473e3..208be89a 100644 --- a/localdev/kubechecks/values.yaml +++ b/localdev/kubechecks/values.yaml @@ -1,6 +1,8 @@ configMap: create: true env: + GRPC_ENFORCE_ALPN_ENABLED: false + KUBECHECKS_ALLOWED_NAMESPACES: httpbin,httpdump-a KUBECHECKS_LOG_LEVEL: debug KUBECHECKS_ENABLE_WEBHOOK_CONTROLLER: "false" KUBECHECKS_ARGOCD_API_INSECURE: "true" diff --git a/pkg/config/config.go b/pkg/config/config.go index b158cf93..923d9b15 100644 --- a/pkg/config/config.go +++ b/pkg/config/config.go @@ -105,6 +105,11 @@ func NewWithViper(v *viper.Viper) (ServerConfig, error) { return time.ParseDuration(input) } + if in.String() == "string" && out.String() == "[]string" { + input := value.(string) + return []string{input}, nil + } + return value, nil } }); err != nil {