Skip to content

feat!: ability to select namespace from composite field path#83

Closed
tenstad wants to merge 5 commits intocrossplane-contrib:mainfrom
sn-atmos:ns-value-selector
Closed

feat!: ability to select namespace from composite field path#83
tenstad wants to merge 5 commits intocrossplane-contrib:mainfrom
sn-atmos:ns-value-selector

Conversation

@tenstad
Copy link

@tenstad tenstad commented Feb 12, 2026

Description of your changes

Related to https://crossplane.slack.com/archives/C08BBMDCH7W/p1769948003900819

Reworks the current namespace: string to configure either a Value or to be an extracted value FromCompositeFieldPath.

namespace:
  type: FromCompositeFieldPath
  valueFromFieldPath: metadata.namespace
namespace:
  type: Value
  value: crossplane-system

The selector struct for namespace reuses the selector used for labels values today, making it easy to extend both to e.g. support FromEnvironmentFieldPath in the future.

Could do the same non-breakingly by adding a new namespaceFrom field instead of modifying the existing namespace.

See commit log for step by step implementation process.

Fixes #61

I have:

…SelectorLabelMatcher

Signed-off-by: Amund Tenstad <github@amund.io>
Signed-off-by: Amund Tenstad <github@amund.io>
…t policy

Signed-off-by: Amund Tenstad <github@amund.io>
Signed-off-by: Amund Tenstad <github@amund.io>
Signed-off-by: Amund Tenstad <github@amund.io>
@tenstad
Copy link
Author

tenstad commented Feb 16, 2026

Closing as breaking changes are not desired. Could recreate under a different key if desired.

@tenstad tenstad closed this Feb 16, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Limit resource selection to same namespace as XR

1 participant