Skip to content

Commit cc0cc18

Browse files
committed
fix: allow requests and limits to be configurable
1 parent 0e4f30a commit cc0cc18

File tree

1 file changed

+6
-4
lines changed

1 file changed

+6
-4
lines changed

snyk-monitor/templates/deployment.yaml

Lines changed: 6 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -127,12 +127,14 @@ spec:
127127
{{- toYaml . | trim | nindent 10 -}}
128128
{{- end }}
129129
resources:
130+
{{- with .Values.requests }}
130131
requests:
131-
cpu: {{ .Values.requests.cpu }}
132-
memory: {{ .Values.requests.memory }}
132+
{{- toYaml . | nindent 14 }}
133+
{{- end }}
134+
{{- with .Values.limits }}
133135
limits:
134-
cpu: {{ .Values.limits.cpu }}
135-
memory: {{ .Values.limits.memory }}
136+
{{- toYaml . | nindent 14 }}
137+
{{- end }}
136138
livenessProbe:
137139
exec:
138140
command:

0 commit comments

Comments
 (0)