Files
charts/bitnami/logstash/templates/configuration-cm.yaml
Miguel Ruiz e6b093a369 [bitnami/logstash] Add missing namespace metadata (#10135)
* [bitnami/logstash] Add missing namespace metadata

Signed-off-by: Miguel Ruiz <miruiz@vmware.com>

* ServiceMonitor namespace

Signed-off-by: Miguel Ruiz <miruiz@vmware.com>

* CommonAnnotations

Signed-off-by: Miguel Ruiz <miruiz@vmware.com>

* Fix VIB upload image reference

Signed-off-by: Miguel Ruiz <miruiz@vmware.com>

* Replace template with include

Signed-off-by: Miguel Ruiz <miruiz@vmware.com>
2022-05-12 10:46:11 +02:00

40 lines
1.4 KiB
YAML

{{ if and (or .Values.input .Values.filter .Values.output) (not .Values.existingConfiguration) }}
apiVersion: v1
kind: ConfigMap
metadata:
name: {{ include "common.names.fullname" . }}
namespace: {{ include "common.names.namespace" . | quote }}
labels: {{- include "common.labels.standard" . | nindent 4 }}
{{- if .Values.commonLabels }}
{{- include "common.tplvalues.render" ( dict "value" .Values.commonLabels "context" $ ) | nindent 4 }}
{{- end }}
{{- if or .Values.ingress.annotations .Values.commonAnnotations }}
annotations:
{{- if .Values.ingress.annotations }}
{{- include "common.tplvalues.render" ( dict "value" .Values.ingress.annotations "context" $) | nindent 4 }}
{{- end }}
{{- if .Values.commonAnnotations }}
{{- include "common.tplvalues.render" ( dict "value" .Values.commonAnnotations "context" $ ) | nindent 4 }}
{{- end }}
{{- end }}
data:
{{- if (or .Values.input .Values.filter .Values.output) }}
logstash.conf: |-
{{- if .Values.input }}
input {
{{- include "common.tplvalues.render" (dict "value" .Values.input "context" $) | nindent 6 }}
}
{{- end }}
{{- if .Values.filter }}
filter {
{{- include "common.tplvalues.render" (dict "value" .Values.filter "context" $) | nindent 6 }}
}
{{- end }}
{{- if .Values.output }}
output {
{{- include "common.tplvalues.render" (dict "value" .Values.output "context" $) | nindent 6 }}
}
{{- end }}
{{- end }}
{{- end }}