Skip to content

Commit 5c03e22

Browse files
committed
chore(charts): change resources format
1 parent 1e072ac commit 5c03e22

2 files changed

Lines changed: 10 additions & 11 deletions

File tree

charts/grafana/templates/grafana-deployment.yaml

Lines changed: 3 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -37,16 +37,10 @@ spec:
3737
command: {{- include "common.tplvalues.render" (dict "value" .Values.diagnosticMode.command "context" $) | nindent 10 }}
3838
args: {{- include "common.tplvalues.render" (dict "value" .Values.diagnosticMode.args "context" $) | nindent 10 }}
3939
{{- end }}
40-
{{- if or (.Values.limitsCpu) (.Values.limitsMemory)}}
40+
{{- with index .Values "resources" }}
4141
resources:
42-
limits:
43-
{{- if (.Values.limitsCpu) }}
44-
cpu: {{.Values.limitsCpu}}
45-
{{- end}}
46-
{{- if (.Values.limitsMemory) }}
47-
memory: {{.Values.limitsMemory}}
48-
{{- end}}
49-
{{- end}}
42+
{{- toYaml . | nindent 10 }}
43+
{{- end }}
5044
ports:
5145
- containerPort: 3000
5246
name: grafana

charts/grafana/values.yaml

Lines changed: 7 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -18,8 +18,13 @@ diagnosticMode:
1818
args:
1919
- infinity
2020

21-
# limitsCpu: "100m"
22-
# limitsMemory: "50Mi"
21+
resources: {}
22+
# limits:
23+
# cpu: 200m
24+
# memory: 50Mi
25+
# requests:
26+
# cpu: 100m
27+
# memory: 30Mi
2328

2429
nodeAffinityPreset:
2530
key: "drycc.cc/node"

0 commit comments

Comments
 (0)