Skip to content
Snippets Groups Projects
Commit 5ccabc6b authored by Nacho Barrientos's avatar Nacho Barrientos
Browse files

Correct fluentbit's extraVolumeMounts' indentation

parent 44506dcc
No related branches found
No related tags found
1 merge request!52Correct fluentbit's extraVolumes' and extraVolumeMounts' indentation
......@@ -44,7 +44,7 @@ spec:
mountPath: /etc/machine-id
readOnly: true
{{- if .Values.logs.fluentbit.extraVolumeMounts }}
{{- toYaml .Values.logs.fluentbit.extraVolumeMounts | nindent 6 }}
{{- toYaml .Values.logs.fluentbit.extraVolumeMounts | nindent 12 }}
{{- end }}
volumes:
- name: config
......
......@@ -40,7 +40,7 @@ spec:
- name: fluentbit
mountPath: /flb-storage/
{{- if .Values.metrics.fluentbit.extraVolumeMounts }}
{{- toYaml .Values.metrics.fluentbit.extraVolumeMounts | nindent 6 }}
{{- toYaml .Values.metrics.fluentbit.extraVolumeMounts | nindent 12 }}
{{- end }}
{{- if or (.Values.metrics.defaultNodeSelector) (.Values.metrics.fluentbit.nodeSelector) }}
nodeSelector:
......
......@@ -36,3 +36,16 @@ tests:
apiVersion: "apps/v1"
name: it-monit-logs-collector-fluentbit
not: true
- it: should deploy extra volume mounts if configured
set:
logs.enabled: true
logs.fluentbit.enabled: true
logs.fluentbit.extraVolumeMounts:
- name: test
mountPath: /test
asserts:
- contains:
path: spec.template.spec.containers[0].volumeMounts
content:
name: test
mountPath: /test
......@@ -27,3 +27,16 @@ tests:
apiVersion: "apps/v1"
name: it-monit-metrics-collector-fluentbit
not: true
- it: should deploy extra volume mounts if configured
set:
metrics.enabled: true
metrics.fluentbit.enabled: true
metrics.fluentbit.extraVolumeMounts:
- name: test
mountPath: /test
asserts:
- contains:
path: spec.template.spec.containers[0].volumeMounts
content:
name: test
mountPath: /test
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment