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 39b041f
Showing 1 changed file with 4 additions and 1 deletion.
5 changes: 4 additions & 1 deletion controllers/k8ssandra/reaper.go
Original file line number Diff line number Diff line change
Expand Up @@ -106,8 +106,11 @@ 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())}
} else {
desiredReaper.Spec.UiUserSecretRef = nil
}

if err != nil {
Expand Down

0 comments on commit 39b041f

Please sign in to comment.