updater

package
v1.14.0 Latest Latest
Warning

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

Go to latest
Published: Aug 18, 2022 License: Apache-2.0 Imports: 23 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func CreateConfigMap

func CreateConfigMap(cm *corev1.ConfigMap, cl client.Client) error

func CreateIngress added in v1.9.9

func CreateIngress(namespace string, ingress *v1.Ingress, clientset *kubernetes.Clientset) error

func CreateJob

func CreateJob(job *batchv1.Job, cl client.Client) error

func CreateNamespace

func CreateNamespace(ns *corev1.Namespace, cl client.Client) error

func CreateNamespaceByName

func CreateNamespaceByName(ns string, labels map[string]string, cl client.Client) error

func CreateOrPatchCronJob

func CreateOrPatchCronJob(cj *batchv1beta1.CronJob, cl client.Client) error

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 added in v1.9.9

func CreateOrPatchUnstructuredNeverAnnotation(u *unstructured.Unstructured, cl client.Client) error

func CreatePvc added in v1.9.9

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 DeleteConfigMap

func DeleteConfigMap(ns, name string, cl client.Client) error

func DeleteConfigMaps

func DeleteConfigMaps(namespace string, selector labels.Selector, clientset *kubernetes.Clientset) error

func DeleteConfigMapsAndWait

func DeleteConfigMapsAndWait(ns string, selector labels.Selector, cl client.Client) error

func DeleteCronJobs

func DeleteCronJobs(namespace string, selector labels.Selector, clientset *kubernetes.Clientset) error

func DeleteDeployments

func DeleteDeployments(namespace string, selector labels.Selector, clientset *kubernetes.Clientset) error

func DeleteIngresseWithName added in v1.9.9

func DeleteIngresseWithName(namespace, name string, clientset *kubernetes.Clientset) error

func DeleteIngresses

func DeleteIngresses(namespace string, selector labels.Selector, clientset *kubernetes.Clientset) error

func DeleteJob

func DeleteJob(ns, name string, cl client.Client) error

func DeleteJobAndWait

func DeleteJobAndWait(ns, name string, cl client.Client) error

func DeleteJobs

func DeleteJobs(namespace string, selector labels.Selector, clientset *kubernetes.Clientset) error

func DeleteJobsAndWait

func DeleteJobsAndWait(ns string, selector labels.Selector, cl client.Client) error

func DeleteNamespace

func DeleteNamespace(name string, clientset *kubernetes.Clientset) error

func DeletePersistentVolumeClaims

func DeletePersistentVolumeClaims(namespace string, selector labels.Selector, clientset *kubernetes.Clientset) error

func DeletePersistentVolumes

func DeletePersistentVolumes(selector labels.Selector, clientset *kubernetes.Clientset) error

func DeletePod

func DeletePod(ns, name string, cl client.Client) error

func DeletePods

func DeletePods(namespace string, selector labels.Selector, clientset *kubernetes.Clientset) error

func DeletePvcWithName added in v1.9.9

func DeletePvcWithName(namespace, name string, clientset *kubernetes.Clientset) error

func DeleteReplicaSets

func DeleteReplicaSets(namespace string, selector labels.Selector, clientset *kubernetes.Clientset) error

func DeleteRoleBindings

func DeleteRoleBindings(namespace string, selector labels.Selector, clientset *kubernetes.Clientset) error

func DeleteRoles

func DeleteRoles(namespace string, selector labels.Selector, clientset *kubernetes.Clientset) error

func DeleteSecretWithName added in v1.8.0

func DeleteSecretWithName(ns, name string, cl client.Client) error

func DeleteSecrets

func DeleteSecrets(namespace string, selector labels.Selector, clientset *kubernetes.Clientset) error

func DeleteServiceAccounts

func DeleteServiceAccounts(namespace string, selector labels.Selector, clientset *kubernetes.Clientset) error

func DeleteServices

func DeleteServices(namespace string, selector labels.Selector, clientset *kubernetes.Clientset) error

func DeleteStatefulSets

func DeleteStatefulSets(namespace string, selector labels.Selector, clientset *kubernetes.Clientset) error

func DeleteUnstructured

func DeleteUnstructured(u *unstructured.Unstructured, cl client.Client) error

func PatchDeployment

func PatchDeployment(ns, name string, patchBytes []byte, cl client.Client) error

func PatchStatefulSet

func PatchStatefulSet(ns, name string, patchBytes []byte, cl client.Client) error

func RestartDeployment

func RestartDeployment(ns, name string, cl client.Client) error

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

func RestartStatefulSet(ns, name string, cl client.Client) error

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 ScaleDeployment

func ScaleDeployment(ns, name string, replicas int, cl client.Client) error

func ScaleStatefulSet

func ScaleStatefulSet(ns, name string, replicas int, cl client.Client) error

func UpdateConfigMap

func UpdateConfigMap(namespace string, cm *corev1.ConfigMap, clientset *kubernetes.Clientset) error

func UpdateDeploymentImage

func UpdateDeploymentImage(ns, name, container, image string, cl client.Client) error

func UpdateNamespace added in v1.9.9

func UpdateNamespace(ns *corev1.Namespace, cl client.Client) error

func UpdateOrCreateSecret

func UpdateOrCreateSecret(s *corev1.Secret, cl client.Client) error

func UpdateOrCreateUnstructured added in v1.9.9

func UpdateOrCreateUnstructured(u *unstructured.Unstructured, cl client.Client) error

func UpdatePvc added in v1.9.9

func UpdatePvc(namespace string, pvc *corev1.PersistentVolumeClaim, clientset *kubernetes.Clientset) error

func UpdateStatefulSetImage

func UpdateStatefulSetImage(ns, name, container, image string, cl client.Client) error

Types

This section is empty.

Jump to

Keyboard shortcuts

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