helm-charts icon indicating copy to clipboard operation
helm-charts copied to clipboard

Community operator should support multiple namespaces out of the box

Open gecube opened this issue 1 year ago • 5 comments

Good day!

I installed the operator into namespace mongodb-operator with all the defaults settings. I created ns database where I put the sample mongodb description.

Expected behaviour

The DB is created under custom namespaces with default settings of the operator.

Observed behaviour:

DB is not created at all. If I reinstall operator with operator.watchNamespace: "*" the process starts, but then:

  Normal   SuccessfulCreate  6m26s                 statefulset-controller  create Claim data-volume-call-analytics-mongodb-0 Pod ***-mongodb-0 in StatefulSet call-analytics-mongodb success
  Normal   SuccessfulCreate  6m26s                 statefulset-controller  create Claim logs-volume-call-analytics-mongodb-0 Pod ***-mongodb-0 in StatefulSet call-analytics-mongodb success
  Warning  FailedCreate      58s (x17 over 6m26s)  statefulset-controller  create Pod call-analytics-mongodb-0 in StatefulSet ***-mongodb failed error: pods "call-analytics-mongodb-0" is forbidden: error looking up service account databases/mongodb-database: serviceaccount "mongodb-database" not found

I checked the helm chart and it looks like that SA for DB management should be present in any namespace where mongodb would be created. It would be nice if operator could take the management of this SA (yes, I want it to have a cluster role to be able to manage all NSs).

gecube avatar Nov 13 '24 08:11 gecube

I do agree that it makes little sense to restrict the cluster operator under a single namespace only. This is not how other popular operators, such as https://github.com/zalando/postgres-operator are implemented. Is there a reason, why this design choice was made?

WiZeYAR avatar Nov 27 '24 14:11 WiZeYAR

Same here, this design seems unusual.

antoineozenne avatar Dec 09 '24 15:12 antoineozenne

This issue is being marked stale because it has been open for 60 days with no activity. Please comment if this issue is still affecting you. If there is no change, this issue will be closed in 30 days.

github-actions[bot] avatar Feb 08 '25 01:02 github-actions[bot]

/no-stale please.

antoineozenne avatar Feb 08 '25 10:02 antoineozenne

I also would like ask not to close and make stale.

gecube avatar Feb 09 '25 10:02 gecube

This issue is being marked stale because it has been open for 60 days with no activity. Please comment if this issue is still affecting you. If there is no change, this issue will be closed in 30 days.

github-actions[bot] avatar Apr 11 '25 02:04 github-actions[bot]

.

WiZeYAR avatar Apr 11 '25 05:04 WiZeYAR

This issue is being marked stale because it has been open for 60 days with no activity. Please comment if this issue is still affecting you. If there is no change, this issue will be closed in 30 days.

github-actions[bot] avatar Jun 11 '25 02:06 github-actions[bot]

No stale

antoineozenne avatar Jun 11 '25 05:06 antoineozenne

issue still relevant.

kaajrot avatar Jun 26 '25 14:06 kaajrot

just encountered the same issue, thanks for bringing it up here

nicolas-janzen avatar Jul 04 '25 14:07 nicolas-janzen

confirming, still an issue

franklinkim avatar Aug 28 '25 14:08 franklinkim

Today I stumbled over the same issue.

mladBlum avatar Sep 03 '25 16:09 mladBlum

This issue is being marked stale because it has been open for 60 days with no activity. Please comment if this issue is still affecting you. If there is no change, this issue will be closed in 30 days.

github-actions[bot] avatar Nov 03 '25 02:11 github-actions[bot]

still actual.

gecube avatar Nov 03 '25 09:11 gecube