Documentation ¶
Index ¶
- func CreateClusterDeployment(dynamicClient dynamic.Interface, clusterName string) error
- func CreateClusterWithImageRegistries(clusterClient clusterclient.Interface, name string, ...) (*clusterv1.ManagedCluster, error)
- func CreateHostedCluster(dynamicClient dynamic.Interface, namespace, name string) error
- func CreateHostedManagedCluster(clusterClient clusterclient.Interface, name, management string) (*clusterv1.ManagedCluster, error)
- func CreateHostedManagedClusterWithShortLeaseDuration(clusterClient clusterclient.Interface, name, management string) (*clusterv1.ManagedCluster, error)
- func CreateManagedCluster(clusterClient clusterclient.Interface, name string, labels ...Label) (*clusterv1.ManagedCluster, error)
- func CreateManagedClusterWithAnnotations(clusterClient clusterclient.Interface, name string, ...) (*clusterv1.ManagedCluster, error)
- func CreateManagedClusterWithShortLeaseDuration(clusterClient clusterclient.Interface, name string, ...) (*clusterv1.ManagedCluster, error)
- func CreatePullSecret(kubeClient kubernetes.Interface, namespace, name string) error
- func DeleteClusterDeployment(dynamicClient dynamic.Interface, clusterName string) error
- func DeleteHostedCluster(dynamicClient dynamic.Interface, namespace, name string) error
- func GetClusterDeployment(dynamicClient dynamic.Interface, clusterName string) (*unstructured.Unstructured, error)
- func GetHostedCluster(dynamicClient dynamic.Interface, namespace, name string) (*unstructured.Unstructured, 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 NewExternalManagedKubeconfigSecret(kubeClient kubernetes.Interface, clusterName string) (*corev1.Secret, error)
- func NewInvalidAutoImportSecret(kubeClient kubernetes.Interface, dynamicClient dynamic.Interface, ...) (*corev1.Secret, error)
- func NewManagedClient(kubeClient kubernetes.Interface) (kubernetes.Interface, error)
- func NewRestoreAutoImportSecret(kubeClient kubernetes.Interface, dynamicClient dynamic.Interface, ...) (*corev1.Secret, error)
- func RemoveManagedClusterAnnotations(clusterClient clusterclient.Interface, name string) error
- func ToImportResoruces(importYaml []byte) []*unstructured.Unstructured
- func ToKlusterlet(obj *unstructured.Unstructured) *operatorv1.Klusterlet
- type Label
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func CreateClusterDeployment ¶
func CreateClusterWithImageRegistries ¶
func CreateClusterWithImageRegistries(clusterClient clusterclient.Interface, name string, imageRegistries imageregistry.ImageRegistries) (*clusterv1.ManagedCluster, error)
func CreateHostedCluster ¶
func CreateHostedManagedCluster ¶
func CreateHostedManagedCluster(clusterClient clusterclient.Interface, name, management string) (*clusterv1.ManagedCluster, error)
func CreateHostedManagedClusterWithShortLeaseDuration ¶
func CreateHostedManagedClusterWithShortLeaseDuration(clusterClient clusterclient.Interface, name, management string) (*clusterv1.ManagedCluster, error)
func CreateManagedCluster ¶
func CreateManagedCluster(clusterClient clusterclient.Interface, name string, labels ...Label) (*clusterv1.ManagedCluster, error)
func CreateManagedClusterWithAnnotations ¶
func CreateManagedClusterWithAnnotations( clusterClient clusterclient.Interface, name string, annotations map[string]string, labels ...Label) (*clusterv1.ManagedCluster, error)
func CreateManagedClusterWithShortLeaseDuration ¶
func CreateManagedClusterWithShortLeaseDuration(clusterClient clusterclient.Interface, name string, annotations map[string]string, labels ...Label) (*clusterv1.ManagedCluster, error)
func CreatePullSecret ¶
func CreatePullSecret(kubeClient kubernetes.Interface, namespace, name string) error
func DeleteClusterDeployment ¶
func DeleteHostedCluster ¶
func GetClusterDeployment ¶
func GetClusterDeployment(dynamicClient dynamic.Interface, clusterName string) (*unstructured.Unstructured, error)
func GetHostedCluster ¶
func GetHostedCluster(dynamicClient dynamic.Interface, namespace, name string) (*unstructured.Unstructured, error)
func NewAutoImportSecret ¶
func NewAutoImportSecret(kubeClient kubernetes.Interface, clusterName string, mode ...operatorv1.InstallMode) (*corev1.Secret, error)
func NewCSR ¶
func NewCSR(labels ...Label) *certificatesv1.CertificateSigningRequest
func NewManagedClient ¶
func NewManagedClient(kubeClient kubernetes.Interface) (kubernetes.Interface, error)
func RemoveManagedClusterAnnotations ¶
func RemoveManagedClusterAnnotations(clusterClient clusterclient.Interface, name string) error
func ToImportResoruces ¶
func ToImportResoruces(importYaml []byte) []*unstructured.Unstructured
func ToKlusterlet ¶
func ToKlusterlet(obj *unstructured.Unstructured) *operatorv1.Klusterlet
Types ¶
Click to show internal directories.
Click to hide internal directories.