[bitnami/fluentd] feat: 🔒 Add resource preset support (#23450)

Signed-off-by: Javier Salmeron Garcia <jsalmeron@vmware.com>
This commit is contained in:
Javier J. Salmerón-García
2024-02-20 13:30:05 +01:00
committed by GitHub
parent 018d8abb41
commit 6b4d7c60d4
6 changed files with 317 additions and 313 deletions

View File

@@ -53,3 +53,4 @@ In order to replicate the container startup scripts execute this command:
{{- include "fluentd.validateValues" . }}
{{- include "fluentd.checkRollingTags" . -}}
{{- include "common.warnings.resources" (dict "sections" (list "aggregator" "forwarder") "context" $) }}

View File

@@ -153,6 +153,8 @@ spec:
{{- end }}
{{- if .Values.aggregator.resources }}
resources: {{- toYaml .Values.aggregator.resources | nindent 12 }}
{{- else if ne .Values.aggregator.resourcesPreset "none" }}
resources: {{- include "common.resources.preset" (dict "type" .Values.aggregator.resourcesPreset) | nindent 12 }}
{{- end }}
ports:
{{- if .Values.aggregator.port }}

View File

@@ -151,6 +151,8 @@ spec:
{{- end }}
{{- if .Values.forwarder.resources }}
resources: {{- toYaml .Values.forwarder.resources | nindent 12 }}
{{- else if ne .Values.forwarder.resourcesPreset "none" }}
resources: {{- include "common.resources.preset" (dict "type" .Values.forwarder.resourcesPreset) | nindent 12 }}
{{- end }}
ports:
{{- if .Values.forwarder.containerPorts }}