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

feat: Include autoattach contexts when listing stack env #274

Merged
merged 1 commit into from
Nov 27, 2024

Conversation

tomasmik
Copy link
Contributor

@tomasmik tomasmik commented Nov 27, 2024

This is a bit confusing now, but I think this is the easiest way to not accidentally duplicate the information returned.

Name                            | Type                 | Value      | Context | IsAutoattached
SPACELIFT_API_TOKEN             | ENVIRONMENT_VARIABLE | <computed> |         |
SPACELIFT_OIDC_TOKEN            | ENVIRONMENT_VARIABLE | <computed> |         |
TF_VAR_spacelift_account_name   | ENVIRONMENT_VARIABLE | <computed> |         |
...
bbbb                            | ENVIRONMENT_VARIABLE | bbb        | aaa     | false
vvv                             | ENVIRONMENT_VARIABLE | aaa        |         |
aaa                             | ENVIRONMENT_VARIABLE | aaa        | asdf111 | true

This is a result for a stack that has a context bbbb attached, aaa auto-attached and vvv set as a normal variable.

@tomasmik tomasmik self-assigned this Nov 27, 2024
@tomasmik tomasmik requested a review from mbialon November 27, 2024 13:43
internal/cmd/stack/environment.go Show resolved Hide resolved
@spr-mweber3
Copy link

Fixes #271 ...

Thanks for that!

@tomasmik tomasmik merged commit bf1b210 into main Nov 27, 2024
9 checks passed
@tomasmik tomasmik deleted the include-autoattached-contexts branch November 27, 2024 13:58
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.

3 participants