Skip to content

Commit

Permalink
craned support klog flag
Browse files Browse the repository at this point in the history
  • Loading branch information
Cloudzp committed Aug 22, 2024
1 parent bcac6a5 commit df15e75
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions cmd/craned/app/manager.go
Original file line number Diff line number Diff line change
Expand Up @@ -17,6 +17,7 @@ import (
clientgoscheme "k8s.io/client-go/kubernetes/scheme"
"k8s.io/client-go/rest"
"k8s.io/client-go/scale"
"k8s.io/component-base/logs"
"k8s.io/klog/v2"
ctrl "sigs.k8s.io/controller-runtime"
"sigs.k8s.io/controller-runtime/pkg/cache"
Expand Down Expand Up @@ -84,6 +85,7 @@ func NewManagerCommand(ctx context.Context) *cobra.Command {

cmd.Flags().AddGoFlagSet(flag.CommandLine)
opts.AddFlags(cmd.Flags())
logs.AddFlags(cmd.Flags())
utilfeature.DefaultMutableFeatureGate.AddFlag(cmd.Flags())

return cmd
Expand Down

0 comments on commit df15e75

Please sign in to comment.