flags

package
v1.18.3 Latest Latest
Warning

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

Go to latest
Published: Jul 10, 2024 License: Apache-2.0 Imports: 6 Imported by: 0

Documentation

Index

Constants

View Source
const (

	// PathDefault is the default value of the path flag if unset.
	PathDefault = "."

	// SkipAPIServerFlag is the flag name for SkipAPIServer below.
	SkipAPIServerFlag = "no-api-server-check"

	// OutputYAML specifies exporting the output in YAML format.
	OutputYAML = "yaml"

	// OutputJSON specifies exporting the output in JSON format.
	OutputJSON = "json"

	// DefaultHydrationOutput specifies the default location to write the hydrated output.
	DefaultHydrationOutput = "compiled"
)

Variables

View Source
var (
	// Contexts contains the list of .kubeconfig contexts that are targets of cross-cluster
	// commands.
	Contexts []string

	// Clusters contains the list of Cluster names (specified in clusters/) to perform an action on.
	Clusters []string

	// Path says where the Nomos directory is
	Path string

	// SkipAPIServer directs whether to try to contact the API Server for checks.
	SkipAPIServer bool

	// SourceFormat indicates the format of the Git repository.
	SourceFormat string

	// OutputFormat is the format of output.
	OutputFormat string

	// ClientTimeout is a flag value to specify how long to wait before timeout of client connection.
	ClientTimeout time.Duration

	// APIServerTimeout specifies the timeout for requests to the cluster API servers
	APIServerTimeout = restconfig.DefaultTimeout
)

Functions

func AddAPIServerTimeout added in v1.15.1

func AddAPIServerTimeout(cmd *cobra.Command)

AddAPIServerTimeout adds the --api-server-timeout flag

func AddClusters

func AddClusters(cmd *cobra.Command)

AddClusters adds the --clusters flag.

func AddContexts

func AddContexts(cmd *cobra.Command)

AddContexts adds the --contexts flag.

func AddOutputFormat

func AddOutputFormat(cmd *cobra.Command)

AddOutputFormat adds the --format flag.

func AddPath

func AddPath(cmd *cobra.Command)

AddPath adds the --path flag.

func AddSkipAPIServerCheck

func AddSkipAPIServerCheck(cmd *cobra.Command)

AddSkipAPIServerCheck adds the --no-api-server-check flag.

func AddSourceFormat

func AddSourceFormat(cmd *cobra.Command)

AddSourceFormat adds the --source-format flag.

func AllClusters

func AllClusters() bool

AllClusters returns true if all clusters should be processed.

Types

This section is empty.

Jump to

Keyboard shortcuts

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