Documentation ¶
Index ¶
- func AddEnvToUsage(cmd *cobra.Command, argToEnv map[string]string)
- func KubeConfig() (*rest.Config, error)
- func KubeConfigFlags(pf *pflag.FlagSet, argToEnv map[string]string)
- func LoggerFlags(pf *flag.FlagSet, argToEnv map[string]string)
- func NewClientLogger() logr.Logger
- func NewInstallClientLogger() logr.Logger
- func NewLogger() logr.Logger
- func TraceLevel() int
- type Checker
- type Getter
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func AddEnvToUsage ¶
AddEnvToUsage adds env variables to help
func KubeConfig ¶
KubeConfig uses kubeconfig pkg to return a valid kube config
func KubeConfigFlags ¶
KubeConfigFlags adds a kubeconfig flag to the set
func LoggerFlags ¶
LoggerFlags adds to viper flags
func NewInstallClientLogger ¶
New creates a new logger with our setup
Types ¶
type Checker ¶
Checker is the interface that wraps the Check method that checks if cfg can be used to connect to the Kubernetes cluster.
func NewChecker ¶
func NewChecker() Checker
NewChecker constructs a default checker that satisfies the Checker interface.
Click to show internal directories.
Click to hide internal directories.