diff --git a/Chart.yaml b/Chart.yaml index 2b5de62..5c966f0 100644 --- a/Chart.yaml +++ b/Chart.yaml @@ -14,4 +14,4 @@ type: library # This is the chart version. This version number should be incremented each time you make changes # to the chart and its templates, including the app version. -version: 0.5.1 +version: 0.5.2 diff --git a/templates/_cronjob.yaml b/templates/_cronjob.yaml index 1c9855b..f03a1ee 100644 --- a/templates/_cronjob.yaml +++ b/templates/_cronjob.yaml @@ -10,11 +10,11 @@ spec: {{- $cronJob := index . 1 }} {{- $pod := index . 2 }} {{- $serviceAccount := index . 3 }} -{{- if semverCompare ">=1.21.0" $top.Capabilities.KubeVersion.Version -}} +{{- if semverCompare ">=1.21.0" $top.Capabilities.KubeVersion.Version }} apiVersion: batch/v1 -{{- else -}} +{{- else }} apiVersion: batch/v1beta1 -{{- end -}} +{{- end }} kind: CronJob metadata: {{- include "common.metadata" (list $top) | nindent 2 }} diff --git a/templates/_hpa.yaml b/templates/_hpa.yaml index 282e986..54f6b21 100644 --- a/templates/_hpa.yaml +++ b/templates/_hpa.yaml @@ -3,11 +3,11 @@ {{- define "common.hpa.tpl" -}} {{- $top := first . }} {{- $autoscaling := index . 1 }} -{{- if semverCompare ">=1.23.0" $top.Capabilities.KubeVersion.Version -}} +{{- if semverCompare ">=1.23.0" $top.Capabilities.KubeVersion.Version }} apiVersion: autoscaling/v2 -{{- else -}} +{{- else }} apiVersion: autoscaling/v2beta2 -{{- end -}} +{{- end }} kind: HorizontalPodAutoscaler metadata: {{- include "common.metadata" (list $top) | nindent 2 }} diff --git a/templates/_pdb.yaml b/templates/_pdb.yaml index 1780a94..013668d 100644 --- a/templates/_pdb.yaml +++ b/templates/_pdb.yaml @@ -3,11 +3,11 @@ {{- define "common.pdb.tpl" -}} {{- $top := first . }} {{- $pdb := index . 1 }} -{{- if semverCompare ">=1.21.0" $top.Capabilities.KubeVersion.Version -}} +{{- if semverCompare ">=1.21.0" $top.Capabilities.KubeVersion.Version }} apiVersion: policy/v1 -{{- else -}} +{{- else }} apiVersion: policy/v1beta1 -{{- end -}} +{{- end }} kind: PodDisruptionBudget metadata: {{- include "common.metadata" (list $top) | nindent 2 }}