add comment explaining port 0 behavior

Signed-off-by: Tim Ramlot <42113979+inteon@users.noreply.github.com>
This commit is contained in:
Tim Ramlot 2023-08-16 11:08:36 +02:00
parent b19d11d267
commit db1fcdabb1
No known key found for this signature in database
GPG Key ID: 47428728E0C2878D
2 changed files with 4 additions and 0 deletions

View File

@ -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

View File

@ -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"`