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

deps: update Nomad jobspec dep to 1.0.0 #370

Merged
merged 4 commits into from
Oct 30, 2020
Merged

deps: update Nomad jobspec dep to 1.0.0 #370

merged 4 commits into from
Oct 30, 2020

Conversation

jrasell
Copy link
Member

@jrasell jrasell commented Oct 29, 2020

This change updates the internal jobspec parsing to reflect Nomad 1.0.0 and includes updates to the Nomad API and Consul API packages.

@jrasell jrasell requested review from lgfa29 and cgbaker October 29, 2020 08:32
@jrasell jrasell self-assigned this Oct 29, 2020
Copy link
Contributor

@cgbaker cgbaker left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

lgtm

in case you didn't notice, we updated the TF provider to pull the jobspec in. it required a little bit of dependency-wrangling on our part because of some TF stuff, not sure what the impact would be in levant:
hashicorp/terraform-provider-nomad#161

Copy link
Contributor

@lgfa29 lgfa29 left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

What @cgbaker said 😄

@jrasell
Copy link
Member Author

jrasell commented Oct 30, 2020

@cgbaker and @lgfa29 Levant suffers compared to the provider as it passes around the API job object and the import is screwed up by the API replace line within Nomad's go.mod along with the API being its own module and so within the vendor directory:

Cannot use 'jobspec.Parse(tpl)' (type (*"github.com/hashicorp/nomad/vendor/github.com/hashicorp/nomad/api".Job, error)) as type *"github.com/hashicorp/nomad/api".Job

@jrasell jrasell requested review from lgfa29 and cgbaker October 30, 2020 15:08
Copy link
Contributor

@cgbaker cgbaker left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

sweet. this should make these a lot easier going forward, including potentially being automatable.

@jrasell jrasell merged commit 2c1d8ed into master Oct 30, 2020
@jrasell jrasell deleted the f-dep-nomad-1.0.0 branch October 30, 2020 16:12
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