{{- $v := .Values -}}
{{ include "marlinos-rsyslog.fullname" . }} runs {{ $v.replicaCount }} rsyslog replica(s) as a {{ if $v.persistence.enabled }}StatefulSet{{ else }}Deployment{{ end }}.

{{- if or $v.syslog.enabled $v.syslog.tls.enabled }}

Syslog Service {{ include "marlinos-rsyslog.fullname" . }} ({{ $v.service.type }}):
{{- if $v.syslog.enabled }}
  {{ $v.syslog.port }}/tcp{{ if $v.syslog.udp }} and {{ $v.syslog.port }}/udp{{ end }}, plain
{{- end }}
{{- if $v.syslog.tls.enabled }}
  {{ $v.syslog.tls.port }}/tcp, TLS ({{ $v.syslog.tls.authMode }})
{{- end }}
{{- if and (ne $v.service.type "ClusterIP") (ne $v.service.externalTrafficPolicy "Local") }}
  externalTrafficPolicy is not Local: events from outside the cluster carry a node address as the sender.
{{- end }}
{{- end }}

{{- if $v.feed.enabled }}

Feed: {{ $v.feed.url }} every {{ $v.feed.interval }}s. Watch the feed-sync container log for "updated" and "sent SIGHUP".
{{- end }}

{{- if not (or $v.elasticsearch.enabled $v.stdout.enabled $v.extraConfig) }}

No output is configured: events are enriched and matched, then dropped. Set elasticsearch.enabled, or add actions in extraConfig.
{{- end }}

{{- if $v.metrics.enabled }}

Metrics: Service {{ include "marlinos-rsyslog.fullname" . }}-metrics, port {{ $v.metrics.port }}, path /metrics. The exporter starts with the first impstats report, {{ $v.metrics.interval }}s after rsyslog.
{{- end }}
