Skip to content

Commit c6719f9

Browse files
committed
feat(charts): make replicaCount optional
1 parent f5781f0 commit c6719f9

File tree

1 file changed

+3
-1
lines changed

1 file changed

+3
-1
lines changed

ci/helm-chart/templates/deployment.yaml

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -8,7 +8,9 @@ metadata:
88
annotations: {{- toYaml .Values.annotations | nindent 4 }}
99
{{- end }}
1010
spec:
11-
replicas: {{ .Values.replicaCount | default 1 }}
11+
{{- if ne .Values.replicaCount nil }}
12+
replicas: {{ .Values.replicaCount }}
13+
{{- end }}
1214
strategy:
1315
type: Recreate
1416
selector:

0 commit comments

Comments
 (0)