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
|
return nil
|
||||||
},
|
},
|
||||||
}
|
}
|
||||||
flags := cmd.PersistentFlags()
|
flags := cmd.Flags()
|
||||||
opts.GlobalCommandOptions.AddFlags(flags)
|
opts.GlobalCommandOptions.AddFlags(flags)
|
||||||
flags.BoolVarP(&opts.Force, "force", "f", false, "Disable addons without prompting for confirmation.")
|
flags.BoolVarP(&opts.Force, "force", "f", false, "Disable addons without prompting for confirmation.")
|
||||||
return cmd
|
return cmd
|
||||||
|
|
|
@ -70,7 +70,7 @@ func NewCmdAddonsEnable(parentCommand string) *cobra.Command {
|
||||||
releaseVer = &version.ReleaseVersion{} // initialize to avoid panic
|
releaseVer = &version.ReleaseVersion{} // initialize to avoid panic
|
||||||
}
|
}
|
||||||
|
|
||||||
flags := cmd.PersistentFlags()
|
flags := cmd.Flags()
|
||||||
opts.GlobalCommandOptions.AddFlags(flags)
|
opts.GlobalCommandOptions.AddFlags(flags)
|
||||||
flags.IntVar(&opts.WaitComponentReadyTimeout, "pod-timeout", options.WaitComponentReadyTimeout, "Wait pod ready timeout.")
|
flags.IntVar(&opts.WaitComponentReadyTimeout, "pod-timeout", options.WaitComponentReadyTimeout, "Wait pod ready timeout.")
|
||||||
flags.IntVar(&opts.WaitAPIServiceReadyTimeout, "apiservice-timeout", 30, "Wait apiservice ready timeout.")
|
flags.IntVar(&opts.WaitAPIServiceReadyTimeout, "apiservice-timeout", 30, "Wait apiservice ready timeout.")
|
||||||
|
|
Loading…
Reference in New Issue