mirror of
https://github.com/bokysan/docker-postfix.git
synced 2024-09-20 06:46:10 +08:00
fix HorizontalPodAutoscaler apiVersion
This commit is contained in:
parent
e3898ed071
commit
55f2f71dd5
|
@ -3,7 +3,11 @@
|
|||
{{- $fullName := include (print $chart ".fullname") . -}}
|
||||
{{- $labels := include (print $chart ".labels") . -}}
|
||||
{{- $kind := "StatefulSet" -}}
|
||||
apiVersion: {{ .Values.autoscaling.apiVersion }}
|
||||
{{- if semverCompare ">=1.23-0" .Capabilities.KubeVersion.GitVersion }}
|
||||
apiVersion: autoscaling/v2
|
||||
{{- else }}
|
||||
apiVersion: autoscaling/v2beta1
|
||||
{{- end }}
|
||||
kind: HorizontalPodAutoscaler
|
||||
metadata:
|
||||
name: {{ $fullName | quote }}
|
||||
|
|
|
@ -95,7 +95,6 @@ autoscaling:
|
|||
# targetMemoryUtilizationPercentage: 80
|
||||
labels: {}
|
||||
annotations: {}
|
||||
apiVersion: "autoscaling/v2beta1"
|
||||
|
||||
nodeSelector: {}
|
||||
tolerations: []
|
||||
|
|
Loading…
Reference in a new issue