From 63e381469f9a007b13c95e4c5c60c81304ebb306 Mon Sep 17 00:00:00 2001 From: Hugo Varela P Date: Mon, 5 Sep 2022 04:24:51 -0300 Subject: [PATCH] change apiVersion for CronJob and PodDisruptionBudget to v1 since v1beta1 is deprecated in v1.21+ (#162) --- charts/sorry-cypress/Chart.yaml | 2 +- charts/sorry-cypress/changelog.md | 3 +++ charts/sorry-cypress/templates/cronjob-run-cleaner.yml | 2 +- charts/sorry-cypress/templates/poddisruptionbudget-api.yml | 2 +- .../sorry-cypress/templates/poddisruptionbudget-dashboard.yml | 2 +- .../sorry-cypress/templates/poddisruptionbudget-director.yml | 2 +- 6 files changed, 8 insertions(+), 5 deletions(-) diff --git a/charts/sorry-cypress/Chart.yaml b/charts/sorry-cypress/Chart.yaml index 596ce4e..2c539e9 100644 --- a/charts/sorry-cypress/Chart.yaml +++ b/charts/sorry-cypress/Chart.yaml @@ -2,7 +2,7 @@ apiVersion: v2 name: sorry-cypress description: A Helm chart for Sorry Cypress type: application -version: 1.7.3 +version: 1.7.4 appVersion: 2.3.1 home: https://sorry-cypress.dev/ sources: diff --git a/charts/sorry-cypress/changelog.md b/charts/sorry-cypress/changelog.md index 28a0496..2aba39b 100644 --- a/charts/sorry-cypress/changelog.md +++ b/charts/sorry-cypress/changelog.md @@ -1,4 +1,7 @@ +# 1.7.4 +Update apiVersion for Cronjob template to `batch/v1` and PodDisruptionBudget to `policy/v1` since `v1beta1` is deprecated in v1.21+. + # 1.7.3 Allows to use `priorityClassName` in all services. # 1.7.2 diff --git a/charts/sorry-cypress/templates/cronjob-run-cleaner.yml b/charts/sorry-cypress/templates/cronjob-run-cleaner.yml index de59fe2..0f5f7cd 100644 --- a/charts/sorry-cypress/templates/cronjob-run-cleaner.yml +++ b/charts/sorry-cypress/templates/cronjob-run-cleaner.yml @@ -1,5 +1,5 @@ {{- if .Values.runCleaner.enabled }} -apiVersion: batch/v1beta1 +apiVersion: batch/v1 kind: CronJob metadata: labels: diff --git a/charts/sorry-cypress/templates/poddisruptionbudget-api.yml b/charts/sorry-cypress/templates/poddisruptionbudget-api.yml index 4ca5e3b..0a0e943 100644 --- a/charts/sorry-cypress/templates/poddisruptionbudget-api.yml +++ b/charts/sorry-cypress/templates/poddisruptionbudget-api.yml @@ -1,5 +1,5 @@ {{- if gt (int .Values.api.replicas) 1 }} -apiVersion: policy/v1beta1 +apiVersion: policy/v1 kind: PodDisruptionBudget metadata: name: {{ include "sorry-cypress-helm.fullname" . }}-api diff --git a/charts/sorry-cypress/templates/poddisruptionbudget-dashboard.yml b/charts/sorry-cypress/templates/poddisruptionbudget-dashboard.yml index 7c0f24f..22291e2 100644 --- a/charts/sorry-cypress/templates/poddisruptionbudget-dashboard.yml +++ b/charts/sorry-cypress/templates/poddisruptionbudget-dashboard.yml @@ -1,5 +1,5 @@ {{- if gt (int .Values.dashboard.replicas) 1 }} -apiVersion: policy/v1beta1 +apiVersion: policy/v1 kind: PodDisruptionBudget metadata: name: {{ include "sorry-cypress-helm.fullname" . }}-dashboard diff --git a/charts/sorry-cypress/templates/poddisruptionbudget-director.yml b/charts/sorry-cypress/templates/poddisruptionbudget-director.yml index 28ecd83..2eea7e2 100644 --- a/charts/sorry-cypress/templates/poddisruptionbudget-director.yml +++ b/charts/sorry-cypress/templates/poddisruptionbudget-director.yml @@ -1,5 +1,5 @@ {{- if gt (int .Values.director.replicas) 1 }} -apiVersion: policy/v1beta1 +apiVersion: policy/v1 kind: PodDisruptionBudget metadata: name: {{ include "sorry-cypress-helm.fullname" . }}-director