genericclioptions

package
v0.10.0 Latest Latest
Warning

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

Go to latest
Published: Oct 24, 2024 License: Apache-2.0 Imports: 10 Imported by: 19

Documentation

Overview

Copyright Contributors to the Open Cluster Management project

Copyright Contributors to the Open Cluster Management project

Index

Constants

This section is empty.

Variables

View Source
var HubMutableFeatureGate = featuregate.NewFeatureGate()
View Source
var SpokeMutableFeatureGate = featuregate.NewFeatureGate()

Functions

func ConvertToFeatureGateAPI added in v0.6.0

func ConvertToFeatureGateAPI(featureGates featuregate.MutableFeatureGate, defaultFeatureGate map[featuregate.Feature]featuregate.FeatureSpec) []operatorv1.FeatureGate

Types

type ClusterOption added in v0.6.0

type ClusterOption struct {
	Cluster  string
	Clusters []string
	// contains filtered or unexported fields
}

func NewClusterOption added in v0.6.0

func NewClusterOption() *ClusterOption

func (*ClusterOption) AddFlags added in v0.6.0

func (c *ClusterOption) AddFlags(flags *pflag.FlagSet)

func (*ClusterOption) AllClusters added in v0.6.0

func (c *ClusterOption) AllClusters() sets.Set[string]

func (*ClusterOption) AllowUnset added in v0.6.0

func (c *ClusterOption) AllowUnset() *ClusterOption

func (*ClusterOption) Validate added in v0.6.0

func (c *ClusterOption) Validate() error

type ClusteradmFlags

type ClusteradmFlags struct {
	KubectlFactory cmdutil.Factory
	//if set the resources will be sent to stdout instead of being applied
	DryRun  bool
	Timeout int
	Context string
}

func NewClusteradmFlags

func NewClusteradmFlags(f cmdutil.Factory) *ClusteradmFlags

NewClusteradmFlags returns ClusteradmFlags with default values set

func (*ClusteradmFlags) AddFlags

func (f *ClusteradmFlags) AddFlags(flags *pflag.FlagSet)

func (*ClusteradmFlags) SetContext added in v0.3.1

func (f *ClusteradmFlags) SetContext(context *string)

SetContext will set current context from command line argument --context.

func (*ClusteradmFlags) ValidateHub added in v0.4.1

func (f *ClusteradmFlags) ValidateHub() error

func (*ClusteradmFlags) ValidateManagedCluster added in v0.4.1

func (f *ClusteradmFlags) ValidateManagedCluster() error

Jump to

Keyboard shortcuts

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