Adding Post Apply Status Constants in Run#2046
Draft
jose-kunnel wants to merge 1 commit intomainfrom
Draft
Conversation
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Description
This PR adds support for new run status values introduced in the TFE API.
Currently, the provider does not recognize the following run statuses:
post_apply_running
post_apply_completed
These statuses are not included in the applyPendingStatuses list within resource_tfe_workspace_run.go, which causes runs with post-apply run tasks to fail. When such a run enters the post_apply_running state, it is treated as an invalid status and results in an error.
Remember to:
Testing plan
Before this change
Creating a run with a post-apply run task would fail when transitioning to post_apply_running, as the provider does not recognize this state.
After this change
Runs with post-apply run tasks are handled correctly, and transitions through post_apply_running and post_apply_completed no longer cause errors.
External links