Skip to content

Commit

Permalink
Merge pull request #106520 from pohly/log-print-flags
Browse files Browse the repository at this point in the history
kubelet: print flags after initializing logging
  • Loading branch information
k8s-ci-robot committed Nov 18, 2021
2 parents 3b9bd22 + 316ac13 commit 1304dfd
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion cmd/kubelet/app/server.go
Original file line number Diff line number Diff line change
Expand Up @@ -181,7 +181,6 @@ HTTP server: The kubelet can also listen for HTTP and respond to a simple API

// short-circuit on verflag
verflag.PrintAndExitIfRequested()
cliflag.PrintFlags(cleanFlagSet)

// set feature gates from initial flags-based config
if err := utilfeature.DefaultMutableFeatureGate.SetFromMap(kubeletConfig.FeatureGates); err != nil {
Expand Down Expand Up @@ -266,6 +265,7 @@ HTTP server: The kubelet can also listen for HTTP and respond to a simple API
klog.ErrorS(err, "Failed to initialize logging")
os.Exit(1)
}
cliflag.PrintFlags(cleanFlagSet)

// construct a KubeletServer from kubeletFlags and kubeletConfig
kubeletServer := &options.KubeletServer{
Expand Down

0 comments on commit 1304dfd

Please sign in to comment.