Skip to content

Commit

Permalink
Fix an error that was hidden in the MedusaConfigurationRef implementa…
Browse files Browse the repository at this point in the history
…tion.
  • Loading branch information
Miles-Garnsey committed Apr 10, 2024
1 parent 08afee3 commit b5db8b2
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion controllers/k8ssandra/medusa_reconciler.go
Original file line number Diff line number Diff line change
Expand Up @@ -39,7 +39,7 @@ func (r *K8ssandraClusterReconciler) reconcileMedusa(
logger logr.Logger,
) result.ReconcileResult {
kc := desiredKc.DeepCopy()
namespace := utils.FirstNonEmptyString(dcConfig.Meta.Namespace, kc.Namespace)
namespace := utils.FirstNonEmptyString(kc.Spec.Medusa.MedusaConfigurationRef.Namespace, kc.Namespace)
logger.Info("Medusa reconcile for " + dcConfig.CassDcName() + " on namespace " + namespace)
if kc.Spec.Medusa != nil {
logger.Info("Medusa is enabled")
Expand Down

0 comments on commit b5db8b2

Please sign in to comment.