From 8085133a6d27ada45b3fd9fb5d1917b56e1ac40a Mon Sep 17 00:00:00 2001 From: chris onare Date: Mon, 11 Aug 2025 16:59:37 +1000 Subject: [PATCH] DEVOPS-2779 - Adding revisionHistoryLimit to deployments --- charts/argocd-apps/Chart.yaml | 2 +- charts/argocd-apps/Values.yaml | 8 +++++++- charts/argocd-apps/templates/frontend-deployment.yaml | 1 + charts/argocd-apps/templates/worker-deployment.yaml | 1 + 4 files changed, 10 insertions(+), 2 deletions(-) diff --git a/charts/argocd-apps/Chart.yaml b/charts/argocd-apps/Chart.yaml index 681d564..b29367d 100644 --- a/charts/argocd-apps/Chart.yaml +++ b/charts/argocd-apps/Chart.yaml @@ -1,4 +1,4 @@ apiVersion: v2 name: argocd-app description: A Helm chart for applications using ArgoCD -version: 1.0.1-delta +version: 1.0.3 diff --git a/charts/argocd-apps/Values.yaml b/charts/argocd-apps/Values.yaml index 76b562e..1c0dc04 100644 --- a/charts/argocd-apps/Values.yaml +++ b/charts/argocd-apps/Values.yaml @@ -32,6 +32,9 @@ main: maxReplicaCount: cpuUtilizationPercentage: memoryUtilizationPercentage: + # Revision history limit for the deployment. This is the number of old ReplicaSets to retain + # Set to 0 to disable revision history. If not set, defaults to 3 + revisionHistoryLimit : 5 worker: name: enabled: @@ -51,4 +54,7 @@ worker: minReplicaCount: maxReplicaCount: cpuUtilizationPercentage: - memoryUtilizationPercentage: \ No newline at end of file + memoryUtilizationPercentage: + # Revision history limit for the deployment. This is the number of old ReplicaSets to retain + # Set to 0 to disable revision history. If not set, defaults to 3 + revisionHistoryLimit : 5 \ No newline at end of file diff --git a/charts/argocd-apps/templates/frontend-deployment.yaml b/charts/argocd-apps/templates/frontend-deployment.yaml index 95e2814..1d4217b 100644 --- a/charts/argocd-apps/templates/frontend-deployment.yaml +++ b/charts/argocd-apps/templates/frontend-deployment.yaml @@ -15,6 +15,7 @@ metadata: operator.1password.io/item-path: "vaults/EnvironmentVariables/items/{{ $.Values.project }}-{{ $.Values.environment }}" ad.datadoghq.com/{{ .Values.main.name }}.logs: "[{\"source\": \"{{ .Values.main.type }}\"}]" spec: + revisionHistoryLimit: {{ .Values.main.revisionHistoryLimit | default 5 }} replicas: {{ .Values.main.replicaCount }} selector: matchLabels: diff --git a/charts/argocd-apps/templates/worker-deployment.yaml b/charts/argocd-apps/templates/worker-deployment.yaml index 6b81ca3..0ed2c10 100644 --- a/charts/argocd-apps/templates/worker-deployment.yaml +++ b/charts/argocd-apps/templates/worker-deployment.yaml @@ -15,6 +15,7 @@ metadata: operator.1password.io/item-path: "vaults/EnvironmentVariables/items/{{ $.Values.project }}-{{ $.Values.environment }}" ad.datadoghq.com/{{ .Values.worker.name }}.logs: "[{\"source\": \"{{ .Values.worker.type }}\"}]" spec: + revisionHistoryLimit: {{ .Values.worker.revisionHistoryLimit | default 5 }} replicas: {{ .Values.worker.replicaCount }} selector: matchLabels: