Documentation
¶
Index ¶
- func CleanKubeconfig(in []byte) ([]byte, error)
- func NewClientConfig(kubeConfig []byte) (*rest.Config, error)
- func NewClientFromConfig(config *rest.Config) (*kubernetes.Clientset, error)
- func NewClientFromKubeConfig(kubeConfig []byte) (*kubernetes.Clientset, error)
- func NewClientFromKubeConfigWithTimeout(kubeConfig []byte, timeout time.Duration) (*kubernetes.Clientset, error)
- func NewInClusterClient() (*kubernetes.Clientset, error)
- func NewRawKubeConfigLoader(kubeConfig []byte, overrides *clientcmd.ConfigOverrides) (clientcmd.ClientConfig, error)
- type DynamicFileClient
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func CleanKubeconfig ¶
CleanKubeconfig cleans up a serialized kubeconfig and returns it in the same format
func NewClientConfig ¶
NewClientConfig creates a Kubernetes client config from raw kube config.
func NewClientFromConfig ¶
func NewClientFromConfig(config *rest.Config) (*kubernetes.Clientset, error)
NewClient creates a new Kubernetes client from config.
func NewClientFromKubeConfig ¶
func NewClientFromKubeConfig(kubeConfig []byte) (*kubernetes.Clientset, error)
NewClientFromKubeConfig creates a new Kubernetes client from raw kube config.
func NewClientFromKubeConfigWithTimeout ¶
func NewClientFromKubeConfigWithTimeout(kubeConfig []byte, timeout time.Duration) (*kubernetes.Clientset, error)
NewClientFromKubeConfig creates a new Kubernetes client from raw kube config.
func NewInClusterClient ¶
func NewInClusterClient() (*kubernetes.Clientset, error)
NewInClusterClient returns a Kubernetes client based on in-cluster configuration.
func NewRawKubeConfigLoader ¶
func NewRawKubeConfigLoader(kubeConfig []byte, overrides *clientcmd.ConfigOverrides) (clientcmd.ClientConfig, error)
Types ¶
type DynamicFileClient ¶
type DynamicFileClient struct {
// contains filtered or unexported fields
}
DynamicFileClient interacts with a cluster with file manifests.
func NewDynamicFileClient ¶
func NewDynamicFileClient(client client.Client) DynamicFileClient
NewDynamicFileClient returns a new DynamicFileClient.
Click to show internal directories.
Click to hide internal directories.