update stacks_failing metric to check pulumiv1.Stack instead of pulumiv1alpha1.Stack #308
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
Update
stacks_failing
metric to use the currentv1
Stack API version instead of the outdatedv1alpha1
.From my observations, the pulumi-k8s-operator automatically upgrades new applications of the
Stack
resources tov1
if they are applied with the older API version, so for newStack
s it should be fine that this PR does not account for the old API version. However, I don't know if the operator converts oldStack
resources to the new version so whether not this is a breaking change is not known to me right now.Related issues (optional)
#307
Additional comments
I tested this locally, but I tested it with a base branch from the 1.7.0 release commit cb9f70c instead of the latest
master
branch because the pulumi-k8s-operator was giving me errors when attempting to checkout the git branch:unable to checkout branch: reference not found
Somehow the change in ef96c6d (specifically the change in pulumi/pulumi#10118) did not work for me for both branch formats:
refs/remotes/origin/foo
andfoo
.