Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
Types ¶
type Options ¶
type Options struct { PrintFlags *genericclioptions.PrintFlags PrintObject printers.ResourcePrinterFunc RawConfig *clientcmdapi.Config // the starting kubeconfig ResultingConfig *clientcmdapi.Config // holds configs we are keeping CleanedUpConfig *clientcmdapi.Config // holds configs that were removed CleanupIgnoreConfig *k8sv1.ConfigMap IgnoreContexts []string ConnectTimeoutSeconds int KubeconfigPath string CleanupUsers bool CleanupClusters bool PrintRaw bool PrintRemoved bool genericclioptions.IOStreams }
Options holds configs used to cleanup a kubeconfig file
func (*Options) Complete ¶
Complete sets all information required for cleaning up the current KUBECONFIG
func (*Options) NewRestClientForContext ¶
func (o *Options) NewRestClientForContext(ctxname string) (*kubernetes.Clientset, error)
NewRestClientForContext initializes an API server REST client from a given context
Click to show internal directories.
Click to hide internal directories.