Skip to content

Commit 1c55e7f

Browse files
committed
DEVOPS-2779 - Adding revisionHistoryLimit to deployments
1 parent 6f5efed commit 1c55e7f

File tree

3 files changed

+9
-1
lines changed

3 files changed

+9
-1
lines changed

charts/argocd-apps/Values.yaml

Lines changed: 7 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -32,6 +32,9 @@ main:
3232
maxReplicaCount:
3333
cpuUtilizationPercentage:
3434
memoryUtilizationPercentage:
35+
# Revision history limit for the deployment. This is the number of old ReplicaSets to retain
36+
# Set to 0 to disable revision history. If not set, defaults to 3
37+
revisionHistoryLimit : 3
3538
worker:
3639
name:
3740
enabled:
@@ -51,4 +54,7 @@ worker:
5154
minReplicaCount:
5255
maxReplicaCount:
5356
cpuUtilizationPercentage:
54-
memoryUtilizationPercentage:
57+
memoryUtilizationPercentage:
58+
# Revision history limit for the deployment. This is the number of old ReplicaSets to retain
59+
# Set to 0 to disable revision history. If not set, defaults to 3
60+
revisionHistoryLimit : 3

charts/argocd-apps/templates/frontend-deployment.yaml

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -15,6 +15,7 @@ metadata:
1515
operator.1password.io/item-path: "vaults/EnvironmentVariables/items/{{ $.Values.project }}-{{ $.Values.environment }}"
1616
ad.datadoghq.com/{{ .Values.main.name }}.logs: "[{\"source\": \"{{ .Values.main.type }}\"}]"
1717
spec:
18+
revisionHistoryLimit: {{ .Values.main.revisionHistoryLimit | default 3 }}
1819
replicas: {{ .Values.main.replicaCount }}
1920
selector:
2021
matchLabels:

charts/argocd-apps/templates/worker-deployment.yaml

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -15,6 +15,7 @@ metadata:
1515
operator.1password.io/item-path: "vaults/EnvironmentVariables/items/{{ $.Values.project }}-{{ $.Values.environment }}"
1616
ad.datadoghq.com/{{ .Values.worker.name }}.logs: "[{\"source\": \"{{ .Values.worker.type }}\"}]"
1717
spec:
18+
revisionHistoryLimit: {{ .Values.worker.revisionHistoryLimit | default 3 }}
1819
replicas: {{ .Values.worker.replicaCount }}
1920
selector:
2021
matchLabels:

0 commit comments

Comments
 (0)