options

package
v1.3.6 Latest Latest
Warning

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

Go to latest
Published: Jun 1, 2023 License: Apache-2.0 Imports: 6 Imported by: 1

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

func NewCmdOptions added in v1.3.0

func NewCmdOptions(parentCommand string, out io.Writer) *cobra.Command

NewCmdOptions implements the options command

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
}

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