Skip to content

Commit

Permalink
Add memory limits and quote namespace regex
Browse files Browse the repository at this point in the history
  • Loading branch information
arstanaly committed Jun 3, 2021
1 parent d803f1f commit 1a27753
Show file tree
Hide file tree
Showing 2 changed files with 13 additions and 1 deletion.
4 changes: 3 additions & 1 deletion deploy/charts/reporter/templates/cronjob.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -26,5 +26,7 @@ spec:
command:
- /bin/sh
- -c
- reporter report env k8s {{ required ".Values.reporterConfig.merkelyEnvironmentName is required" .Values.reporterConfig.merkelyEnvironmentName }} --namespace {{ .Values.reporterConfig.namespaces }} --owner {{ required ".Values.reporterConfig.merkelyOwner is required" .Values.reporterConfig.merkelyOwner }} {{ if .Values.reporterConfig.dryRun }}--dry-run{{ end }}
- reporter report env k8s {{ required ".Values.reporterConfig.merkelyEnvironmentName is required" .Values.reporterConfig.merkelyEnvironmentName }} --namespace {{ .Values.reporterConfig.namespaces | quote }} --owner {{ required ".Values.reporterConfig.merkelyOwner is required" .Values.reporterConfig.merkelyOwner }} {{ if .Values.reporterConfig.dryRun }}--dry-run{{ end }}
resources:
{{ toYaml .Values.resources | indent 14 }}
restartPolicy: OnFailure
10 changes: 10 additions & 0 deletions deploy/charts/reporter/values.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -47,3 +47,13 @@ reporterConfig:

# -- any custom annotations to be added to the cronjob
podAnnotations: {}

resources:
requests:
# -- the memory request
memory: "64Mi"
limits:
# -- the memory limit
memory: "256Mi"
# -- the cpu limit
cpu: "100m"

0 comments on commit 1a27753

Please sign in to comment.