Skip to content

How can I get values from an Environment Config to a Composition and vice versa? #5436

Answered by tvandinther
tvandinther asked this question in Q&A
Discussion options

You must be logged in to vote

I've determined that it came down my usage of composition functions and using mode: pipeline. I got a working XR by using the environment-config and patch-and-transform functions together. I wrote to status from the environment patches section of patch and transform.

mode: Pipeline
  pipeline:
    - step: environmentConfigs
      functionRef:
        name: crossplane-contrib-function-environment-configs
      input:
        apiVersion: environmentconfigs.fn.crossplane.io/v1beta1
        kind: Input
        spec:
          environmentConfigs:
            - type: Reference
              ref:
                name: cluster-metadata
    - step: patch-and-transform
      functionRef:
        name

Replies: 3 comments 3 replies

Comment options

You must be logged in to vote
0 replies
Comment options

You must be logged in to vote
0 replies
Comment options

You must be logged in to vote
3 replies
@phisco
Comment options

@tvandinther
Comment options

@phisco
Comment options

Answer selected by tvandinther
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
3 participants