package
0.0.0-20240329120644-c8443632a830
Repository: https://github.com/opencurve/curve-operator.git
Documentation: pkg.go.dev
# Functions
AddFinalizerIfNotPresent adds a finalizer an object to avoid instant deletion of the object without finalizing it.
CreateNewConfigMap create a new ConfigMap in specified namespace.
CreateNewDeploymentAndWaitStart create a new Deployment in specified namespace and wait it to start up.
CreateOrUpdate create ConfigMap if not exist or update the ConfigMap.
CreateOrUpdateDeploymentAndWaitStart create Deployment if not exist or update deployment and wait it to start.
DeleteBatchJob deletes a Kubernetes job.
DeleteConfigMap delete a ConfigMap in specified namespace.
DeleteDeployment delete a Deployment in specified namespace.
GetConfigMap get configmap in specified namespace.
GetConfigMap get configmap in specified namespace.
GetDeployment get a Deployment in specified namespace.
GetLabelSelector get labelSelector by labels of pod.
GetNodeHostName returns the hostname label given the node name.
No description provided by the author
No description provided by the author
No description provided by the author
GetValidNodes returns all nodes that are ready and is schedulable.
Hash stableName computes a stable pseudorandom string suitable for inclusion in a Kubernetes object name from the given seed string.
IsConfigMapExist check the ConfigMap if exist in specified namespace.
IsDeploymentExist check the Deployment if exist in specified namespace.
PrivilegedContext returns a privileged Pod security context.
RemoveFinalizer removes a finalizer from an object.
RemoveFinalizerWithName removes finalizer passed as an argument from an object.
RunReplaceableJob runs a Kubernetes job with the intention that the job can be replaced by another call to this function with the same job name.
TruncateNodeNameForJob hashes the nodeName in case it would case the name to be longer than 63 characters and avoids for a K8s 1.22 bug in the job pod name generation.
UpdateBsClusterCondition function will export each condition into the cluster custom resource.
UpdateCondition function will export each condition into the cluster custom resource.
UpdateDeploymentAndWaitStart update a ConfigMap in specified namespace.
UpdateDeploymentAndWaitStart update a Deployment and wait it to start.
UpdateFsClusterCondition function will export each condition into the cluster custom resource.
No description provided by the author
WaitForJobCompletion waits for a job to reach the completed state.
# Constants
No description provided by the author