Documentation
¶
Overview ¶
Package kube contains helpers for interacting with a kubernetes cluster
Index ¶
- func KubeconfigFromSecret(ctx context.Context, kClient client.Client, kubeconfig *v1alpha1.Kubeconfig) ([]byte, error)
- func KubeconfigFromSecretOrCluster(ctx context.Context, kClient client.Client, kubeconfig *v1alpha1.Kubeconfig) ([]byte, error)
- func RawFromInClusterRestConfig() ([]byte, error)
- func RawFromRestConfig(rc *rest.Config) ([]byte, error)
- func RestConfigFromKubeconfig(kubeconfig []byte) (*rest.Config, error)
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func KubeconfigFromSecret ¶
func KubeconfigFromSecret(ctx context.Context, kClient client.Client, kubeconfig *v1alpha1.Kubeconfig) ([]byte, error)
KubeconfigFromSecret loads a kubeconfig from a secret in the cluster
func KubeconfigFromSecretOrCluster ¶
func KubeconfigFromSecretOrCluster(ctx context.Context, kClient client.Client, kubeconfig *v1alpha1.Kubeconfig) ([]byte, error)
KubeconfigFromSecretOrCluster loads a kubeconfig from a secret or generates one from inCluster
func RawFromInClusterRestConfig ¶
RawFromInClusterRestConfig creates a kubeconfig from an incluster rest config
func RawFromRestConfig ¶
RawFromRestConfig creates a raw kubeconfig from a REST Config
Types ¶
This section is empty.
Click to show internal directories.
Click to hide internal directories.