Documentation
¶
Overview ¶
Package kube contains helpers for interacting with a kubernetes cluster
Index ¶
- func KubeconfigFromNamespacedSecret(ctx context.Context, kClient client.Client, kubeconfig v1alpha1.Kubeconfig) ([]byte, error)
- func KubeconfigFromNamespacedSecretOrCluster(ctx context.Context, kClient client.Client, kubeconfig v1alpha1.Kubeconfig) (raw []byte, err error)
- func KubeconfigFromSecret(ctx context.Context, kClient client.Client, kubeconfig v1beta1.Kubeconfig, ...) ([]byte, error)
- func KubeconfigFromSecretOrCluster(ctx context.Context, kClient client.Client, kubeconfig v1beta1.Kubeconfig, ...) (raw []byte, err 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 KubeconfigFromNamespacedSecret ¶ added in v0.1.0
func KubeconfigFromNamespacedSecret(ctx context.Context, kClient client.Client, kubeconfig v1alpha1.Kubeconfig) ([]byte, error)
KubeconfigFromNamespacedSecret loads a kubeconfig from a cross-namespace secret in the cluster
func KubeconfigFromNamespacedSecretOrCluster ¶ added in v0.1.0
func KubeconfigFromNamespacedSecretOrCluster(ctx context.Context, kClient client.Client, kubeconfig v1alpha1.Kubeconfig) (raw []byte, err error)
KubeconfigFromNamespacedSecretOrCluster loads a kubeconfig from a cross-namespace secret or generates one from inCluster
func KubeconfigFromSecret ¶
func KubeconfigFromSecret(ctx context.Context, kClient client.Client, kubeconfig v1beta1.Kubeconfig, namespace string) ([]byte, error)
KubeconfigFromSecret loads a kubeconfig from a secret in the cluster
func KubeconfigFromSecretOrCluster ¶
func KubeconfigFromSecretOrCluster(ctx context.Context, kClient client.Client, kubeconfig v1beta1.Kubeconfig, namespace string) (raw []byte, err 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.