Sanity check replicaCount when determining if using PDB to avoid pods

that cannot be terminated, which causes k8s upgrades to fail.
This commit is contained in:
David Burke 2021-07-10 14:54:37 -04:00
parent ef0f8f8f57
commit a94054df32
2 changed files with 4 additions and 2 deletions

View file

@ -1,3 +1,4 @@
{{- if or (and .Values.web.autoscaling.enabled (gt (.Values.web.autoscaling.minReplicas | int) 1)) (gt (.Values.web.replicaCount | int) 1) }}
{{- if .Values.web.budget -}}
{{- if .Values.web.budget.minAvailable -}}
apiVersion: policy/v1beta1
@ -14,3 +15,4 @@ spec:
app.kubernetes.io/component: web
{{- end -}}
{{- end -}}
{{- end -}}