From b327e8fee66487d0a98eeb7259ea6ae5e273fce3 Mon Sep 17 00:00:00 2001 From: Andrew Rothstein Date: Wed, 20 Mar 2024 21:06:11 +0000 Subject: [PATCH] resource constraints for "setup" initContainer of nginx deployment closes #962 --- stable/artifactory/templates/nginx-deployment.yaml | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/stable/artifactory/templates/nginx-deployment.yaml b/stable/artifactory/templates/nginx-deployment.yaml index a12c0c030..b4d3dff28 100644 --- a/stable/artifactory/templates/nginx-deployment.yaml +++ b/stable/artifactory/templates/nginx-deployment.yaml @@ -79,6 +79,8 @@ spec: - > rm -rfv {{ .Values.nginx.persistence.mountPath }}/lost+found; mkdir -p {{ .Values.nginx.persistence.mountPath }}/logs; + resources: + {{- toYaml .Values.initContainers.resources | nindent 10 }} volumeMounts: - mountPath: {{ .Values.nginx.persistence.mountPath | quote }} name: nginx-volume @@ -217,4 +219,4 @@ spec: secretName: {{ template "artifactory.fullname" . }}-nginx-certificate {{- end }} {{- end }} -{{- end }} \ No newline at end of file +{{- end }}