Skip to content

Commit fa84d07

Browse files
committed
adds a list of available HTTP endpoints for the kube-controller-manager component under the /statusz page
1 parent 924b324 commit fa84d07

File tree

1 file changed

+8
-1
lines changed

1 file changed

+8
-1
lines changed

cmd/kube-controller-manager/app/controllermanager.go

Lines changed: 8 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -225,7 +225,14 @@ func Run(ctx context.Context, c *config.CompletedConfig) error {
225225
}
226226

227227
if utilfeature.DefaultFeatureGate.Enabled(zpagesfeatures.ComponentStatusz) {
228-
statusz.Install(unsecuredMux, kubeControllerManager, statusz.NewRegistry(c.ComponentGlobalsRegistry.EffectiveVersionFor(basecompatibility.DefaultKubeComponent)))
228+
statusz.Install(
229+
unsecuredMux,
230+
kubeControllerManager,
231+
statusz.NewRegistry(
232+
c.ComponentGlobalsRegistry.EffectiveVersionFor(basecompatibility.DefaultKubeComponent),
233+
statusz.WithListedPaths(unsecuredMux.ListedPaths()),
234+
),
235+
)
229236
}
230237

231238
handler := genericcontrollermanager.BuildHandlerChain(unsecuredMux, &c.Authorization, &c.Authentication)

0 commit comments

Comments
 (0)