Skip to content

Commit 078aa75

Browse files
Allow defining replicas from attributes for application deployments, … (#658)
While its not relevant to scale console and cron beyond 1, it may be useful to scale to 0 without "enabled: false" removing the deployment and any related resources
1 parent 1450d40 commit 078aa75

1 file changed

Lines changed: 3 additions & 1 deletion

File tree

helm/app/templates/application/job-queue-consumer/deployment.yaml

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -11,7 +11,9 @@ metadata:
1111
annotations:
1212
argocd.argoproj.io/sync-wave: "15"
1313
spec:
14-
replicas: 1
14+
{{- with (pick . "replicas") }}
15+
{{- . | toYaml | nindent 2 }}
16+
{{- end }}
1517
revisionHistoryLimit: 2
1618
selector:
1719
matchLabels:

0 commit comments

Comments
 (0)