Documentation ¶
Overview ¶
Package clientcmd contains convenience methods for working with the kubeconfig and loading specific configurations of api.Config and rest.Config.
Index ¶
- func NewClusterAPIClientForDefaultSearchPath(kubeconfigPath string, overrides clientcmd.ConfigOverrides) (*clientset.Clientset, error)
- func NewConfigOverrides() clientcmd.ConfigOverrides
- func NewCoreClientSetForDefaultSearchPath(kubeconfigPath string, overrides clientcmd.ConfigOverrides) (*kubernetes.Clientset, error)
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func NewClusterAPIClientForDefaultSearchPath ¶
func NewClusterAPIClientForDefaultSearchPath(kubeconfigPath string, overrides clientcmd.ConfigOverrides) (*clientset.Clientset, error)
NewClusterAPIClientForDefaultSearchPath creates a Cluster API 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.
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 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.