Documentation ¶
Index ¶
- func CreateConfigMap(cm *corev1.ConfigMap, cl client.Client) error
- func CreateIngress(namespace string, ingress *v1.Ingress, clientset *kubernetes.Clientset) error
- func CreateJob(job *batchv1.Job, cl client.Client) error
- func CreateNamespace(ns *corev1.Namespace, cl client.Client) error
- func CreateNamespaceByName(ns string, labels map[string]string, cl client.Client) error
- func CreateOrPatchCronJob(cj client.Object, cl client.Client) error
- func CreateOrPatchDeployment(d *appsv1.Deployment, cl client.Client) error
- func CreateOrPatchService(s *corev1.Service, cl client.Client) error
- func CreateOrPatchStatefulSet(sts *appsv1.StatefulSet, cl client.Client) error
- func CreateOrPatchUnstructured(u *unstructured.Unstructured, cl client.Client) error
- func CreateOrPatchUnstructuredNeverAnnotation(u *unstructured.Unstructured, cl client.Client) error
- func CreatePvc(namespace string, pvc *corev1.PersistentVolumeClaim, ...) error
- func CreateServiceAccount(sa *corev1.ServiceAccount, cl client.Client) error
- func DeleteClusterRoles(selector labels.Selector, clientset *kubernetes.Clientset) error
- func DeleteConfigMap(ns, name string, cl client.Client) error
- func DeleteConfigMaps(namespace string, selector labels.Selector, clientset *kubernetes.Clientset) error
- func DeleteConfigMapsAndWait(ns string, selector labels.Selector, cl client.Client) error
- func DeleteCronJobs(namespace string, selector labels.Selector, clientset *kubernetes.Clientset) error
- func DeleteDeploymentAndWait(ns, name string, cl client.Client) error
- func DeleteDeploymentAndWaitWithTimeout(ns, name string, timeout time.Duration, cl client.Client) error
- func DeleteDeployments(namespace string, selector labels.Selector, clientset *kubernetes.Clientset) error
- func DeleteIngresseWithName(namespace, name string, clientset *kubernetes.Clientset) error
- func DeleteIngresses(namespace string, selector labels.Selector, clientset *kubernetes.Clientset) error
- func DeleteJob(ns, name string, cl client.Client) error
- func DeleteJobAndWait(ns, name string, cl client.Client) error
- func DeleteJobs(namespace string, selector labels.Selector, clientset *kubernetes.Clientset) error
- func DeleteJobsAndWait(ns string, selector labels.Selector, cl client.Client) error
- func DeleteNamespace(name string, clientset *kubernetes.Clientset) error
- func DeleteObject(obj client.Object, cl client.Client) error
- func DeletePersistentVolumeClaims(namespace string, selector labels.Selector, clientset *kubernetes.Clientset) error
- func DeletePersistentVolumes(selector labels.Selector, clientset *kubernetes.Clientset) error
- func DeletePod(ns, name string, cl client.Client) error
- func DeletePods(namespace string, selector labels.Selector, clientset *kubernetes.Clientset) error
- func DeletePvcWithName(namespace, name string, clientset *kubernetes.Clientset) error
- func DeleteReplicaSets(namespace string, selector labels.Selector, clientset *kubernetes.Clientset) error
- func DeleteRoleBindings(namespace string, selector labels.Selector, clientset *kubernetes.Clientset) error
- func DeleteRoles(namespace string, selector labels.Selector, clientset *kubernetes.Clientset) error
- func DeleteSecretWithName(ns, name string, cl client.Client) error
- func DeleteSecrets(namespace string, selector labels.Selector, clientset *kubernetes.Clientset) error
- func DeleteService(ns, name string, cl client.Client) error
- func DeleteServiceAccounts(namespace string, selector labels.Selector, clientset *kubernetes.Clientset) error
- func DeleteServices(namespace string, selector labels.Selector, clientset *kubernetes.Clientset) error
- func DeleteStatefulSets(namespace string, selector labels.Selector, clientset *kubernetes.Clientset) error
- func DeleteUnstructured(u *unstructured.Unstructured, cl client.Client) error
- func PatchCronJob(ns, name string, patchBytes []byte, cl client.Client, versionLessThan121 bool) error
- func PatchDeployment(ns, name string, patchBytes []byte, cl client.Client) error
- func PatchObject(modified client.Object, patchBytes []byte, patchType types.PatchType, ...) error
- func PatchPod(ns, name string, patchBytes []byte, cl client.Client) error
- func PatchStatefulSet(ns, name string, patchBytes []byte, cl client.Client) error
- func PatchUnstructured(u *unstructured.Unstructured, patchBytes []byte, patchType types.PatchType, ...) error
- func RestartDeployment(ns, name string, cl client.Client) error
- func RestartStatefulSet(ns, name string, cl client.Client) error
- func ResumeCronJob(ns, name string, cl client.Client, versionLessThan121 bool) error
- func ScaleDeployment(ns, name string, replicas int, cl client.Client) error
- func ScaleStatefulSet(ns, name string, replicas int, cl client.Client) error
- func SuspendCronJob(ns, name string, cl client.Client, versionLessThan121 bool) error
- func UpdateConfigMap(namespace string, cm *corev1.ConfigMap, clientset *kubernetes.Clientset) error
- func UpdateCronJobImage(ns, name, container, image string, cl client.Client, versionLessThan121 bool) error
- func UpdateDeploymentImage(ns, name, container, image string, cl client.Client) error
- func UpdateNamespace(ns *corev1.Namespace, cl client.Client) error
- func UpdateOrCreateSecret(s *corev1.Secret, cl client.Client) error
- func UpdateOrCreateUnstructured(u *unstructured.Unstructured, cl client.Client) error
- func UpdatePvc(namespace string, pvc *corev1.PersistentVolumeClaim, ...) error
- func UpdateStatefulSetImage(ns, name, container, image string, cl client.Client) error
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func CreateIngress ¶
func CreateNamespaceByName ¶
func CreateOrPatchDeployment ¶
func CreateOrPatchDeployment(d *appsv1.Deployment, cl client.Client) error
func CreateOrPatchStatefulSet ¶
func CreateOrPatchStatefulSet(sts *appsv1.StatefulSet, cl client.Client) error
func CreateOrPatchUnstructured ¶
func CreateOrPatchUnstructured(u *unstructured.Unstructured, cl client.Client) error
func CreateOrPatchUnstructuredNeverAnnotation ¶
func CreateOrPatchUnstructuredNeverAnnotation(u *unstructured.Unstructured, cl client.Client) error
func CreatePvc ¶
func CreatePvc(namespace string, pvc *corev1.PersistentVolumeClaim, clientset *kubernetes.Clientset) error
func CreateServiceAccount ¶
func CreateServiceAccount(sa *corev1.ServiceAccount, cl client.Client) error
func DeleteClusterRoles ¶
func DeleteClusterRoles(selector labels.Selector, clientset *kubernetes.Clientset) error
func DeleteConfigMaps ¶
func DeleteConfigMapsAndWait ¶
func DeleteCronJobs ¶
func DeleteDeploymentAndWait ¶
func DeleteDeployments ¶
func DeleteIngresseWithName ¶
func DeleteIngresseWithName(namespace, name string, clientset *kubernetes.Clientset) error
func DeleteIngresses ¶
func DeleteJobs ¶
func DeleteJobsAndWait ¶
func DeleteNamespace ¶
func DeleteNamespace(name string, clientset *kubernetes.Clientset) error
func DeletePersistentVolumes ¶
func DeletePersistentVolumes(selector labels.Selector, clientset *kubernetes.Clientset) error
func DeletePods ¶
func DeletePvcWithName ¶
func DeletePvcWithName(namespace, name string, clientset *kubernetes.Clientset) error
func DeleteReplicaSets ¶
func DeleteRoleBindings ¶
func DeleteRoles ¶
func DeleteSecrets ¶
func DeleteServiceAccounts ¶
func DeleteServices ¶
func DeleteStatefulSets ¶
func DeleteUnstructured ¶
func DeleteUnstructured(u *unstructured.Unstructured, cl client.Client) error
func PatchCronJob ¶
func PatchDeployment ¶
func PatchObject ¶
func PatchStatefulSet ¶
func PatchUnstructured ¶
func PatchUnstructured(u *unstructured.Unstructured, patchBytes []byte, patchType types.PatchType, cl client.Client) error
func RestartDeployment ¶
TODO: LOU: it is not the right way to restart a deployment, since it is a hack and it will generate a new revision which will pollute the revision history.
func RestartStatefulSet ¶
TODO: LOU: it is not the right way to restart a statefulSet, since it is a hack and it will generate a new revision which will pollute the revision history.
func ResumeCronJob ¶
func ScaleStatefulSet ¶
func SuspendCronJob ¶
func UpdateConfigMap ¶
func UpdateCronJobImage ¶
func UpdateDeploymentImage ¶
func UpdateOrCreateUnstructured ¶
func UpdateOrCreateUnstructured(u *unstructured.Unstructured, cl client.Client) error
func UpdatePvc ¶
func UpdatePvc(namespace string, pvc *corev1.PersistentVolumeClaim, clientset *kubernetes.Clientset) error
Types ¶
This section is empty.
Click to show internal directories.
Click to hide internal directories.