From 10dc325a69bc5f232cfe53da25d6867e54206285 Mon Sep 17 00:00:00 2001 From: Richa Banker Date: Thu, 28 Mar 2024 19:41:00 -0700 Subject: [PATCH] Add flagz implementation and enablement in apiserver Kubernetes-commit: da8dc433e9b5fb29f3cc91f79ed15f366addefd1 --- pkg/server/config.go | 2 ++ 1 file changed, 2 insertions(+) diff --git a/pkg/server/config.go b/pkg/server/config.go index 7c06dd8e8..ee037aefe 100644 --- a/pkg/server/config.go +++ b/pkg/server/config.go @@ -79,6 +79,7 @@ import ( "k8s.io/component-base/metrics/prometheus/slis" "k8s.io/component-base/tracing" utilversion "k8s.io/component-base/version" + "k8s.io/component-base/zpages/flagz" "k8s.io/klog/v2" openapicommon "k8s.io/kube-openapi/pkg/common" "k8s.io/kube-openapi/pkg/spec3" @@ -189,6 +190,7 @@ type Config struct { LivezChecks []healthz.HealthChecker // The default set of readyz-only checks. There might be more added via AddReadyzChecks dynamically. ReadyzChecks []healthz.HealthChecker + Flagz flagz.Reader // LegacyAPIGroupPrefixes is used to set up URL parsing for authorization and for validating requests // to InstallLegacyAPIGroup. New API servers don't generally have legacy groups at all. LegacyAPIGroupPrefixes sets.String