Skip to content

Commit e6c5360

Browse files
committed
chore(charts): change resources format
1 parent 16f3514 commit e6c5360

File tree

2 files changed

+11
-11
lines changed

2 files changed

+11
-11
lines changed

charts/fluentbit/templates/logger-fluentbit-daemon.yaml

Lines changed: 3 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -39,16 +39,10 @@ spec:
3939
command: {{- include "common.tplvalues.render" (dict "value" .Values.diagnosticMode.command "context" $) | nindent 10 }}
4040
args: {{- include "common.tplvalues.render" (dict "value" .Values.diagnosticMode.args "context" $) | nindent 10 }}
4141
{{- end }}
42-
{{- if or (.Values.limitsCpu) (.Values.limitsMemory)}}
42+
{{- with index .Values "resources" }}
4343
resources:
44-
limits:
45-
{{- if (.Values.limitsCpu) }}
46-
cpu: {{.Values.limitsCpu}}
47-
{{- end}}
48-
{{- if (.Values.limitsMemory) }}
49-
memory: {{.Values.limitsMemory}}
50-
{{- end}}
51-
{{- end}}
44+
{{- toYaml . | nindent 10 }}
45+
{{- end }}
5246
{{- include "fluentbit.envs" . | indent 8 }}
5347
volumeMounts:
5448
- name: varlog

charts/fluentbit/values.yaml

Lines changed: 8 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -2,8 +2,6 @@ imageOrg: "drycc"
22
imagePullPolicy: "Always"
33
imageTag: "canary"
44
imageRegistry: "registry.drycc.cc"
5-
# limitsCpu: "100m"
6-
# limitsMemory: "50Mi"
75

86
## Enable diagnostic mode
97
##
@@ -20,6 +18,14 @@ diagnosticMode:
2018
args:
2119
- infinity
2220

21+
resources: {}
22+
# limits:
23+
# cpu: 200m
24+
# memory: 50Mi
25+
# requests:
26+
# cpu: 100m
27+
# memory: 30Mi
28+
2329
# Interval to flush output (seconds)
2430
flush: 1
2531

0 commit comments

Comments
 (0)