From cc2dd351f3f56943e1d03a8b1cee0d885003eca0 Mon Sep 17 00:00:00 2001 From: Joakim Edenholm Date: Thu, 13 Apr 2023 10:55:39 +0000 Subject: [PATCH] fix: update PodDisruptionBudget API version in bundled chart --- .gitlab/ci/test.gitlab-ci.yml | 6 ++++++ assets/auto-deploy-app/templates/pdb.yaml | 2 +- 2 files changed, 7 insertions(+), 1 deletion(-) diff --git a/.gitlab/ci/test.gitlab-ci.yml b/.gitlab/ci/test.gitlab-ci.yml index 3f21449..0510a08 100644 --- a/.gitlab/ci/test.gitlab-ci.yml +++ b/.gitlab/ci/test.gitlab-ci.yml @@ -282,6 +282,12 @@ test-deploy: - auto-deploy deploy - helm -n "$EXPECTED_NAMESPACE" get all production +test-deploy-pdb: + extends: test-deploy + variables: + HELM_UPGRADE_EXTRA_ARGS: |- + --set podDisruptionBudget.enabled=true + test-deploy-custom-context: extends: test-deploy variables: diff --git a/assets/auto-deploy-app/templates/pdb.yaml b/assets/auto-deploy-app/templates/pdb.yaml index 0cadb4d..30c9bb4 100644 --- a/assets/auto-deploy-app/templates/pdb.yaml +++ b/assets/auto-deploy-app/templates/pdb.yaml @@ -1,5 +1,5 @@ {{- if .Values.podDisruptionBudget.enabled }} -apiVersion: policy/v1beta1 +apiVersion: policy/v1 kind: PodDisruptionBudget metadata: name: {{ template "fullname" . }} -- GitLab