From c4cb68897e4b01874a49ae7780a8007c76180b27 Mon Sep 17 00:00:00 2001 From: Peter Wilcsinszky Date: Wed, 26 Jul 2023 23:09:58 +0200 Subject: [PATCH] fix: make cluster.local domain configurable for fluentbit in syslog-ng aggregator mode as well Signed-off-by: Peter Wilcsinszky --- pkg/resources/fluentbit/configsecret.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/pkg/resources/fluentbit/configsecret.go b/pkg/resources/fluentbit/configsecret.go index 97d9237a6e..7a7d58899c 100644 --- a/pkg/resources/fluentbit/configsecret.go +++ b/pkg/resources/fluentbit/configsecret.go @@ -337,7 +337,7 @@ func (r *Reconciler) configSecret() (runtime.Object, reconciler.DesiredState, er if r.Logging.Spec.SyslogNGSpec != nil { input.SyslogNGOutput = &syslogNGOutputConfig{} - input.SyslogNGOutput.Host = fmt.Sprintf("%s.%s.svc.cluster.local", r.Logging.QualifiedName(syslogng.ServiceName), r.Logging.Spec.ControlNamespace) + input.SyslogNGOutput.Host = fmt.Sprintf("%s.%s.svc%s", r.Logging.QualifiedName(syslogng.ServiceName), r.Logging.Spec.ControlNamespace, r.Logging.ClusterDomainAsSuffix()) input.SyslogNGOutput.Port = syslogng.ServicePort input.SyslogNGOutput.JSONDateKey = "ts" input.SyslogNGOutput.JSONDateFormat = "iso8601"