feat: namespace reflection #549
kokou-egbewatt
started this conversation in
Ideas
Replies: 3 comments
|
You seem to make a careful distinction between proposed namespace-level annotations and object-level labels, yet there is no behavior based on labels... the docs clearly state that it's only annotations on
However, I think this logic is contrary to the customary logic that lower-level settings override higher-level "global" ones. |
0 replies
|
Automatically marked as stale due to no recent activity. It will be closed if no further activity occurs. Thank you for your contributions. |
0 replies
|
After downgrading to 9.0.311, it works as expected. |
0 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Uh oh!
There was an error while loading. Please reload this page.
Uh oh!
There was an error while loading. Please reload this page.
📌 Request
Currently,
kubernetes-reflectorreflects Secrets and ConfigMaps based on the presence of a specific label on each individual object:While this works for broad or object-specific reflection, it becomes tedious and error-prone when you need to reflect only a small subset of resources from a namespace containing many Secrets/ConfigMaps.
At present, you must edit each object and apply the
reflection-allowedlabel manually.This is:
There’s no straightforward way to declare, at the namespace level, “these are the specific resources from this namespace that should be reflected elsewhere.”
💡 Proposed Solution
Introduce a namespace-level annotation to specify exactly which Secrets/ConfigMaps in that namespace should be reflected to other namespaces.
Example:
Behavior:
reflect-namesannotation from the namespace.This approach allows targeted control without having to touch each source object individually.
🔄 Alternatives Considered
reflection-allowedlabels → Still requires manual edits to each object.📎 Additional Context
This change would:
📄 Example Manifest
Source Namespace with annotation:
Expected behavior:
secret-a,secret-b, andmy-configfromsource-namespaceare reflected to allowed target namespaces.reflection-allowedlabels on those objects.All reactions