util

package
v1.0.0-2021-10-05-17-3... Latest Latest
Warning

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

Go to latest
Published: Sep 23, 2021 License: Apache-2.0 Imports: 25 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 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 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) (*corev1.Secret, error)

func NewAutoImportSecretWithToken

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

func NewCSR

func NewInvalidAutoImportSecret

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

func ToImportResoruces

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

func ValidateImportSecret

func ValidateImportSecret(importSecret *corev1.Secret) error

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