You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
validation: run skipper in validation mode inside webhook
We leave webhook binary for backward combitability but use skipper
in validation mode everywhere as source of truth
Signed-off-by: Mustafa Abdelrahman <[email protected]>
Copy file name to clipboardExpand all lines: config/config.go
+2-1Lines changed: 2 additions & 1 deletion
Original file line number
Diff line number
Diff line change
@@ -24,6 +24,7 @@ import (
24
24
"github.com/zalando/skipper/otel"
25
25
"github.com/zalando/skipper/proxy"
26
26
"github.com/zalando/skipper/swarm"
27
+
"github.com/zalando/skipper/validation"
27
28
)
28
29
29
30
typeConfigstruct {
@@ -543,7 +544,7 @@ func NewConfig() *Config {
543
544
flag.BoolVar(&cfg.Oauth2GrantInsecure, "oauth2-grant-insecure", false, "omits Secure attribute of the token cookie and uses http scheme for callback url")
544
545
flag.DurationVar(&cfg.WebhookTimeout, "webhook-timeout", 2*time.Second, "sets the webhook request timeout duration")
545
546
flag.BoolVar(&cfg.ValidationWebhookEnabled, "validation-webhook-enabled", false, "enables validation webhook for incoming requests")
546
-
flag.StringVar(&cfg.ValidationWebhookAddress, "validation-webhook-address", ":9000", "address of the validation webhook service")
547
+
flag.StringVar(&cfg.ValidationWebhookAddress, "validation-webhook-address", validation.DefaultHTTPSAddress, "address of the validation webhook service")
547
548
flag.StringVar(&cfg.ValidationWebhookCertFile, "validation-webhook-cert-file", "", "path to the certificate file for the validation webhook")
548
549
flag.StringVar(&cfg.ValidationWebhookKeyFile, "validation-webhook-key-file", "", "path to the key file for the validation webhook")
549
550
flag.BoolVar(&cfg.EnableAdvancedValidation, "enable-advanced-validation", false, "enables advanced validation logic for Kubernetes resources")
0 commit comments