From 9be62fd3b861563a57670da3fb21f537bbf147aa Mon Sep 17 00:00:00 2001 From: Mathias Merscher Date: Thu, 6 Jun 2019 11:40:11 +0200 Subject: [PATCH] [stable/velero] Make Restic resource requests and limits configurable (#14404) * [stable/velero] make restic daemonset resource optionally configurable Signed-off-by: Mathias Merscher * update README Signed-off-by: Mathias Merscher * [stable/velero] bump Chart version Signed-off-by: Mathias Merscher --- stable/velero/Chart.yaml | 2 +- stable/velero/README.md | 1 + stable/velero/templates/restic-daemonset.yaml | 2 +- stable/velero/values.yaml | 2 ++ 4 files changed, 5 insertions(+), 2 deletions(-) diff --git a/stable/velero/Chart.yaml b/stable/velero/Chart.yaml index b762509b87..ac95ea61cb 100644 --- a/stable/velero/Chart.yaml +++ b/stable/velero/Chart.yaml @@ -2,7 +2,7 @@ apiVersion: v1 appVersion: 1.0.0 description: A Helm chart for velero name: velero -version: 2.0.6 +version: 2.0.7 home: https://github.com/heptio/velero icon: https://cdn-images-1.medium.com/max/1600/1*-9mb3AKnKdcL_QD3CMnthQ.png sources: diff --git a/stable/velero/README.md b/stable/velero/README.md index 5cf0323e3d..ff8763dc38 100644 --- a/stable/velero/README.md +++ b/stable/velero/README.md @@ -93,6 +93,7 @@ Parameter | Description | Default `schedules` | A dict of schedules | `{}` `restic.podVolumePath` | Location of pod volumes on the host | `/var/lib/kubelet/pods` `restic.privileged` | Whether restic should run as a privileged pod. Only necessary in special cases (SELinux) | `false` +`restic.resources` | Restic DaemonSet resource requests and limits | `{}` ## How to ``` diff --git a/stable/velero/templates/restic-daemonset.yaml b/stable/velero/templates/restic-daemonset.yaml index 67249e8183..c7266e86d8 100644 --- a/stable/velero/templates/restic-daemonset.yaml +++ b/stable/velero/templates/restic-daemonset.yaml @@ -91,7 +91,7 @@ spec: {{- end }} securityContext: privileged: {{ .Values.restic.privileged }} - {{- with .Values.resources }} + {{- with .Values.restic.resources }} resources: {{- toYaml . | nindent 12 }} {{- end }} diff --git a/stable/velero/values.yaml b/stable/velero/values.yaml index 864a9309f4..1807f5eb81 100644 --- a/stable/velero/values.yaml +++ b/stable/velero/values.yaml @@ -155,6 +155,8 @@ deployRestic: false restic: podVolumePath: /var/lib/kubelet/pods privileged: false + # Resource requests/limits to specify for the Restic daemonset deployment. Optional. + resources: {} # Backup schedules to create. # Eg: