From 4a00320bf203a828d1c0ba1ccfcb4b06cabddeda Mon Sep 17 00:00:00 2001 From: Morteza E <105240903+mershad-manesh@users.noreply.github.com> Date: Wed, 6 Mar 2024 09:06:13 -0500 Subject: [PATCH] clean up extra resource declaration --- minion/templates/minion-deployment.yaml | 10 +++++++--- 1 file changed, 7 insertions(+), 3 deletions(-) diff --git a/minion/templates/minion-deployment.yaml b/minion/templates/minion-deployment.yaml index 0404e5d..252c2ed 100644 --- a/minion/templates/minion-deployment.yaml +++ b/minion/templates/minion-deployment.yaml @@ -61,9 +61,14 @@ spec: value: America/New_York image: {{ $image }} imagePullPolicy: {{ .Values.minion.image.pullPolicy }} - {{- if .Values.minion.resources }} + {{- with .Values.minion.resources }} resources: - {{- toYaml . | nindent 11 }} + limits: + cpu: {{ .limits.cpu }} + memory: {{ .limits.memory }} + requests: + cpu: {{ .requests.cpu }} + memory: {{ .requests.memory }} {{- end }} {{- if eq (include "onOpenShift" .) "true" }} securityContext: @@ -99,7 +104,6 @@ spec: protocol: UDP name: syslog {{- end }} - resources: {} volumeMounts: - mountPath: /opt/minion/minion-config.yaml name: minion-settings