options

package
v0.0.0-...-4f82633 Latest Latest
Warning

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

Go to latest
Published: May 14, 2019 License: Apache-2.0 Imports: 8 Imported by: 0

Documentation

Index

Constants

View Source
const (
	DefaultFederationGroup   = "types.kubefed.k8s.io"
	DefaultFederationVersion = "v1alpha1"
)

Default value for shared Federation group across enable and disable subcommands of `kubefedctl`.

Variables

This section is empty.

Functions

func GetScopeFromKubefedConfig

func GetScopeFromKubefedConfig(hostConfig *rest.Config, namespace string) (apiextv1b1.ResourceScope, error)

Types

type CommonEnableOptions

type CommonEnableOptions struct {
	TargetName      string
	FederationGroup string
	TargetVersion   string
}

CommonEnableOptions holds the common configuration required by the enable and disable subcommands of `kubefedctl`.

func (*CommonEnableOptions) CommonSubcommandBind

func (o *CommonEnableOptions) CommonSubcommandBind(flags *pflag.FlagSet, federationGroupUsage, targetVersionUsage string)

CommonSubcommandBind adds the common subcommand flags to the flagset passed in.

func (*CommonEnableOptions) SetName

func (o *CommonEnableOptions) SetName(args []string) error

SetName sets the name from the args passed in for the required positional argument.

type CommonJoinOptions

type CommonJoinOptions struct {
	ClusterName     string
	ClusterContext  string
	HostClusterName string
}

CommonJoinOptions holds the common configuration required by the join and unjoin subcommands of `kubefedctl`.

func (*CommonJoinOptions) CommonSubcommandBind

func (o *CommonJoinOptions) CommonSubcommandBind(flags *pflag.FlagSet)

CommonSubcommandBind adds the common subcommand flags to the flagset passed in.

func (*CommonJoinOptions) SetName

func (o *CommonJoinOptions) SetName(args []string) error

SetName sets the name from the args passed in for the required positional argument.

type GlobalSubcommandOptions

type GlobalSubcommandOptions struct {
	HostClusterContext string
	KubefedNamespace   string
	Kubeconfig         string
	DryRun             bool
}

GlobalSubcommandOptions holds the configuration required by the subcommands of `kubefedctl`.

func (*GlobalSubcommandOptions) GlobalSubcommandBind

func (o *GlobalSubcommandOptions) GlobalSubcommandBind(flags *pflag.FlagSet)

GlobalSubcommandBind adds the global subcommand flags to the flagset passed in.

Jump to

Keyboard shortcuts

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