options

package
v1.0.4 Latest Latest
Warning

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

Go to latest
Published: Jul 6, 2022 License: Apache-2.0 Imports: 2 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.

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.

Jump to

Keyboard shortcuts

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