From 37968b6d7179e6c48cdfb266a74d92af88c5fb0a Mon Sep 17 00:00:00 2001 From: Jim Myhrberg Date: Tue, 22 Apr 2025 10:51:09 +0100 Subject: [PATCH] feat(chart): add revisionHistoryLimit configuration (#24) Add a configurable revisionHistoryLimit to the Deployment and set the default to 10. --- chart/templates/deployment.yaml | 1 + chart/values.yaml | 1 + 2 files changed, 2 insertions(+) diff --git a/chart/templates/deployment.yaml b/chart/templates/deployment.yaml index e2573bc..27d868f 100644 --- a/chart/templates/deployment.yaml +++ b/chart/templates/deployment.yaml @@ -8,6 +8,7 @@ spec: {{- if not .Values.autoscaling.enabled }} replicas: {{ .Values.replicaCount }} {{- end }} + revisionHistoryLimit: {{ .Values.revisionHistoryLimit }} selector: matchLabels: {{- include "casecmp.selectorLabels" . | nindent 6 }} diff --git a/chart/values.yaml b/chart/values.yaml index cd4df26..f3d5e11 100644 --- a/chart/values.yaml +++ b/chart/values.yaml @@ -3,6 +3,7 @@ # Declare variables to be passed into your templates. replicaCount: 1 +revisionHistoryLimit: 10 image: repository: ghcr.io/jimeh/casecmp