Skip to content

Commit

Permalink
change apiVersion for CronJob and PodDisruptionBudget to v1 since v1b…
Browse files Browse the repository at this point in the history
…eta1 is deprecated in v1.21+ (#162)
  • Loading branch information
hivp authored Sep 5, 2022
1 parent 7b7453a commit 63e3814
Show file tree
Hide file tree
Showing 6 changed files with 8 additions and 5 deletions.
2 changes: 1 addition & 1 deletion charts/sorry-cypress/Chart.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -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:
Expand Down
3 changes: 3 additions & 0 deletions charts/sorry-cypress/changelog.md
Original file line number Diff line number Diff line change
@@ -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
Expand Down
2 changes: 1 addition & 1 deletion charts/sorry-cypress/templates/cronjob-run-cleaner.yml
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
{{- if .Values.runCleaner.enabled }}
apiVersion: batch/v1beta1
apiVersion: batch/v1
kind: CronJob
metadata:
labels:
Expand Down
2 changes: 1 addition & 1 deletion charts/sorry-cypress/templates/poddisruptionbudget-api.yml
Original file line number Diff line number Diff line change
@@ -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
Expand Down
Original file line number Diff line number Diff line change
@@ -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
Expand Down
Original file line number Diff line number Diff line change
@@ -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
Expand Down

0 comments on commit 63e3814

Please sign in to comment.