diff --git a/src/helm/blue-agent/templates/deployment.yaml b/src/helm/blue-agent/templates/deployment.yaml index f54ef2ac..c86018da 100644 --- a/src/helm/blue-agent/templates/deployment.yaml +++ b/src/helm/blue-agent/templates/deployment.yaml @@ -10,6 +10,7 @@ spec: matchLabels: {{- include "blue-agent.selectorLabels" . | nindent 6 }} replicas: {{ .Values.replicaCount | int | required "A value for .Values.replicaCount is required" }} + revisionHistoryLimit: {{ .Values.revisionHistoryLimit | int | required "A value for .Values.revisionHistoryLimit is required" }} strategy: type: RollingUpdate rollingUpdate: diff --git a/src/helm/blue-agent/values.yaml b/src/helm/blue-agent/values.yaml index 466a7984..ef2647c7 100644 --- a/src/helm/blue-agent/values.yaml +++ b/src/helm/blue-agent/values.yaml @@ -126,6 +126,10 @@ tolerations: [] # Pod affinity configuration affinity: {} +# Number of revisions to keep in the history of the Deployment +# Warning: setting this to 0 will disable the Deployment history and cause inability to rollback (see: https://kubernetes.io/docs/concepts/workloads/controllers/deployment/#clean-up-policy) +revisionHistoryLimit: 10 + # Annotations for scheduling and security behaviors # # Example, to be used with img or BuildKit: