Documentation
¶
Index ¶
- func GetAllContexts() ([]string, error)
- func GetDefaultContextAndNamespace() (defaultContext string, defaultNamespace string)
- func GetNamespaceForContext(context string) (namespace string, err error)
- func GetNamespacesForContext(ctx context.Context, kubeCtx string) ([]string, error)
- func InitScheme(scheme *runtime.Scheme)
- func SetupClientGo(context string) (kubernetes.Interface, error)
- type Client
- type ClientOverride
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func GetAllContexts ¶
func GetNamespaceForContext ¶
func GetNamespacesForContext ¶
func InitScheme ¶
func SetupClientGo ¶
func SetupClientGo(context string) (kubernetes.Interface, error)
Types ¶
type Client ¶
func SetupControllerRuntimeClient ¶
func SetupControllerRuntimeClient(overrides ...ClientOverride) *Client
type ClientOverride ¶
type ClientOverride func(*clientcmd.ConfigOverrides)
func WithKubeContext ¶
func WithKubeContext(kubeCtx string) ClientOverride
Click to show internal directories.
Click to hide internal directories.