util

package
v2.0.3 Latest Latest
Warning

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

Go to latest
Published: Aug 26, 2021 License: Apache-2.0 Imports: 16 Imported by: 0

Documentation

Index

Constants

View Source
const (
	WatchAnnotationKey                 = "federation"
	WatchAnnotationJoinValue           = "join"
	WatchAnnotationJoinSuccess         = "complete"
	WatchAnnotationUnJoinValue         = "unjoin"
	KubeconfigPostfix                  = "-kubeconfig"
	ClusterNamespace                   = "default"
	KubeFedNamespace                   = "kube-federation-system"
	MonitoringNamespace                = "monitoring"
	HypercloudNamespace                = "hypercloud5-system"
	HostClusterName                    = "hostcluster"
	FederatedConfigMapName             = "hypercloud-multi-agent-agentconfig"
	FederatedConfigMapNamespace        = "hypercloud-multi-agent-system"
	MultiApiServerNamespace            = "hypercloud4-multi-system"
	MultiApiServerServiceName          = "hypercloud4-multi-api-server-service"
	SecretFinalizer                    = "secret/finalizers"
	ClusterManagerFinalizer            = "clusterManager.cluster.tmax.io"
	SecretFinalizerForClusterManager   = "secretforclustermanager/finalizers"
	KubefedclusterFinalizer            = "kubefedcluster/finalizers"
	MultiApiServerServiceSelectorKey   = "hypercloud4"
	MultiApiServerServiceSelectorValue = "multi-api-server"
	ClusterOwnerKey                    = "owner"
	ClusterTypeKey                     = "type"
	ClusterTypeCreated                 = "created"
	ClusterTypeRegistered              = "registered"
	ReversePorxyObjectName             = "reverse-proxy-configuration"
	ReversePorxyObjectNamespace        = "console-system"
	IngressNginxNamespace              = "ingress-nginx"
	IngressNginxName                   = "ingress-nginx-controller"
	CLUSTER_API_Kind                   = "clustermanagers"
	CLUSTER_API_GROUP_VERSION          = "cluster.tmax.io/v1alpha1"
	AGENT_INGRESS_NAME                 = "hypercloud-ingress"
)

Variables

This section is empty.

Functions

func Delete

func Delete(namespace, cluster string) error

func GetK8sClient

func GetK8sClient() (*kubernetes.Clientset, error)

func GetRemoteK8sClient

func GetRemoteK8sClient(secret *corev1.Secret) (*kubernetes.Clientset, error)

func Goid

func Goid() int

func Insert

func Insert(clusterManager *clusterv1alpha1.ClusterManager) error

func LowestNonZeroResult

func LowestNonZeroResult(i, j ctrl.Result) ctrl.Result

LowestNonZeroResult compares two reconciliation results and returns the one with lowest requeue time.

Types

This section is empty.

Jump to

Keyboard shortcuts

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