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

improvement: improvements to validate command #5809

Merged
merged 1 commit into from Mar 6, 2024

Conversation

thsig
Copy link
Collaborator

@thsig thsig commented Mar 5, 2024

What this PR does / why we need it:

Before this commit, the garden validate command would fully resolve the config graph. This caused problems for users that had references to runtime outputs of actions in their action configs, since fully resolving the graph in such cases means executing the action (e.g. actually building/deploying).

Here, we change the default behavior of the validate command to only partially resolve the config graph, but also introduce a --resolve CLI option for resolving some or all actions fully. This allows users to fully resolve action configs for debugging purposes, but also to sidestep action configs with runtime output references.

Which issue(s) this PR fixes:

Fixes #5695.

Before this commit, the `garden validate` command would fully resolve
the config graph. This caused problems for users that had references to
runtime outputs of actions in their action configs, since fully
resolving the graph in such cases means executing the action (e.g.
actually building/deploying).

Here, we change the default behavior of the validate command to only
partially resolve the config graph, but also introduce a `--resolve` CLI
option for resolving some or all actions fully. This allows users to
fully resolve action configs for debugging purposes, but also to
sidestep action configs with runtime output references.
@thsig thsig requested a review from vvagaytsev March 5, 2024 13:42
Copy link
Collaborator

@vvagaytsev vvagaytsev left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Thanks! 💯
I've left a minor non-blocking comment. Otherwise looks great!

@thsig thsig added this pull request to the merge queue Mar 6, 2024
Merged via the queue into main with commit 010730c Mar 6, 2024
41 checks passed
@thsig thsig deleted the validate-cmd-no-executed-deps branch March 6, 2024 11:17
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.

0.13: [Bug]: Garden validate fails upon checking templated variables with terraform plugin
2 participants