fix: wrong variable calling (#8)
This commit is contained in:
@ -14,4 +14,4 @@ type: library
|
|||||||
|
|
||||||
# This is the chart version. This version number should be incremented each time you make changes
|
# 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.
|
# to the chart and its templates, including the app version.
|
||||||
version: 0.5.0
|
version: 0.5.1
|
||||||
|
@ -10,7 +10,7 @@ spec:
|
|||||||
{{- $cronJob := index . 1 }}
|
{{- $cronJob := index . 1 }}
|
||||||
{{- $pod := index . 2 }}
|
{{- $pod := index . 2 }}
|
||||||
{{- $serviceAccount := index . 3 }}
|
{{- $serviceAccount := index . 3 }}
|
||||||
{{- if semverCompare ">=1.21.0" .Capabilities.KubeVersion.Version -}}
|
{{- if semverCompare ">=1.21.0" $top.Capabilities.KubeVersion.Version -}}
|
||||||
apiVersion: batch/v1
|
apiVersion: batch/v1
|
||||||
{{- else -}}
|
{{- else -}}
|
||||||
apiVersion: batch/v1beta1
|
apiVersion: batch/v1beta1
|
||||||
|
@ -3,7 +3,7 @@
|
|||||||
{{- define "common.hpa.tpl" -}}
|
{{- define "common.hpa.tpl" -}}
|
||||||
{{- $top := first . }}
|
{{- $top := first . }}
|
||||||
{{- $autoscaling := index . 1 }}
|
{{- $autoscaling := index . 1 }}
|
||||||
{{- if semverCompare ">=1.23.0" .Capabilities.KubeVersion.Version -}}
|
{{- if semverCompare ">=1.23.0" $top.Capabilities.KubeVersion.Version -}}
|
||||||
apiVersion: autoscaling/v2
|
apiVersion: autoscaling/v2
|
||||||
{{- else -}}
|
{{- else -}}
|
||||||
apiVersion: autoscaling/v2beta2
|
apiVersion: autoscaling/v2beta2
|
||||||
|
@ -3,7 +3,7 @@
|
|||||||
{{- define "common.pdb.tpl" -}}
|
{{- define "common.pdb.tpl" -}}
|
||||||
{{- $top := first . }}
|
{{- $top := first . }}
|
||||||
{{- $pdb := index . 1 }}
|
{{- $pdb := index . 1 }}
|
||||||
{{- if semverCompare ">=1.21.0" .Capabilities.KubeVersion.Version -}}
|
{{- if semverCompare ">=1.21.0" $top.Capabilities.KubeVersion.Version -}}
|
||||||
apiVersion: policy/v1
|
apiVersion: policy/v1
|
||||||
{{- else -}}
|
{{- else -}}
|
||||||
apiVersion: policy/v1beta1
|
apiVersion: policy/v1beta1
|
||||||
|
Reference in New Issue
Block a user