feat: namespace reflection #549
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. |
Beta Was this translation helpful? Give feedback.
-
Automatically marked as stale due to no recent activity. It will be closed if no further activity occurs. Thank you for your contributions. |
Beta Was this translation helpful? Give feedback.
-
After downgrading to 9.0.311, it works as expected. |
Beta Was this translation helpful? Give feedback.
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-reflector
reflects 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-allowed
label 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-names
annotation from the namespace.This approach allows targeted control without having to touch each source object individually.
🔄 Alternatives Considered
reflection-allowed
labels → 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-config
fromsource-namespace
are reflected to allowed target namespaces.reflection-allowed
labels on those objects.Beta Was this translation helpful? Give feedback.
All reactions