Documentation ¶
Index ¶
- func GenerateSecret(cluster *unstructured.Unstructured, data []byte) *corev1.Secret
- func GenerateSecretForServiceAccountToken(cluster *unstructured.Unstructured, serviceAccountName string) *corev1.Secret
- func GenerateSecretWithOwner(cluster *unstructured.Unstructured, data []byte, owner metav1.OwnerReference) *corev1.Secret
- func New(clusterName, endpoint string, caCert []byte, token string) (*api.Config, error)
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.
Types ¶
This section is empty.
Click to show internal directories.
Click to hide internal directories.