Comments (9)
Then env variables it is. I'll start working on it next week.
from mongodb-kubernetes-operator.
This good point. We will add at cluster-wide watch option
from mongodb-kubernetes-operator.
I am willing to implement such a feature. If it is okay for you?
from mongodb-kubernetes-operator.
Hi @thesayyn, if you want to implement this that would be great. Bear in mind a few of things that would need to be done.
- You would need to sign the CLA
- Provide a mechanism (perhaps an Env variable) to configure the watch namespace.
- You would need to provide a new set of cluster roles for the operator (for now, I think the easiest way to do this is to have 2 directories a
deploy/namespaced
and adeploy/clusterwide
. Even if there's a little duplication I think that's fine for now ) - We would also need to write an E2E test ensuring that the operator is correctly configured to watch resources at a cluster wide level
you can run tests locally with
./scripts/dev/setup_kind_cluster.sh # setup cluster
python ./scripts/dev/e2e.py <test-name> # run the test
Let me know if you would like to do this!
from mongodb-kubernetes-operator.
I'd like to implement it. Also, I think that we should accept cmd options instead of env variables. IMHO env variables aren't as easily discoverable as cmd options.
So instead of passing env variables around, we should accept cmd options since we can validate them and they are easy to track.
What do you think?
from mongodb-kubernetes-operator.
@thesayyn Using cmd options is definitely one of the extensively used patterns we've seen. I think I prefer using envs while we don't have that many configuration options. Interested to hear from @bznein @antonlisovenko @LouisPlisso on this.
from mongodb-kubernetes-operator.
@thesayyn @chatton I also prefer environment variables. They are better integrated with Kubernetes in the sense that they can be set from a ConfigMap or Secret.
from mongodb-kubernetes-operator.
This issue is labeled as stale because it has been open for more than 30 days with no activity. Remove stale label or comment or this will be closed in a few days.
from mongodb-kubernetes-operator.
Marking this issue as closed, as this will be supported with the next release.
from mongodb-kubernetes-operator.
Related Issues (20)
- [HELP] Migrate data from bitnami MongoDB to community MongoDB. HOT 2
- Deploy a sharded cluster HOT 3
- Statefulset: volumeClaimTemplates doesn't match volumeName annotation HOT 2
- Operator fail to install Mongo 7.0.9 HOT 1
- Too many "Connection accepted" and "Connection ended" in the logs HOT 3
- mongo not working with external access HOT 2
- MongoDB Failed Status HOT 4
- Scaling beyond 7 replicas causes failure in MongoDB Kubernetes Cluster with Mongo Community Operator HOT 2
- failed to create containerd task: failed to create shim HOT 2
- Publish the MongoDB community operator under OperatorHub HOT 2
- node had volume node affinity conflict HOT 2
- Arguments order for AutomationAgentCommand is incorrect HOT 2
- agent image referenced by 0.10.0 release not available on quay.io HOT 1
- Can't create a connection string secret in a different namespace HOT 4
- Broken link in `latest` release notes HOT 2
- quay.io/mongodb/mongodb-agent-ubi:107.0.1.8507-1 has wrong architecture of binaries HOT 3
- operator CrashLoopBackOff, no logs, is my k8s version is too high? HOT 2
- memberConfig not applying priority/tags/votes changes as expected HOT 1
- Operator falsely errors and does not let to upgrade MongoDB cluster replicas HOT 9
- MongoDBCommunity not using the `replicaSetHorizons` values to generate `Mongo Uri` resulting in `MongoNetworkError` HOT 1
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from mongodb-kubernetes-operator.