# Functions
AddClusterFlag adds a common --cluster flag for cluster name.
AddCommonFlagsForFlux configures the flags required to install Flux on a cluster and have it point to the specified Git repository.
AddCommonFlagsForGit configures the flags required to interact with a Git repository.
AddCommonFlagsForKubeconfig adds common flags for controlling how output kubeconfig is written.
AddCommonFlagsForKubernetes configures the flags required to interact with Kubernetes cluster.
AddCommonFlagsForProfile configures the flags required to enable a profile.
AddConfigFileFlag adds common --config-file flag.
AddLoadBalancerIPFlag adds a common --load-balancer-ip flag for load balancer ip.
AddLoadBalancerResourceGroupFlag adds a common --load-balancer-ip-rg flag for load balancer ip resource group.
AddLocationFlag adds common --location flag.
AddResourceCmd create a registers a new command under the given verb command.
AddVersionFlag adds common --version flag.
AddWaitFlag adds common --wait flag.
AddWaitFlagWithFullDescription adds common --wait flag.
ClusterNameFlag returns the flag to use for the cluster name taking the principal resource into account.
ErrCannotUseWithConfigFile is a common error message.
ErrClusterFlagAndArg wraps ErrFlagAndArg() by passing in the proper flag name.
ErrFlagAndArg may be used to err for options that can be given as flags /and/ arg but only one is allowed to be used.
ErrMustBeSet is a common error message.
ErrUnsupportedNameArg reports unsupported usage of `name` argument.
GetNameArg tests to ensure there is only 1 name argument.
LoadConfigFromFile loads ClusterConfig from configFile.
NewGitOpsConfigLoader creates a new ClusterConfigLoader which handles loading of ClusterConfigFile v.s.
NewGrouping creates an instance of Grouping.
NewMetadataLoader handles loading of clusterConfigFile vs using flags for all commands that require only metadata fields, e.g.
ValidateGitOptions validates the provided Git options.
# Constants
IncompatibleFlags is a common substring of an error message.
# Structs
Cmd hold common attributes between commands.
FlagGrouping holds a superset of all flagsets for all commands.
InstallOpts are the installation options for Flux.
KubernetesOpts common kubernetes opts.
NamedFlagSetGroup holds a single group of flagsets.
# Interfaces
ClusterConfigLoader is an interface that loaders should implement.