We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent a87b5f5 commit fca2fe1Copy full SHA for fca2fe1
helm/oauth2-proxy/templates/poddisruptionbudget.yaml
@@ -1,4 +1,8 @@
1
-{{- if and .Values.podDisruptionBudget.enabled (gt (.Values.replicaCount | int) 1) }}
+{{- $replicaCount := .Values.replicaCount | default 1 }}
2
+{{- if .Values.autoscaling.enabled }}
3
+ {{- $replicaCount = .Values.autoscaling.minReplicas | default 1 }}
4
+{{- end }}
5
+{{- if and .Values.podDisruptionBudget.enabled (gt $replicaCount 1) }}
6
apiVersion: {{ include "capabilities.podDisruptionBudget.apiVersion" . }}
7
kind: PodDisruptionBudget
8
metadata:
0 commit comments