Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Add a helper function to access composition environment variables #23

Open
ezgidemirel opened this issue Nov 13, 2023 · 0 comments · May be fixed by #116
Open

Add a helper function to access composition environment variables #23

ezgidemirel opened this issue Nov 13, 2023 · 0 comments · May be fixed by #116
Labels
enhancement New feature or request good first issue Good for newcomers

Comments

@ezgidemirel
Copy link
Collaborator

What problem are you facing?

Currently, we can access composition environment variables like:

env: {{ (index .context "apiextensions.crossplane.io/environment").key1 }} 

However, this is too verbose and can be simplified with a helper function.

How could this Function help solve your problem?

To make it easier to access composition environment variables, we can have a helper function called getCompositionEnvVar. The interface might be like:

env: {{ getCompositionEnvVar . "key1" }}
@ezgidemirel ezgidemirel added the enhancement New feature or request label Nov 13, 2023
@ezgidemirel ezgidemirel changed the title Add a helper functions to access composition environment variables Add a helper function to access composition environment variables Nov 13, 2023
@jbw976 jbw976 added the good first issue Good for newcomers label Apr 26, 2024
@twobiers twobiers linked a pull request Aug 29, 2024 that will close this issue
2 tasks
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request good first issue Good for newcomers
Projects
None yet
Development

Successfully merging a pull request may close this issue.

2 participants