From db1fcdabb17ccd852a312de0ad7255a36ce25e64 Mon Sep 17 00:00:00 2001 From: Tim Ramlot <42113979+inteon@users.noreply.github.com> Date: Wed, 16 Aug 2023 11:08:36 +0200 Subject: [PATCH] add comment explaining port 0 behavior Signed-off-by: Tim Ramlot <42113979+inteon@users.noreply.github.com> --- internal/apis/config/webhook/types.go | 2 ++ pkg/apis/config/webhook/v1alpha1/types.go | 2 ++ 2 files changed, 4 insertions(+) diff --git a/internal/apis/config/webhook/types.go b/internal/apis/config/webhook/types.go index f626a2a65..97b0ef541 100644 --- a/internal/apis/config/webhook/types.go +++ b/internal/apis/config/webhook/types.go @@ -26,10 +26,12 @@ type WebhookConfiguration struct { metav1.TypeMeta // securePort is the port number to listen on for secure TLS connections from the kube-apiserver. + // If 0, a random available port will be chosen. // Defaults to 6443. SecurePort int32 // healthzPort is the port number to listen on (using plaintext HTTP) for healthz connections. + // If 0, a random available port will be chosen. // Defaults to 6080. HealthzPort int32 diff --git a/pkg/apis/config/webhook/v1alpha1/types.go b/pkg/apis/config/webhook/v1alpha1/types.go index 2c918b1db..ef592f90f 100644 --- a/pkg/apis/config/webhook/v1alpha1/types.go +++ b/pkg/apis/config/webhook/v1alpha1/types.go @@ -26,10 +26,12 @@ type WebhookConfiguration struct { metav1.TypeMeta `json:",inline"` // securePort is the port number to listen on for secure TLS connections from the kube-apiserver. + // If 0, a random available port will be chosen. // Defaults to 6443. SecurePort *int32 `json:"securePort,omitempty"` // healthzPort is the port number to listen on (using plaintext HTTP) for healthz connections. + // If 0, a random available port will be chosen. // Defaults to 6080. HealthzPort *int32 `json:"healthzPort,omitempty"`