Documentation ¶
Index ¶
Constants ¶
View Source
const DefaultKarmadaClusterNamespace = "karmada-cluster"
DefaultKarmadaClusterNamespace defines the default namespace where the member cluster secrets are stored.
View Source
const DefaultKarmadactlCommandDuration = 60 * time.Second
DefaultKarmadactlCommandDuration defines the default timeout for karmadactl execute
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type GlobalCommandOptions ¶
type GlobalCommandOptions struct { // KubeConfig holds the control plane KUBECONFIG file path. KubeConfig string // ClusterContext is the name of the cluster context in control plane KUBECONFIG file. // Default value is the current-context. KarmadaContext string // DryRun tells if run the command in dry-run mode, without making any server requests. DryRun bool }
GlobalCommandOptions holds the configuration shared by the all sub-commands of `karmadactl`.
func (*GlobalCommandOptions) AddFlags ¶
func (o *GlobalCommandOptions) AddFlags(flags *pflag.FlagSet)
AddFlags adds flags to the specified FlagSet.
Click to show internal directories.
Click to hide internal directories.