Merge pull request #3298 from lonelyCZ/pr-addons-flags
Fixed unable to view the options for karmadactl addons enable/disable
This commit is contained in:
commit
8f32181bf0
|
@ -57,7 +57,7 @@ func NewCmdAddonsDisable(parentCommand string) *cobra.Command {
|
|||
return nil
|
||||
},
|
||||
}
|
||||
flags := cmd.PersistentFlags()
|
||||
flags := cmd.Flags()
|
||||
opts.GlobalCommandOptions.AddFlags(flags)
|
||||
flags.BoolVarP(&opts.Force, "force", "f", false, "Disable addons without prompting for confirmation.")
|
||||
return cmd
|
||||
|
|
|
@ -70,7 +70,7 @@ func NewCmdAddonsEnable(parentCommand string) *cobra.Command {
|
|||
releaseVer = &version.ReleaseVersion{} // initialize to avoid panic
|
||||
}
|
||||
|
||||
flags := cmd.PersistentFlags()
|
||||
flags := cmd.Flags()
|
||||
opts.GlobalCommandOptions.AddFlags(flags)
|
||||
flags.IntVar(&opts.WaitComponentReadyTimeout, "pod-timeout", options.WaitComponentReadyTimeout, "Wait pod ready timeout.")
|
||||
flags.IntVar(&opts.WaitAPIServiceReadyTimeout, "apiservice-timeout", 30, "Wait apiservice ready timeout.")
|
||||
|
|
Loading…
Reference in New Issue