feat: return cluster error messages on wait handler #3587
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 change aligns with the corresponding Terraform PR stackitcloud/terraform-provider-stackit#1010. It updates the
CreateOrUpdateClusterWaitHandler
in the ske/wait package to exit early when the cluster reports structured errors and is in a failure state. This prevents cluster creation or update operations from remaining stuck in an error state for up to 45 minutes until the Terraform provider times out.The related Terraform logic is in the PR linked above. Before merging this PR, someone should also review the Terraform changes. Test SKE configurations are attached for verification.
Result warning trying to create a ske cluster using terraform with a non existent flavor for machines

Checklist
make fmt
examples/
directory)make test
(will be checked by CI)make lint
(will be checked by CI)