From 15472f73696a07653c8e1f53068b86cc504fd205 Mon Sep 17 00:00:00 2001 From: Matt Dainty Date: Wed, 15 Nov 2023 11:22:08 +0000 Subject: [PATCH] fix: Add chart parameters for setting revisionHistoryLimit Signed-off-by: Matt Dainty --- .../charts/kyvernoPlugin/templates/deployment.yaml | 1 + charts/policy-reporter/charts/kyvernoPlugin/values.yaml | 2 ++ charts/policy-reporter/charts/ui/templates/deployment.yaml | 1 + charts/policy-reporter/charts/ui/values.yaml | 2 ++ charts/policy-reporter/templates/deployment.yaml | 1 + charts/policy-reporter/values.yaml | 2 ++ 6 files changed, 9 insertions(+) diff --git a/charts/policy-reporter/charts/kyvernoPlugin/templates/deployment.yaml b/charts/policy-reporter/charts/kyvernoPlugin/templates/deployment.yaml index 251c08f9..a714a431 100644 --- a/charts/policy-reporter/charts/kyvernoPlugin/templates/deployment.yaml +++ b/charts/policy-reporter/charts/kyvernoPlugin/templates/deployment.yaml @@ -11,6 +11,7 @@ metadata: {{- include "kyvernoplugin.labels" . | nindent 4 }} spec: replicas: {{ .Values.replicaCount }} + revisionHistoryLimit: {{ .Values.revisionHistoryLimit }} {{- if .Values.deploymentStrategy }} strategy: {{- toYaml .Values.deploymentStrategy | nindent 4 }} diff --git a/charts/policy-reporter/charts/kyvernoPlugin/values.yaml b/charts/policy-reporter/charts/kyvernoPlugin/values.yaml index 547a732d..a2e3112f 100644 --- a/charts/policy-reporter/charts/kyvernoPlugin/values.yaml +++ b/charts/policy-reporter/charts/kyvernoPlugin/values.yaml @@ -10,6 +10,8 @@ priorityClassName: "" replicaCount: 1 +revisionHistoryLimit: 10 + deploymentStrategy: {} # rollingUpdate: # maxSurge: 25% diff --git a/charts/policy-reporter/charts/ui/templates/deployment.yaml b/charts/policy-reporter/charts/ui/templates/deployment.yaml index 30dbbe64..9100cad5 100644 --- a/charts/policy-reporter/charts/ui/templates/deployment.yaml +++ b/charts/policy-reporter/charts/ui/templates/deployment.yaml @@ -7,6 +7,7 @@ metadata: {{- include "ui.labels" . | nindent 4 }} spec: replicas: {{ .Values.replicaCount }} + revisionHistoryLimit: {{ .Values.revisionHistoryLimit }} {{- if .Values.deploymentStrategy }} strategy: {{- toYaml .Values.deploymentStrategy | nindent 4 }} diff --git a/charts/policy-reporter/charts/ui/values.yaml b/charts/policy-reporter/charts/ui/values.yaml index ec7067ef..b757617c 100644 --- a/charts/policy-reporter/charts/ui/values.yaml +++ b/charts/policy-reporter/charts/ui/values.yaml @@ -108,6 +108,8 @@ imagePullSecrets: [] replicaCount: 1 +revisionHistoryLimit: 10 + deploymentStrategy: {} # rollingUpdate: # maxSurge: 25% diff --git a/charts/policy-reporter/templates/deployment.yaml b/charts/policy-reporter/templates/deployment.yaml index 0dfabd21..b1d67496 100644 --- a/charts/policy-reporter/templates/deployment.yaml +++ b/charts/policy-reporter/templates/deployment.yaml @@ -11,6 +11,7 @@ metadata: {{- end }} spec: replicas: {{ .Values.replicaCount }} + revisionHistoryLimit: {{ .Values.revisionHistoryLimit }} {{- if .Values.deploymentStrategy }} strategy: {{- toYaml .Values.deploymentStrategy | nindent 4 }} diff --git a/charts/policy-reporter/values.yaml b/charts/policy-reporter/values.yaml index 43069ccf..fd094547 100644 --- a/charts/policy-reporter/values.yaml +++ b/charts/policy-reporter/values.yaml @@ -13,6 +13,8 @@ priorityClassName: "" replicaCount: 1 +revisionHistoryLimit: 10 + deploymentStrategy: {} # rollingUpdate: # maxSurge: 25%