From 8b39c30dd6e43689a6bd8f3e512d7638e7cf2237 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Andr=C3=A9=20Frimberger?= Date: Thu, 9 May 2024 10:27:14 +0200 Subject: [PATCH 1/3] feat(chart:k8up) add security context for cleanup hook MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Signed-off-by: André Frimberger --- charts/k8up/Chart.yaml | 2 +- charts/k8up/templates/cleanup-hook.yaml | 4 ++++ 2 files changed, 5 insertions(+), 1 deletion(-) diff --git a/charts/k8up/Chart.yaml b/charts/k8up/Chart.yaml index 98fea299f..abbd68303 100644 --- a/charts/k8up/Chart.yaml +++ b/charts/k8up/Chart.yaml @@ -6,7 +6,7 @@ keywords: - backup - operator - restic -version: 4.7.0 +version: 4.8.0 sources: - https://github.com/k8up-io/k8up maintainers: diff --git a/charts/k8up/templates/cleanup-hook.yaml b/charts/k8up/templates/cleanup-hook.yaml index 7133feb4e..3d752843a 100644 --- a/charts/k8up/templates/cleanup-hook.yaml +++ b/charts/k8up/templates/cleanup-hook.yaml @@ -81,6 +81,8 @@ spec: spec: restartPolicy: Never serviceAccountName: cleanup-service-account + securityContext: + {{- toYaml .Values.podSecurityContext | nindent 8 }} containers: - name: "{{ .Release.Name }}-cleanup" image: "{{ include "cleanupImage" . }}" @@ -99,3 +101,5 @@ spec: kubectl -n "$ns" delete rolebinding pod-executor-namespaced --ignore-not-found=true kubectl -n "$ns" delete role pod-executor --ignore-not-found=true done + securityContext: + {{- toYaml .Values.securityContext | nindent 12 }} From 2a23a993fc18c88185a0c3dc2b01cf16b956f152 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Andr=C3=A9=20Frimberger?= Date: Sun, 2 Jun 2024 19:37:53 +0200 Subject: [PATCH 2/3] fix(chart:k8up) labels for Dashboard MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Signed-off-by: André Frimberger --- charts/k8up/templates/grafana-dashboard.yaml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/charts/k8up/templates/grafana-dashboard.yaml b/charts/k8up/templates/grafana-dashboard.yaml index 75c8a8d14..587c4fa3b 100644 --- a/charts/k8up/templates/grafana-dashboard.yaml +++ b/charts/k8up/templates/grafana-dashboard.yaml @@ -5,7 +5,7 @@ metadata: namespace: {{ default .Release.Namespace .Values.metrics.grafanaDashboard.namespace }} labels: {{- include "k8up.labels" . | nindent 4 }} - {{- with .Values.metrics.prometheusRule.additionalLabels }} + {{- with .Values.metrics.grafanaDashboard.additionalLabels }} {{- toYaml . | nindent 4 }} {{- end }} data: From 77180bf4f291341442f62ba27e4780b7960b3cfe Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Andr=C3=A9=20Frimberger?= Date: Wed, 5 Jun 2024 08:35:25 +0200 Subject: [PATCH 3/3] doc(chart:k8up) update README.md MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Signed-off-by: André Frimberger --- charts/k8up/README.md | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/charts/k8up/README.md b/charts/k8up/README.md index 7f89a9b7a..711c75c4a 100644 --- a/charts/k8up/README.md +++ b/charts/k8up/README.md @@ -1,6 +1,6 @@ # k8up -![Version: 4.7.0](https://img.shields.io/badge/Version-4.7.0-informational?style=flat-square) +![Version: 4.8.0](https://img.shields.io/badge/Version-4.8.0-informational?style=flat-square) Kubernetes and OpenShift Backup Operator based on restic @@ -13,7 +13,7 @@ helm repo add k8up-io https://k8up-io.github.io/k8up helm install k8up k8up-io/k8up ``` ```bash -kubectl apply -f https://github.com/k8up-io/k8up/releases/download/k8up-4.7.0/k8up-crd.yaml +kubectl apply -f https://github.com/k8up-io/k8up/releases/download/k8up-4.8.0/k8up-crd.yaml ```