options

package
v0.6.0 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: May 28, 2021 License: Apache-2.0 Imports: 1 Imported by: 1

Documentation

Index

Constants

View Source
const DefaultKarmadaClusterNamespace = "karmada-cluster"

DefaultKarmadaClusterNamespace defines the default namespace where the member cluster objects are stored. The secret owns by cluster objects will be stored in the namespace too.

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

	// ClusterNamespace holds the namespace name where the member cluster objects are stored.
	ClusterNamespace 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.

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL