Documentation ¶
Index ¶
- func CreateClusterDeployment(dynamicClient dynamic.Interface, clusterName string) error
- func CreateManagedCluster(clusterClient clusterclient.Interface, name string, labels ...Label) (*clusterv1.ManagedCluster, error)
- func CreateManagedClusterWithShortLeaseDuration(clusterClient clusterclient.Interface, name string) (*clusterv1.ManagedCluster, error)
- func DeleteClusterDeployment(dynamicClient dynamic.Interface, clusterName string) error
- func InstallClusterDeployment(kubeClient kubernetes.Interface, dynamicClient dynamic.Interface, ...) error
- func Logf(format string, args ...interface{})
- func NewAutoImportSecret(kubeClient kubernetes.Interface, clusterName string) (*corev1.Secret, error)
- func NewAutoImportSecretWithToken(kubeClient kubernetes.Interface, dynamicClient dynamic.Interface, ...) (*corev1.Secret, error)
- func NewCSR(labels ...Label) *certificatesv1.CertificateSigningRequest
- func NewInvalidAutoImportSecret(kubeClient kubernetes.Interface, dynamicClient dynamic.Interface, ...) (*corev1.Secret, error)
- func ToImportResoruces(importYaml []byte) []*unstructured.Unstructured
- func ToKlusterlet(obj *unstructured.Unstructured) *operatorv1.Klusterlet
- func ValidateImportSecret(importSecret *corev1.Secret) error
- type Label
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func CreateClusterDeployment ¶
func CreateManagedCluster ¶
func CreateManagedCluster(clusterClient clusterclient.Interface, name string, labels ...Label) (*clusterv1.ManagedCluster, error)
func CreateManagedClusterWithShortLeaseDuration ¶
func CreateManagedClusterWithShortLeaseDuration(clusterClient clusterclient.Interface, name string) (*clusterv1.ManagedCluster, error)
func DeleteClusterDeployment ¶
func NewAutoImportSecret ¶
func NewCSR ¶
func NewCSR(labels ...Label) *certificatesv1.CertificateSigningRequest
func ToImportResoruces ¶
func ToImportResoruces(importYaml []byte) []*unstructured.Unstructured
func ToKlusterlet ¶
func ToKlusterlet(obj *unstructured.Unstructured) *operatorv1.Klusterlet
func ValidateImportSecret ¶
Types ¶
Click to show internal directories.
Click to hide internal directories.