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())} }