k8ssandra / k8ssandra-operator

The Kubernetes operator for K8ssandra
https://k8ssandra.io/
Apache License 2.0
174 stars 79 forks source link

Medusa purge cronjobs still aren't created in the right namespace all the time #1356

Open adejanovski opened 5 months ago

adejanovski commented 5 months ago

At the moment the cronjobs will either create MedusaTasks on the dc namespace if it's defined or on the operator namespace if not. There's a third quite common case that is not handled here which is when the K8ssandraCluster object is created in a different namespace than the operator and the dc namespace isn't specified (which will then create them in the K8ssandraCluster namespace).

We need to cover this case as well.

### Definition of Done
- [ ] The K8ssandraCluster object namespace should be used if the dc doesn't have a namespace.

┆Issue is synchronized with this Jira Story by Unito ┆Issue Number: K8OP-14