From 4cf1a62cbf6e163b321a60b47c59dd5dd2c06800 Mon Sep 17 00:00:00 2001 From: Till Adam Date: Tue, 6 Aug 2024 10:13:10 +0200 Subject: [PATCH] feat: make pm pst job image configurable --- charts/rstudio-pm/ci/all-values.yaml | 5 +++++ charts/rstudio-pm/templates/post-upgrade-chown-job.yaml | 2 +- charts/rstudio-pm/values.yaml | 8 ++++++++ 3 files changed, 14 insertions(+), 1 deletion(-) diff --git a/charts/rstudio-pm/ci/all-values.yaml b/charts/rstudio-pm/ci/all-values.yaml index efa2c9b8..76f37155 100644 --- a/charts/rstudio-pm/ci/all-values.yaml +++ b/charts/rstudio-pm/ci/all-values.yaml @@ -84,3 +84,8 @@ extraContainers: env: - name: CHRONICLE_SERVER_ADDRESS value: "http://chronicle-server.default" + +postUpgradeJob: + image: + repository: busybox + tag: latest diff --git a/charts/rstudio-pm/templates/post-upgrade-chown-job.yaml b/charts/rstudio-pm/templates/post-upgrade-chown-job.yaml index b882cef1..b502fce6 100644 --- a/charts/rstudio-pm/templates/post-upgrade-chown-job.yaml +++ b/charts/rstudio-pm/templates/post-upgrade-chown-job.yaml @@ -22,7 +22,7 @@ spec: restartPolicy: Never containers: - name: chown-shared-storage - image: "busybox" + image: "{{ .Values.postUpgradeJob.image.repository }}:{{ .Values.postUpgradeJob.image.tag }}" command: - /bin/sh - -c diff --git a/charts/rstudio-pm/values.yaml b/charts/rstudio-pm/values.yaml index a5ce17fb..ebd1d400 100644 --- a/charts/rstudio-pm/values.yaml +++ b/charts/rstudio-pm/values.yaml @@ -250,3 +250,11 @@ tolerations: [] priorityClassName: "" # -- Pod disruption budget podDisruptionBudget: {} + +# -- post upgrade job config +postUpgradeJob: + image: + # -- the repository to use for the post upgrade job image + repository: busybox + # -- the tag to use for the post upgrade job image + tag: latest