Documentation ¶
Index ¶
- Constants
- func CreateSuffixString() string
- func Delete(namespace, cluster string) error
- func GetK8sClient() (*kubernetes.Clientset, error)
- func GetRemoteK8sClient(secret *corev1.Secret) (*kubernetes.Clientset, error)
- func GetRemoteK8sClientByKubeConfig(kubeConfig []byte) (*kubernetes.Clientset, error)
- func Goid() int
- func Insert(clusterManager *clusterv1alpha1.ClusterManager) error
- func LowestNonZeroResult(i, j ctrl.Result) ctrl.Result
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" SUFFIX_DIGIT = 5 )
Variables ¶
This section is empty.
Functions ¶
func CreateSuffixString ¶
func CreateSuffixString() string
func GetK8sClient ¶
func GetK8sClient() (*kubernetes.Clientset, error)
func GetRemoteK8sClient ¶
func GetRemoteK8sClient(secret *corev1.Secret) (*kubernetes.Clientset, error)
func GetRemoteK8sClientByKubeConfig ¶
func GetRemoteK8sClientByKubeConfig(kubeConfig []byte) (*kubernetes.Clientset, error)
func Insert ¶
func Insert(clusterManager *clusterv1alpha1.ClusterManager) error
Types ¶
This section is empty.
Click to show internal directories.
Click to hide internal directories.