kafka-operator icon indicating copy to clipboard operation
kafka-operator copied to clipboard

Limiting operation to a single namespace

Open ankon opened this issue 7 years ago • 2 comments

https://github.com/krallistic/kafka-operator/blob/master/controller/crd.go#L97 specifically checks all namespaces for CRD instances. In my case I rather have the operator only look-at/touch a single namespace.

ankon avatar Oct 26 '17 11:10 ankon

Do you have Problems with the Operator listening to all Namespace or/and with the global creation of a CRD?

For the CustomResource Objects: Would a flag --namespace=$NS which makes the Operator only listen to that specific namespace. I will change that quickly.

For the CustomResourceDefinition: I am not sure if it possible to create CRD (the definitions, not the objects in a specific NS)

krallistic avatar Oct 26 '17 15:10 krallistic

The problem is with the operator itself. I'm using namespaces to isolate development environments against each other, and each of these environments can potentially run a different operator (or none at all).

For the CustomResource Objects: Would a flag --namespace=$NS which makes the Operator only listen to that specific namespace. I will change that quickly.

Yes, that would solve the problem! Thanks!

ankon avatar Oct 26 '17 16:10 ankon