mongodb / mongodb-atlas-kubernetes

MongoDB Atlas Kubernetes Operator - Manage your MongoDB Atlas clusters from Kubernetes
http://www.mongodb.com/cloud/atlas
Apache License 2.0
151 stars 78 forks source link

Allow to granularly disable reconcilers by configuration env vars #271

Closed denist-huma closed 2 years ago

denist-huma commented 3 years ago

story

As a devops, I want Atlas Kubernetes Operator to manage users in the existing project I want to disable project and cluster reconcilers, So that atlas-kubernetes operator would not be able to mess with my existing project and clusters.

Implementation

It will fix the first part of #265

This feature in action

$ kubectl logs -n atlas-operator deployment/mongodb-atlas-operator manager -f
2021-07-07T16:05:59.295Z        INFO    The AtlasClusterReconciler is disabled by the DISABLE_ATLAS_CLUSTER_RECONCILER configuration flag
2021-07-07T16:05:59.295Z        INFO    The AtlasProjectReconciler is disabled by the DISABLE_ATLAS_PROJECT_RECONCILER configuration flag
2021-07-07T16:05:59.295Z        INFO    MongoDB Atlas Operator version 0.5.1
igor-karpukhin commented 2 years ago

Resolved by https://github.com/mongodb/mongodb-atlas-kubernetes/pull/408.