From 3fe06b292687d67b0dbc2511a17d9323dbd61cdf Mon Sep 17 00:00:00 2001 From: relusc Date: Wed, 22 Mar 2023 16:28:56 +0100 Subject: [PATCH] Incorporate review suggestions by @heubeck --- README.md | 2 ++ .../{k8s-pod-cleanup => pod-cleanup}/ci/test-values.yaml | 0 charts/{k8s-pod-cleanup => pod-cleanup}/Chart.yaml | 2 +- charts/{k8s-pod-cleanup => pod-cleanup}/README.md | 2 +- .../{k8s-pod-cleanup => pod-cleanup}/templates/clusterrole.yaml | 0 .../templates/clusterrolebinding.yaml | 0 charts/{k8s-pod-cleanup => pod-cleanup}/templates/cronjob.yaml | 0 .../templates/serviceaccount.yaml | 0 charts/{k8s-pod-cleanup => pod-cleanup}/values.yaml | 0 9 files changed, 4 insertions(+), 2 deletions(-) rename chart-tests/{k8s-pod-cleanup => pod-cleanup}/ci/test-values.yaml (100%) rename charts/{k8s-pod-cleanup => pod-cleanup}/Chart.yaml (92%) rename charts/{k8s-pod-cleanup => pod-cleanup}/README.md (98%) rename charts/{k8s-pod-cleanup => pod-cleanup}/templates/clusterrole.yaml (100%) rename charts/{k8s-pod-cleanup => pod-cleanup}/templates/clusterrolebinding.yaml (100%) rename charts/{k8s-pod-cleanup => pod-cleanup}/templates/cronjob.yaml (100%) rename charts/{k8s-pod-cleanup => pod-cleanup}/templates/serviceaccount.yaml (100%) rename charts/{k8s-pod-cleanup => pod-cleanup}/values.yaml (100%) diff --git a/README.md b/README.md index 632d43a..781e94c 100644 --- a/README.md +++ b/README.md @@ -33,6 +33,8 @@ The [OWASP Dependency-Track](https://owasp.org/www-project-dependency-track/) pr A CronJob that deletes terminated/failed pods from a Kubernetes cluster. +Useful when e.g. provisioning Google Kubernetes Engine clusters with preemptible nodes. The preemption leads to pods being shut down during node recreation, however the pods are still kept and displayed when listing them. + --- _This repository is published under the [Apache License 2.0](https://www.apache.org/licenses/LICENSE-2.0)_ diff --git a/chart-tests/k8s-pod-cleanup/ci/test-values.yaml b/chart-tests/pod-cleanup/ci/test-values.yaml similarity index 100% rename from chart-tests/k8s-pod-cleanup/ci/test-values.yaml rename to chart-tests/pod-cleanup/ci/test-values.yaml diff --git a/charts/k8s-pod-cleanup/Chart.yaml b/charts/pod-cleanup/Chart.yaml similarity index 92% rename from charts/k8s-pod-cleanup/Chart.yaml rename to charts/pod-cleanup/Chart.yaml index 5a11273..eeaed42 100644 --- a/charts/k8s-pod-cleanup/Chart.yaml +++ b/charts/pod-cleanup/Chart.yaml @@ -1,5 +1,5 @@ apiVersion: v2 -name: k8s-pod-cleanup +name: pod-cleanup home: https://github.com/MediaMarktSaturn/helm-charts description: Helm Chart for cleaning up failed/terminated Kubernetes pods type: application diff --git a/charts/k8s-pod-cleanup/README.md b/charts/pod-cleanup/README.md similarity index 98% rename from charts/k8s-pod-cleanup/README.md rename to charts/pod-cleanup/README.md index 85ed68b..f106981 100644 --- a/charts/k8s-pod-cleanup/README.md +++ b/charts/pod-cleanup/README.md @@ -1,4 +1,4 @@ -# k8s-pod-cleanup +# pod-cleanup ![Version: 1.0.0](https://img.shields.io/badge/Version-1.0.0-informational?style=flat-square) ![Type: application](https://img.shields.io/badge/Type-application-informational?style=flat-square) diff --git a/charts/k8s-pod-cleanup/templates/clusterrole.yaml b/charts/pod-cleanup/templates/clusterrole.yaml similarity index 100% rename from charts/k8s-pod-cleanup/templates/clusterrole.yaml rename to charts/pod-cleanup/templates/clusterrole.yaml diff --git a/charts/k8s-pod-cleanup/templates/clusterrolebinding.yaml b/charts/pod-cleanup/templates/clusterrolebinding.yaml similarity index 100% rename from charts/k8s-pod-cleanup/templates/clusterrolebinding.yaml rename to charts/pod-cleanup/templates/clusterrolebinding.yaml diff --git a/charts/k8s-pod-cleanup/templates/cronjob.yaml b/charts/pod-cleanup/templates/cronjob.yaml similarity index 100% rename from charts/k8s-pod-cleanup/templates/cronjob.yaml rename to charts/pod-cleanup/templates/cronjob.yaml diff --git a/charts/k8s-pod-cleanup/templates/serviceaccount.yaml b/charts/pod-cleanup/templates/serviceaccount.yaml similarity index 100% rename from charts/k8s-pod-cleanup/templates/serviceaccount.yaml rename to charts/pod-cleanup/templates/serviceaccount.yaml diff --git a/charts/k8s-pod-cleanup/values.yaml b/charts/pod-cleanup/values.yaml similarity index 100% rename from charts/k8s-pod-cleanup/values.yaml rename to charts/pod-cleanup/values.yaml