diff --git a/helm/template/Chart.yaml b/helm/template/Chart.yaml index 42d9683..eb141cf 100644 --- a/helm/template/Chart.yaml +++ b/helm/template/Chart.yaml @@ -2,7 +2,7 @@ apiVersion: v2 name: template description: A Helm library chart containing common templates, keeping application templates short type: library -version: 0.1.15 +version: 0.1.16 maintainers: - name: Jim Martens url: https://2martens.de @@ -10,8 +10,8 @@ sources: - https://git.2martens.de/2martens/cloud-configuration annotations: artifacthub.io/changes: | - - kind: removed - description: Removed pointless argo config + - kind: added + description: Added revisionHistoryLimit config artifacthub.io/signKey: | fingerprint: F0F153B65BAD467201D7544E47393ABD1F96B7C8 url: https://mafiasi.de/pks/key/47393ABD1F96B7C8.asc diff --git a/helm/template/_values.yaml b/helm/template/_values.yaml index 08d2a1d..5244b31 100644 --- a/helm/template/_values.yaml +++ b/helm/template/_values.yaml @@ -2,6 +2,8 @@ # the default for your application differs. The image.repository is a prime candidate for that. replicaCount: 1 +# revisionHistoryLimit: can be configured to reduce/increase amount of stored replica sets for rollback +revisionHistoryLimit: 10 image: repository: 2martens/template diff --git a/helm/template/templates/_deployment.yaml b/helm/template/templates/_deployment.yaml index 08a04c7..bd456e2 100644 --- a/helm/template/templates/_deployment.yaml +++ b/helm/template/templates/_deployment.yaml @@ -6,6 +6,7 @@ metadata: labels: {{- include "template.labels" . | nindent 4 }} spec: + revisionHistoryLimit: {{ .Values.revisionHistoryLimit }} {{- if not .Values.autoscaling.enabled }} replicas: {{ .Values.replicaCount }} {{- end }}