From 352776a89992a559a6f4c0e52947f70b9d1ca1b3 Mon Sep 17 00:00:00 2001 From: Dries De Peuter Date: Sat, 20 Jun 2020 22:59:47 +0200 Subject: [PATCH] Set resources --- charts/ledger/Chart.yaml | 2 +- charts/ledger/templates/statefulset.yaml | 8 ++++++++ 2 files changed, 9 insertions(+), 1 deletion(-) diff --git a/charts/ledger/Chart.yaml b/charts/ledger/Chart.yaml index 800dfb5..0d62ad9 100644 --- a/charts/ledger/Chart.yaml +++ b/charts/ledger/Chart.yaml @@ -1,7 +1,7 @@ apiVersion: v2 name: ledger description: A ledger for your CD pipeline -version: 0.1.9 +version: 0.1.10 appVersion: 0.1.5 sources: - https://github.com/stenic/helm-charts/tree/master/charts/ledger diff --git a/charts/ledger/templates/statefulset.yaml b/charts/ledger/templates/statefulset.yaml index 801b8ca..8f45545 100644 --- a/charts/ledger/templates/statefulset.yaml +++ b/charts/ledger/templates/statefulset.yaml @@ -30,6 +30,10 @@ spec: - -R - "777" - /data + {{- with .Values.resources }} + resources: + {{- toYaml . | nindent 10 }} + {{- end }} volumeMounts: - name: "{{ template "ledger.fullname" . }}-data" mountPath: /data @@ -49,6 +53,10 @@ spec: - name: http containerPort: 8080 protocol: TCP + {{- with .Values.resources }} + resources: + {{- toYaml . | nindent 10 }} + {{- end }} volumeMounts: - name: {{ include "ledger.fullname" . }}-data mountPath: /data