Documentation ¶
Overview ¶
Package clientcmd contains convenience methods for working with the kubeconfig and loading specific configurations of api.Config and rest.Config.
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func NewConfigOverrides ¶
func NewConfigOverrides() clientcmd.ConfigOverrides
This is a convenience method to prevent the need of importing both this version of clientcmd and the client-go version
func NewControllerRuntimeClient ¶ added in v0.2.0
func NewControllerRuntimeClient(kubeconfigPath string, overrides clientcmd.ConfigOverrides) (client.Client, error)
NewControllerRuntimeClient creates a controller-runtime Client. If the kubeconfigPath is specified then the configuration is loaded from that path, otherwise the default kubeconfig search path is used. The overrides parameter is used to select a specific context of the config, for example, select the context with a given cluster name or namespace.
func NewCoreClientSetForDefaultSearchPath ¶
func NewCoreClientSetForDefaultSearchPath(kubeconfigPath string, overrides clientcmd.ConfigOverrides) (*kubernetes.Clientset, error)
NewCoreClientSetForDefaultSearchPath creates a core kubernetes clientset. If the kubeconfigPath is specified then the configuration is loaded from that path, otherwise the default kubeconfig search path is used. The overrides parameter is used to select a specific context of the config, for example, select the context with a given cluster name or namespace.
Types ¶
This section is empty.