From 280595f916cb3fb2486e699b10b733501da296ac Mon Sep 17 00:00:00 2001 From: Miles-Garnsey Date: Fri, 12 Jan 2024 15:01:05 +1100 Subject: [PATCH] Finally found it. FFS. --- controllers/k8ssandra/reaper.go | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/controllers/k8ssandra/reaper.go b/controllers/k8ssandra/reaper.go index bd6196eef..b83939a01 100644 --- a/controllers/k8ssandra/reaper.go +++ b/controllers/k8ssandra/reaper.go @@ -106,7 +106,8 @@ func (r *K8ssandraClusterReconciler) reconcileReaper( logger.Info("Reaper present for DC " + actualDc.DatacenterName()) desiredReaper, err := reaper.NewReaper(reaperKey, kc, actualDc, reaperTemplate, logger) - if kc.Spec.Reaper.UiUserSecretRef == nil { + + if kc.Spec.Reaper.UiUserSecretRef == nil && kc.Spec.IsAuthEnabled() { desiredReaper.Spec.UiUserSecretRef = &corev1.LocalObjectReference{Name: reaper.DefaultUiSecretName(kc.SanitizedName())} }