@@ -88,7 +88,7 @@ func FindTenants(ctx context.Context, target metav1.LabelSelector, reader client
8888 return tenants , nil
8989}
9090
91- func (r * Reconciler ) configureOutputsForTenants (ctx context.Context , tenants []v1beta1.Tenant , input * fluentBitConfig , fluentdSpec * v1beta1. FluentdSpec , syslogNGSpec * v1beta1. SyslogNGSpec ) error {
91+ func (r * Reconciler ) configureOutputsForTenants (ctx context.Context , tenants []v1beta1.Tenant , input * fluentBitConfig ) error {
9292 var errs error
9393 for _ , t := range tenants {
9494 allNamespaces := len (t .Namespaces ) == 0
@@ -100,7 +100,7 @@ func (r *Reconciler) configureOutputsForTenants(ctx context.Context, tenants []v
100100 if err := r .resourceReconciler .Client .Get (ctx , types.NamespacedName {Name : t .Name }, logging ); err != nil {
101101 return errors .WrapIf (err , "getting logging resource" )
102102 }
103- if fluentdSpec != nil {
103+ if logging . Spec . FluentdSpec != nil {
104104 if input .FluentForwardOutput == nil {
105105 input .FluentForwardOutput = & fluentForwardOutputConfig {}
106106 }
@@ -110,7 +110,7 @@ func (r *Reconciler) configureOutputsForTenants(ctx context.Context, tenants []v
110110 Host : aggregatorEndpoint (logging , fluentd .ServiceName ),
111111 Port : fluentd .ServicePort ,
112112 })
113- } else if syslogNGSpec != nil {
113+ } else if logging . Spec . SyslogNGSpec != nil {
114114 if input .SyslogNGOutput == nil {
115115 input .SyslogNGOutput = newSyslogNGOutputConfig ()
116116 }
0 commit comments