Skip to content

Commit fdb63e2

Browse files
Fixed the type mismatch with a cast
1 parent 7c179b3 commit fdb63e2

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

helm/oauth2-proxy/templates/poddisruptionbudget.yaml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
1-
{{- $replicaCount := .Values.replicaCount | default 1 }}
1+
{{- $replicaCount := .Values.replicaCount | default 1 | int }}
22
{{- if .Values.autoscaling.enabled }}
3-
{{- $replicaCount = .Values.autoscaling.minReplicas | default 1 }}
3+
{{- $replicaCount = .Values.autoscaling.minReplicas | default 1 | int }}
44
{{- end }}
55
{{- if and .Values.podDisruptionBudget.enabled (gt $replicaCount 1) }}
66
apiVersion: {{ include "capabilities.podDisruptionBudget.apiVersion" . }}

0 commit comments

Comments
 (0)