Skip to content

feat!: fromFieldPath and toFieldPath#84

Closed
tenstad wants to merge 6 commits intocrossplane-contrib:mainfrom
sn-atmos:from-to-fieldpath
Closed

feat!: fromFieldPath and toFieldPath#84
tenstad wants to merge 6 commits intocrossplane-contrib:mainfrom
sn-atmos:from-to-fieldpath

Conversation

@tenstad
Copy link

@tenstad tenstad commented Feb 12, 2026

Description of your changes

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

Enables fromFieldPath and reworks into to be toFieldPath, supporting e.g. the following:

        extraResources:
          - kind: Namespace
            apiVersion: v1
            fromFieldPath: metadata.name # only extract metadata.name
            toFieldPath: resources.namespaces # now supports nested structures
            type: Selector
            selector:
              matchLabels:
                - key: foo
                  type: Value
                  value: bar

which would put the following into context:

resources:
  namespaces:
    - kube-system
    - crossplane-system

See commit log for step by step implementation process.

Note: required for #85

I have:

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

Signed-off-by: Amund Tenstad <github@amund.io>
… within context

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 after #85 (comment). Not desired to break the api to support this.

@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.

1 participant