From 101a41380a6968857890cc396c2d4352f900fd2b Mon Sep 17 00:00:00 2001 From: Icarus9913 Date: Fri, 2 Sep 2022 14:46:54 +0800 Subject: [PATCH] add comments for configuration Signed-off-by: Icarus9913 --- pkg/config/v1alpha1/types.go | 1 + pkg/manager/manager.go | 1 + 2 files changed, 2 insertions(+) diff --git a/pkg/config/v1alpha1/types.go b/pkg/config/v1alpha1/types.go index e67b62e514..1af58a0348 100644 --- a/pkg/config/v1alpha1/types.go +++ b/pkg/config/v1alpha1/types.go @@ -109,6 +109,7 @@ type ControllerMetrics struct { type ControllerHealth struct { // HealthProbeBindAddress is the TCP address that the controller should bind to // for serving health probes + // It can be set to "0" or "" to disable serving the health probe. // +optional HealthProbeBindAddress string `json:"healthProbeBindAddress,omitempty"` diff --git a/pkg/manager/manager.go b/pkg/manager/manager.go index 53716aa9fa..028d929d96 100644 --- a/pkg/manager/manager.go +++ b/pkg/manager/manager.go @@ -219,6 +219,7 @@ type Options struct { // HealthProbeBindAddress is the TCP address that the controller should bind to // for serving health probes + // It can be set to "0" or "" to disable serving the health probe. HealthProbeBindAddress string // Readiness probe endpoint name, defaults to "readyz"