From 88ecfa4609678199ea1265c1d89c7b17d3b645d7 Mon Sep 17 00:00:00 2001 From: yaraskm <62650344+yaraskm@users.noreply.github.com> Date: Tue, 30 Jul 2024 05:04:24 -0400 Subject: [PATCH] Fix maintenance Job resource requests (#610) - As written, the chart tries to access .configuration.repositoryMaintenanceJob.requests.cpu.cpu and ...memory.memory, which leads to an error if you actually try to set these values. Signed-off-by: Matt Yaraskavitch <62650344+yaraskm@users.noreply.github.com> --- charts/velero/Chart.yaml | 4 ++-- charts/velero/templates/deployment.yaml | 4 ++-- 2 files changed, 4 insertions(+), 4 deletions(-) diff --git a/charts/velero/Chart.yaml b/charts/velero/Chart.yaml index a879d922..c31fd0f0 100644 --- a/charts/velero/Chart.yaml +++ b/charts/velero/Chart.yaml @@ -3,11 +3,11 @@ appVersion: 1.14.0 kubeVersion: ">=1.16.0-0" description: A Helm chart for velero name: velero -version: 7.1.3 +version: 7.1.4 home: https://github.com/vmware-tanzu/velero icon: https://cdn-images-1.medium.com/max/1600/1*-9mb3AKnKdcL_QD3CMnthQ.png sources: -- https://github.com/vmware-tanzu/velero + - https://github.com/vmware-tanzu/velero maintainers: - name: jenting email: hsiaoairplane@gmail.com diff --git a/charts/velero/templates/deployment.yaml b/charts/velero/templates/deployment.yaml index e56cfda3..93f80619 100644 --- a/charts/velero/templates/deployment.yaml +++ b/charts/velero/templates/deployment.yaml @@ -169,10 +169,10 @@ spec: {{- with .repositoryMaintenanceJob }} {{- with .requests }} {{- with .cpu }} - - --maintenance-job-cpu-request={{ .cpu }} + - --maintenance-job-cpu-request={{ . }} {{- end }} {{- with .memory }} - - --maintenance-job-mem-request={{ .memory }} + - --maintenance-job-mem-request={{ . }} {{- end }} {{- end }} {{- with .limits }}