Documentation ¶
Index ¶
- func CreateClusterRole(role *rbacv1beta1.ClusterRole, cl client.Client) error
- func CreateConfigMap(cm *corev1.ConfigMap, cl client.Client) 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 *batchv1beta1.CronJob, cl client.Client) error
- func CreateOrPatchDeployment(d *appsv1.Deployment, cl client.Client) error
- func CreateOrPatchStatefulSet(sts *appsv1.StatefulSet, cl client.Client) error
- func CreateOrPatchUnstructured(u *unstructured.Unstructured, cl client.Client) error
- func CreateRole(role *rbacv1beta1.Role, cl client.Client) error
- func CreateRoleBinding(rb *rbacv1beta1.RoleBinding, cl client.Client) error
- func CreateServiceAccount(sa *corev1.ServiceAccount, cl client.Client) error
- func DeleteClusterRoleBindings(selector labels.Selector, cl client.Client) error
- func DeleteClusterRoles(selector labels.Selector, cl client.Client) error
- func DeleteConfigMap(ns, name string, cl client.Client) error
- func DeleteConfigMaps(ns string, selector labels.Selector, cl client.Client) error
- func DeleteConfigMapsAndWait(ns string, selector labels.Selector, cl client.Client) error
- func DeleteCronJobs(ns string, selector labels.Selector, cl client.Client) error
- func DeleteDeployments(ns string, selector labels.Selector, cl client.Client) error
- func DeleteIngresses(ns string, selector labels.Selector, cl client.Client) error
- func DeleteJob(ns, name string, cl client.Client) error
- func DeleteJobAndWait(ns, name string, cl client.Client) error
- func DeleteJobs(ns string, selector labels.Selector, cl client.Client) error
- func DeleteJobsAndWait(ns string, selector labels.Selector, cl client.Client) error
- func DeleteMatchingNamespace(ns string, selector labels.Selector, cl client.Client) error
- func DeleteNamespace(ns string, cl client.Client) error
- func DeletePersistentVolumeClaims(ns string, selector labels.Selector, cl client.Client) error
- func DeletePersistentVolumes(ns string, selector labels.Selector, cl client.Client) error
- func DeletePod(ns, name string, cl client.Client) error
- func DeletePods(ns string, selector labels.Selector, cl client.Client) error
- func DeleteReplicaSets(ns string, selector labels.Selector, cl client.Client) error
- func DeleteRoleBindings(ns string, selector labels.Selector, cl client.Client) error
- func DeleteRoles(ns string, selector labels.Selector, cl client.Client) error
- func DeleteSecretWithName(ns, name string, cl client.Client) error
- func DeleteSecrets(ns string, selector labels.Selector, cl client.Client) error
- func DeleteService(ns, name string, cl client.Client) error
- func DeleteServiceAccounts(ns string, selector labels.Selector, cl client.Client) error
- func DeleteServices(ns string, selector labels.Selector, cl client.Client) error
- func DeleteStatefulSets(ns string, selector labels.Selector, cl client.Client) error
- func DeleteUnstructured(u *unstructured.Unstructured, cl client.Client) error
- func PatchDeployment(ns, name string, patchBytes []byte, cl client.Client) error
- func PatchStatefulSet(ns, name string, patchBytes []byte, cl client.Client) error
- func RestartDeployment(ns, name string, cl client.Client) error
- func RestartStatefulSet(ns, name string, cl client.Client) error
- func ScaleDeployment(ns, name string, replicas int, cl client.Client) error
- func ScaleStatefulSet(ns, name string, replicas int, cl client.Client) error
- func UpdateConfigMap(cm *corev1.ConfigMap, cl client.Client) error
- func UpdateDeploymentImage(ns, name, container, image string, cl client.Client) error
- func UpdateOrCreateSecret(s *corev1.Secret, cl client.Client) error
- func UpdateRole(role *rbacv1beta1.Role, cl client.Client) error
- func UpdateRoleBinding(rb *rbacv1beta1.RoleBinding, cl client.Client) error
- func UpdateStatefulSetImage(ns, name, container, image string, cl client.Client) error
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func CreateClusterRole ¶ added in v1.7.1
func CreateClusterRole(role *rbacv1beta1.ClusterRole, cl client.Client) error
func CreateNamespaceByName ¶
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 CreateRole ¶
func CreateRole(role *rbacv1beta1.Role, cl client.Client) error
func CreateRoleBinding ¶
func CreateRoleBinding(rb *rbacv1beta1.RoleBinding, cl client.Client) error
func CreateServiceAccount ¶
func CreateServiceAccount(sa *corev1.ServiceAccount, cl client.Client) error
func DeleteConfigMaps ¶
func DeleteConfigMapsAndWait ¶
func DeleteCronJobs ¶
func DeleteDeployments ¶
func DeleteIngresses ¶
func DeleteJobsAndWait ¶
func DeleteMatchingNamespace ¶
func DeletePersistentVolumes ¶
func DeleteReplicaSets ¶
func DeleteRoleBindings ¶
func DeleteSecretWithName ¶ added in v1.8.0
func DeleteSecrets ¶
func DeleteServiceAccounts ¶
func DeleteServices ¶
service does not support deleteCollection see here for details: https://github.com/kubernetes/kubernetes/issues/68468#issuecomment-419981870
func DeleteStatefulSets ¶
func DeleteUnstructured ¶
func DeleteUnstructured(u *unstructured.Unstructured, cl client.Client) error
func PatchDeployment ¶
func PatchStatefulSet ¶
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 ScaleStatefulSet ¶
func UpdateDeploymentImage ¶
func UpdateRole ¶
func UpdateRole(role *rbacv1beta1.Role, cl client.Client) error
func UpdateRoleBinding ¶
func UpdateRoleBinding(rb *rbacv1beta1.RoleBinding, cl client.Client) error
Types ¶
This section is empty.
Click to show internal directories.
Click to hide internal directories.