fix: wrong removing space (#9)
This commit is contained in:
@ -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 }}
|
||||
|
@ -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 }}
|
||||
|
@ -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 }}
|
||||
|
Reference in New Issue
Block a user