flagutils

package
v1.17.6 Latest Latest
Warning

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

Go to latest
Published: Aug 28, 2024 License: Apache-2.0 Imports: 14 Imported by: 27

Documentation

Index

Constants

View Source
const (
	OutputFlag     = "output"
	FileFlag       = "file"
	DryRunFlag     = "dry-run"
	VersionFlag    = "version"
	LocalChartFlag = "local-chart"
	ShowYamlFlag   = "show-yaml"
)
View Source
const LocalClusterDomainOverride = "local-cluster-domain-override"

Variables

View Source
var DefaultNamespace = defaults.GlooSystem

DefaultNamespace wraps defaults.GlooSystem to separate global Gloo defaults from glooctl flags

Functions

func AddAuthConfigFlags added in v1.0.0

func AddAuthConfigFlags(set *pflag.FlagSet, ac *options.InputAuthConfig)

func AddCheckOutputFlag added in v1.9.0

func AddCheckOutputFlag(set *pflag.FlagSet, outputType *printers.OutputType)

func AddClusterFlags added in v1.5.0

func AddClusterFlags(set *pflag.FlagSet, register *options.Cluster)

func AddConfigFlagsOIDCSettings added in v0.18.42

func AddConfigFlagsOIDCSettings(set *pflag.FlagSet, oidc *options.OIDCSettings)

func AddConsulConfigFlags added in v0.18.23

func AddConsulConfigFlags(set *pflag.FlagSet, consul *contextoptions.Consul)

func AddCreateUpstreamFlags added in v0.18.16

func AddCreateUpstreamFlags(set *pflag.FlagSet, upstreamType string, upstream *options.InputUpstream)

func AddDebugFlags added in v0.18.44

func AddDebugFlags(set *pflag.FlagSet, top *options.Top)

func AddDeregisterFlags added in v1.5.0

func AddDeregisterFlags(set *pflag.FlagSet, register *options.Register)

func AddDryRunFlag added in v0.13.5

func AddDryRunFlag(set *pflag.FlagSet, dryRun *bool)

func AddEnterpriseInstallFlags added in v0.18.42

func AddEnterpriseInstallFlags(set *pflag.FlagSet, install *options.Install)

func AddExcludeCheckFlag added in v1.9.25

func AddExcludeCheckFlag(set *pflag.FlagSet, strarrptr *[]string)

func AddFederationDemoFlags added in v1.5.0

func AddFederationDemoFlags(set *pflag.FlagSet, install *options.Install)

func AddFileFlag

func AddFileFlag(set *pflag.FlagSet, strptr *string)

func AddGetProxyFlags added in v1.17.0

func AddGetProxyFlags(set *pflag.FlagSet, proxy *options.GetProxy)

func AddGlooInstallFlags added in v1.5.0

func AddGlooInstallFlags(set *pflag.FlagSet, install *options.Install)

func AddGlooUninstallFlags added in v1.5.0

func AddGlooUninstallFlags(set *pflag.FlagSet, opts *options.HelmUninstall)

func AddIncludeUpstreamsFlag added in v1.7.0

func AddIncludeUpstreamsFlag(set *pflag.FlagSet, boolptr *bool)

func AddKnativeInstallFlags added in v0.17.0

func AddKnativeInstallFlags(set *pflag.FlagSet, install *options.Knative)

func AddKubeConfigFlag added in v0.18.43

func AddKubeConfigFlag(set *pflag.FlagSet, kubeConfig *string)

func AddKubeContextFlag added in v1.14.0

func AddKubeContextFlag(set *pflag.FlagSet, KubeContext *string)

AddKubeContextFlag adds a flag to our flag set that sets the kube context we use when interacting with kubernetes

func AddLocalChartFlag added in v1.14.0

func AddLocalChartFlag(set *pflag.FlagSet, localChart *string)

func AddMetadataFlags

func AddMetadataFlags(set *pflag.FlagSet, metaptr *core.Metadata)

func AddNamespaceFlag

func AddNamespaceFlag(set *pflag.FlagSet, strptr *string)

func AddOutputFlag

func AddOutputFlag(set *pflag.FlagSet, outputType *printers.OutputType)

func AddPodSelectorFlag added in v1.13.0

func AddPodSelectorFlag(set *pflag.FlagSet, strptr *string)

func AddReadOnlyFlag added in v1.14.0

func AddReadOnlyFlag(set *pflag.FlagSet, readOnly *bool)

AddReadOnlyFlag adds a flag to our flag set that indicates we shouldn't do anything that requires RBAC create permissions

func AddRegisterFlags added in v1.5.0

func AddRegisterFlags(set *pflag.FlagSet, register *options.Register)

func AddResourceNamespaceFlag added in v1.13.0

func AddResourceNamespaceFlag(set *pflag.FlagSet, strptr *[]string)

func AddRouteFlags

func AddRouteFlags(set *pflag.FlagSet, route *options.InputRoute)

func AddShowYamlFlag added in v1.14.0

func AddShowYamlFlag(set *pflag.FlagSet, showYaml *bool)

func AddUpstreamFlag added in v1.5.0

func AddUpstreamFlag(set *pflag.FlagSet, strptr *string)

func AddVaultSecretFlags added in v0.18.23

func AddVaultSecretFlags(set *pflag.FlagSet, vault *options.Vault)

func AddVerboseFlag added in v0.17.0

func AddVerboseFlag(set *pflag.FlagSet, opts *options.Options)

currently only used by install/uninstall/dashboard but should be changed if it gets shared by more

func AddVersionFlag added in v1.14.0

func AddVersionFlag(set *pflag.FlagSet, version *string)

func AddVirtualServiceFlags

func AddVirtualServiceFlags(set *pflag.FlagSet, vs *options.InputVirtualService)

func RemoveRouteFlags

func RemoveRouteFlags(set *pflag.FlagSet, route *options.RemoveRoute)

Types

This section is empty.

Jump to

Keyboard shortcuts

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