-
Notifications
You must be signed in to change notification settings - Fork 2
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
Upgrade terraform provider nomad to v2.0.0 #113
Conversation
Does the PR have any schema changes?Does the PR have any schema changes?Found 1 breaking change: Resources
New resources:
New functions:
Maintainer note: consult the runbook for dealing with any breaking changes. |
82fdc23
to
8b1aa55
Compare
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
LGTM from a dependency perspective.
Note that there are dependencies on both of these:
- github.com/hashicorp/nomad v1.6.0
- github.com/hashicorp/vault v0.10.4
These have both moved to BSL in master, but I reconfirmed that the versions in use here are pre-BSL.
Note that we will need to remove these dependencies before we can update much further than this. We did that successfully for Pulumi-vault which I believe can apply here as well. I don’t recall what will be necessary on the nomad dependency.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Looks good to me. LGTM
contract.AssertNoErrorf(err, "failed to compute token mappings") | ||
err = x.AutoAliasing(&prov, prov.GetMetadata()) | ||
prov.MustComputeTokens(tfbridgetokens.SingleModule("nomad_", mainMod, tfbridgetokens.MakeStandard(mainPkg))) | ||
err := prov.ApplyAutoAliases() |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
There is a Must*
variant of ApplyAutoAliases
. If we are just going to a assert no error, we can just use that.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Thanks for the tip. I'm going to punt this to a fixup so I don't have to do the git tag shenanigans for the major version bump again.
Major version was bumped in pulumi/pulumi-nomad#113. This brings the ci-mgmt files in line with the new version.
Fixes #105
This is my first major version update and first update from sdk v1 to sdk v2 so please review with care!
I followed the steps in:
https://github.com/pulumi/platform-providers-team/blob/main/playbooks/tf-provider-major-version-update.md
and also these additional steps to upgrade the shim from sdk-v1 to sdk-v2:
NewProvider
method from the tfshim/sdk-v2 to build the provider