From 469b52cfb9c6c9635b41fd063ca0f2f9e7d638aa Mon Sep 17 00:00:00 2001 From: knrt10 Date: Tue, 26 Oct 2021 13:04:09 +0530 Subject: [PATCH] Add field revisionHistoryLimit to deployment To specify how many old ReplicaSets for the Deployment user want to retain, adding this field. Default is 10 is the field is removed. closes: #494 Signed-off-by: knrt10 --- charts/nebraska/Chart.yaml | 2 +- charts/nebraska/templates/deployment.yaml | 1 + charts/nebraska/values.yaml | 1 + 3 files changed, 3 insertions(+), 1 deletion(-) diff --git a/charts/nebraska/Chart.yaml b/charts/nebraska/Chart.yaml index 8b7007691..36b5e2c03 100644 --- a/charts/nebraska/Chart.yaml +++ b/charts/nebraska/Chart.yaml @@ -19,7 +19,7 @@ sources: maintainers: - name: kinvolk url: https://kinvolk.io/ -version: 0.1.8 +version: 0.1.9 appVersion: "2.5.1" dependencies: diff --git a/charts/nebraska/templates/deployment.yaml b/charts/nebraska/templates/deployment.yaml index b636cde6f..15c11ce12 100644 --- a/charts/nebraska/templates/deployment.yaml +++ b/charts/nebraska/templates/deployment.yaml @@ -10,6 +10,7 @@ metadata: {{- include "nebraska.labels" . | nindent 4 }} spec: replicas: {{ .Values.replicaCount }} + revisionHistoryLimit: {{ .Values.revisionHistoryLimit }} strategy: {{- toYaml .Values.strategy | nindent 4 }} selector: diff --git a/charts/nebraska/values.yaml b/charts/nebraska/values.yaml index d8add138d..40e014f3d 100644 --- a/charts/nebraska/values.yaml +++ b/charts/nebraska/values.yaml @@ -3,6 +3,7 @@ # Declare variables to be passed into your templates. replicaCount: 1 +revisionHistoryLimit: 5 image: registry: ghcr.io