Skip to content

Commit 45b53fb

Browse files
OlivierCazadejotak
andauthored
Update internal/controller/consoleplugin/consoleplugin_reconciler.go
Co-authored-by: Joel Takvorian <joel.takvorian@homeblocks.net>
1 parent ac940f9 commit 45b53fb

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

internal/controller/consoleplugin/consoleplugin_reconciler.go

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -181,8 +181,9 @@ func (r *CPReconciler) reconcilePlugin(ctx context.Context, builder *builder, de
181181
}
182182

183183
func (r *CPReconciler) reconcileConfigMap(ctx context.Context, builder *builder, desired *flowslatest.FlowCollectorSpec) (string, error) {
184-
lokiStack := &lokiv1.LokiStack{}
184+
var lokiStack *lokiv1.LokiStack
185185
if desired.Loki.Mode == flowslatest.LokiModeLokiStack {
186+
lokiStack = &lokiv1.LokiStack{}
186187
ns := desired.Loki.LokiStack.Namespace
187188
if ns == "" {
188189
ns = desired.Namespace

0 commit comments

Comments
 (0)