Skip to content

Commit

Permalink
Finally found it. FFS.
Browse files Browse the repository at this point in the history
  • Loading branch information
Miles-Garnsey committed Jan 12, 2024
1 parent d4c039a commit 280595f
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion controllers/k8ssandra/reaper.go
Original file line number Diff line number Diff line change
Expand Up @@ -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())}
}

Expand Down

0 comments on commit 280595f

Please sign in to comment.