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
feat(webhook/tls): read OpenShift APIServer TLS profile at startup, inject as WEBHOOK_TLS_* env vars
At startup the webhook calls occommon.SetupAPIServerTLSWatch (the same helper
used by the TektonConfig controller) to initialise the shared APIServer lister
and register a watcher. When the cluster TLS profile changes the webhook exits
with code 1; Kubernetes restartPolicy: Always restarts it so the new instance
picks up the updated profile.
After the watch is set up, GetTLSProfileFromAPIServer + TLSEnvVarsFromProfile
convert the current profile into "1.2"/"1.3" + comma-separated IANA cipher
strings and inject them as WEBHOOK_TLS_MIN_VERSION / WEBHOOK_TLS_CIPHER_SUITES /
WEBHOOK_TLS_CURVE_PREFERENCES before Knative bootstraps. Knative's
DefaultConfigFromEnv("WEBHOOK_") inside webhook.New() picks them up automatically.
No changes to kwebhook.Options, Deployment manifests, or the Kubernetes webhook.
Co-authored-by: Cursor <cursoragent@cursor.com>
0 commit comments