util

package
v0.0.0-...-890bf4a Latest Latest
Warning

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

Go to latest
Published: Apr 25, 2024 License: Apache-2.0 Imports: 28 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func CreateClusterDeployment

func CreateClusterDeployment(dynamicClient dynamic.Interface, clusterName string) error

func CreateClusterWithImageRegistries

func CreateClusterWithImageRegistries(clusterClient clusterclient.Interface, name string,
	imageRegistries imageregistry.ImageRegistries) (*clusterv1.ManagedCluster, error)

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 DeleteClusterDeployment(dynamicClient dynamic.Interface, clusterName string) error

func InstallClusterDeployment

func InstallClusterDeployment(kubeClient kubernetes.Interface, dynamicClient dynamic.Interface, clusterName string) error

func Logf

func Logf(format string, args ...interface{})

func NewAutoImportSecret

func NewAutoImportSecret(kubeClient kubernetes.Interface, clusterName string, mode ...operatorv1.InstallMode) (*corev1.Secret, error)

func NewAutoImportSecretWithToken

func NewAutoImportSecretWithToken(kubeClient kubernetes.Interface, dynamicClient dynamic.Interface, clusterName string) (*corev1.Secret, error)

func NewCSR

func NewExternalManagedKubeconfigSecret

func NewExternalManagedKubeconfigSecret(kubeClient kubernetes.Interface, clusterName string) (*corev1.Secret, error)

func NewInvalidAutoImportSecret

func NewInvalidAutoImportSecret(kubeClient kubernetes.Interface, dynamicClient dynamic.Interface, clusterName string) (*corev1.Secret, error)

func NewManagedClient

func NewManagedClient(kubeClient kubernetes.Interface) (kubernetes.Interface, error)

func NewRestoreAutoImportSecret

func NewRestoreAutoImportSecret(kubeClient kubernetes.Interface, dynamicClient dynamic.Interface, clusterName string) (*corev1.Secret, error)

func RemoveManagedClusterAnnotations

func RemoveManagedClusterAnnotations(clusterClient clusterclient.Interface, name string) error

func ToImportResoruces

func ToImportResoruces(importYaml []byte) []*unstructured.Unstructured

Types

type Label

type Label struct {
	// contains filtered or unexported fields
}

func NewLable

func NewLable(key, value string) Label

Jump to

Keyboard shortcuts

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