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.
Currently when creating or updating, custom await annotations (including
waitFor
andskipAwait
) will be ignored for resources which have built-in await logic.This corrects the behavior by returning a boolean from
metadata.ReadyCondition
indicating whether the user specified some behavior via an annotation. If that's true then we don't use the built-in logic.We preserve the existing precedence when
PULUMI_K8S_AWAIT_ALL
istrue
. That is, we will continue to use built-in await logic (if the resource has it) by default, even when generic await is enabled.During testing I also realized we have a bug where if a JSONPath is specified pointing to a non-primitive type (like
.metadata
) it will never resolve. I fixed this to match correctly.Refs #3329
Fixes #3345