Skip to content

Commit

Permalink
clean up extra resource declaration
Browse files Browse the repository at this point in the history
  • Loading branch information
mershad-manesh committed Mar 6, 2024
1 parent 2331a37 commit 4a00320
Showing 1 changed file with 7 additions and 3 deletions.
10 changes: 7 additions & 3 deletions minion/templates/minion-deployment.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -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:
Expand Down Expand Up @@ -99,7 +104,6 @@ spec:
protocol: UDP
name: syslog
{{- end }}
resources: {}
volumeMounts:
- mountPath: /opt/minion/minion-config.yaml
name: minion-settings
Expand Down

0 comments on commit 4a00320

Please sign in to comment.