diff --git a/types/controlplane/config.go b/types/controlplane/config.go index 5e83c9a9..05428947 100644 --- a/types/controlplane/config.go +++ b/types/controlplane/config.go @@ -107,6 +107,10 @@ func ParseAndValidate() (*Config, error) { } } + if c.RegisterEndpoint { + c.Controllers = append(c.Controllers, "endpoint") + } + err = validator.New().Struct(&c) if err != nil { return nil, err diff --git a/types/controlplane/config_default.go b/types/controlplane/config_default.go index 5452d187..c43a2193 100644 --- a/types/controlplane/config_default.go +++ b/types/controlplane/config_default.go @@ -37,6 +37,7 @@ type Config struct { WebhookPort int `json:"webhookPort" validate:"gt=0,lte=65535" mod:"default=4443"` CertDir string `json:"certDir" validate:"required" mod:"default=/var/run/webhook-cert"` LeaderElection bool `json:"leaderElection"` + RegisterEndpoint bool `json:"registerEndpoint"` //deprecated NodeMaxConcurrent int `json:"nodeMaxConcurrent" validate:"gt=0,lte=10000" mod:"default=10"` PodMaxConcurrent int `json:"podMaxConcurrent" validate:"gt=0,lte=10000" mod:"default=10"`