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.
Proposed changes
Fix a regression where the intermediate status of Job and Pod resources was no longer printed during an update.
The cloud-ready-checks package changed the way that messages are populated in the state checker. Previously, each condition was returned as a StatusMessage when the Update method was called. During the refactor, the Update method was replaced by the ReadyDetails method, which changed the return type. The updated return type includes a Description and an optional message that was only set when a problem was detected. The regression was caused by failing to print the description if the message was empty. Thus, intermediate status was still printed in case of errors, but was erroneously skipped on the happy path.
This change updates the two usages of this library to iterate the result objects and log each result as a status message. This approximates the previous behavior, and fixes the regression. The cloud-ready-checks package was intended to make this process easier, but the current interface still needs some work, since it shouldn't be necessary for clients to understand this nuance between the Description and Message field.
Related issues (optional)
Fix #2298