Skip to content

Commit

Permalink
fix: make cluster.local domain configurable for fluentbit in syslog-n…
Browse files Browse the repository at this point in the history
…g aggregator mode as well

Signed-off-by: Peter Wilcsinszky <[email protected]>
  • Loading branch information
pepov committed Jul 26, 2023
1 parent a3ae6cb commit c4cb688
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion pkg/resources/fluentbit/configsecret.go
Original file line number Diff line number Diff line change
Expand Up @@ -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"
Expand Down

0 comments on commit c4cb688

Please sign in to comment.