# Functions
CheckAPIHealthz check healthz.
No description provided by the author
CheckDaemonset check daemonset current replicas is equal to desired and all pods are running.
CheckDeployment check Deployment current replicas is equal to desired and all pods are running.
CheckPodReady checks if the pod is ready.
CheckPodReadyWithLabel checks if the pod is ready with label.
CheckPodWithPredicate check pod with specify predicate.
CheckStatefulSet check StatefulSet current replicas is equal to desired and all pods are running.
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
CreateAsResourceWithFile create k8s and apiextensions-apiserver resource with file.
CreateKAResourceWithFile create k8s and kube-aggregator resource with file.
CreateOrRetainConfigMap creates a ConfigMap if the target resource doesn't exist.
CreateOrUpdateAPIService creates a APIService if the target resource doesn't exist.
CreateOrUpdateClusterRole creates a ClusterRole if the target resource doesn't exist.
CreateOrUpdateClusterRoleBinding creates a ClusterRoleBinding if the target resource doesn't exist.
CreateOrUpdateConfigMap creates a ConfigMap if the target resource doesn't exist.
CreateOrUpdateConfigMapFromFile like kubectl apply configmap --from-file.
CreateOrUpdateCronJob creates a Job if the target resource doesn't exist.
CreateOrUpdateCustomResourceDefinition creates a CustomResourceDefinition if the target resource doesn't exist.
CreateOrUpdateDaemonSet creates a DaemonSet if the target resource doesn't exist.
CreateOrUpdateDeployment creates a Deployment if the target resource doesn't exist.
CreateOrUpdateDeploymentExtensionsV1beta1 creates a ExtensionsV1beta1 Deployment if the target resource doesn't exist.
CreateOrUpdateEndpoints creates a Endpoints if the target resource doesn't exist.
CreateOrUpdateIngress creates a Ingress if the target resource doesn't exist.
CreateOrUpdateJob creates a Job if the target resource doesn't exist.
CreateOrUpdateMutatingWebhookConfiguration creates a MutatingWebhookConfigurations if the target resource doesn't exist.
CreateOrUpdateNamespace creates a namespace if the target resource doesn't exist.
CreateOrUpdateService creates a service if the target resource doesn't exist.
CreateOrUpdateRole creates a Role if the target resource doesn't exist.
CreateOrUpdateRoleBinding creates a RoleBinding if the target resource doesn't exist.
CreateOrUpdateSecret creates a Secret if the target resource doesn't exist.
CreateOrUpdateService creates a service if the target resource doesn't exist.
CreateOrUpdateServiceAccount creates a ServiceAccount if the target resource doesn't exist.
CreateOrUpdateStatefulSet creates a statefulSet if the target resource doesn't exist.
CreateOrUpdateValidatingWebhookConfiguration creates a ValidatingWebhookConfigurations if the target resource doesn't exist.
No description provided by the author
CreateResourceWithDir create k8s resource with dir.
CreateResourceWithFile create k8s resource with file.
DeleteClusterRoleBinding delete a clusterrolebinding.
DeleteDaemonSetForeground deletes the specified DaemonSet in foreground mode; i.e.
No description provided by the author
DeleteDeploymentForeground deletes the specified Deployment in foreground mode; i.e.
DeleteReplicaSetApp delete the replicaset and pod additionally for deployment app with extension group.
DeleteService delete a service.
DeleteServiceAccounts delete a serviceAccount.
GetClientset return clientset.
GetClusterRoleBinding get a cluster role binding.
No description provided by the author
GetNodeByMachineIP get node by machine ip.
GetNodeIPV6Label split ip v6 address to head and tail ensure lable value less than 63 character, since k8s lable doesn't support ":" so that replace to "a", then return the consolidated label string Todo: add more check and corner case handle here later.
GetService get a service.
GetServiceAccount get a service.
IsPodReady returns true if a pod is ready; false otherwise.
MarkNode mark node by adding labels and taints.
PatchNode tries to patch a node using patchFn for the actual mutating logic.
PatchNodeOnce executes patchFn on the node object found by the node name.
PullImageWithPod pull image for pod.
RemoveNodeTaints remove taints from existed node taints.
# Constants
APICallRetryInterval defines how long should wait before retrying a failed API operation.
LabelASNForCilium specifies the label in node when enable Cilium.
LabelHostname specifies the label in node.
LabelMachineIPV4 specifies the label in node.
LabelMachineIPV6Head specifies the label in node.
LabelMachineIPV6Tail specifies the label in node.
LabelSwitchIPForCilium specifies the label in node when enable Cilium.
LabelTopologyZone represents a logical failure domain.
PatchNodeTimeout specifies how long should wait for applying the label and taint on the master before timing out.
UpdateNodeTimeout specifies how long should wait for updating node with the initial remote configuration of kubelet before timing out.
# Type aliases
PlatformLabel represents the type of platform.tkestack.io related label.