Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

update stacks_failing metric to check pulumiv1.Stack instead of pulumiv1alpha1.Stack #308

Merged
merged 2 commits into from
Aug 18, 2022

Conversation

bob-bins
Copy link
Contributor

@bob-bins bob-bins commented Aug 2, 2022

Proposed changes

Update stacks_failing metric to use the current v1 Stack API version instead of the outdated v1alpha1.

From my observations, the pulumi-k8s-operator automatically upgrades new applications of the Stack resources to v1 if they are applied with the older API version, so for new Stacks it should be fine that this PR does not account for the old API version. However, I don't know if the operator converts old Stack 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 and foo.

@github-actions
Copy link

github-actions bot commented Aug 2, 2022

PR is now waiting for a maintainer to run the acceptance tests. This PR will only perform build and linting.
Note for the maintainer: To run the acceptance tests, please comment /run-acceptance-tests on the PR

@github-actions
Copy link

github-actions bot commented Aug 2, 2022

PR is now waiting for a maintainer to run the acceptance tests. This PR will only perform build and linting.
Note for the maintainer: To run the acceptance tests, please comment /run-acceptance-tests on the PR

@bob-bins
Copy link
Contributor Author

bob-bins commented Aug 2, 2022

I realized this is basically a duplicate of #245, but I'm keeping this open since it's a less stale branch

@stack72 stack72 changed the title update stacks_failing metric to check pulumiv1.Stack instead of pulimiv1alpha1.Stack update stacks_failing metric to check pulumiv1.Stack instead of pulumiv1alpha1.Stack Aug 8, 2022
@lblackstone
Copy link
Member

/run-acceptance-tests

@github-actions
Copy link

@lblackstone
Copy link
Member

Thanks for the PR @bob-bins! LGTM, but will defer to @viveklak to approve since I'm not as familiar with this codebase.

@viveklak viveklak merged commit 49abf07 into pulumi:master Aug 18, 2022
@viveklak
Copy link
Contributor

Thanks for the PR @bob-bins !

@bob-bins bob-bins deleted the fix-stacks-failing-metric branch August 19, 2022 01:51
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants