From 8cd5e3acd6a700a24428265ddadc254ec2d9d55d Mon Sep 17 00:00:00 2001 From: annawinnick Date: Thu, 23 Jan 2025 15:04:46 -0800 Subject: [PATCH 1/2] Allow custom configuration for validator initcontainer resources --- charts/cloudzero-agent/templates/deploy.yaml | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/charts/cloudzero-agent/templates/deploy.yaml b/charts/cloudzero-agent/templates/deploy.yaml index 688305a0..49df124b 100644 --- a/charts/cloudzero-agent/templates/deploy.yaml +++ b/charts/cloudzero-agent/templates/deploy.yaml @@ -38,6 +38,10 @@ spec: - /bin/sh - -c - cp -r /app /checks/bin/ && cloudzero-agent-validator d pre-start -f /checks/config/validator.yml + {{- with .Values.validator.resources }} + resources: + {{- toYaml . | nindent 12 }} + {{- end }} volumeMounts: {{- if or .Values.existingSecretName .Values.apiKey }} - name: cloudzero-api-key From 7e1db1192f0c27126ac316d1c348807981894a12 Mon Sep 17 00:00:00 2001 From: annawinnick Date: Wed, 29 Jan 2025 15:41:40 -0800 Subject: [PATCH 2/2] fix indentation --- charts/cloudzero-agent/templates/deploy.yaml | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/charts/cloudzero-agent/templates/deploy.yaml b/charts/cloudzero-agent/templates/deploy.yaml index 49df124b..0f3df18b 100644 --- a/charts/cloudzero-agent/templates/deploy.yaml +++ b/charts/cloudzero-agent/templates/deploy.yaml @@ -38,10 +38,10 @@ spec: - /bin/sh - -c - cp -r /app /checks/bin/ && cloudzero-agent-validator d pre-start -f /checks/config/validator.yml - {{- with .Values.validator.resources }} - resources: - {{- toYaml . | nindent 12 }} - {{- end }} + {{- with .Values.validator.resources }} + resources: + {{- toYaml . | nindent 12 }} + {{- end }} volumeMounts: {{- if or .Values.existingSecretName .Values.apiKey }} - name: cloudzero-api-key