kubeconfig

package
v1.53.1 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Oct 24, 2023 License: Apache-2.0 Imports: 5 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func GenerateSecret

func GenerateSecret(cluster *unstructured.Unstructured, data []byte) *corev1.Secret

GenerateSecret returns a Kubernetes secret for the given Cluster and kubeconfig data.

func GenerateSecretForServiceAccountToken

func GenerateSecretForServiceAccountToken(cluster *unstructured.Unstructured, serviceAccountName string) *corev1.Secret

func GenerateSecretWithOwner

func GenerateSecretWithOwner(cluster *unstructured.Unstructured, data []byte, owner metav1.OwnerReference) *corev1.Secret

GenerateSecretWithOwner returns a Kubernetes secret for the given Cluster name, namespace, kubeconfig data, and ownerReference.

func New

func New(clusterName, endpoint string, caCert []byte, token string) (*api.Config, error)

New creates a new Kubeconfig using the cluster name and specified endpoint.

Types

This section is empty.

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL