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

Support HCL2 on nomad Go package #185

Merged
merged 9 commits into from
Jan 13, 2021
Merged

Support HCL2 on nomad Go package #185

merged 9 commits into from
Jan 13, 2021

Conversation

thiagonache
Copy link
Contributor

Fix #179

@hashicorp-cla
Copy link

hashicorp-cla commented Jan 12, 2021

CLA assistant check
All committers have signed the CLA.

@thiagonache thiagonache marked this pull request as draft January 12, 2021 23:15
@thiagonache thiagonache marked this pull request as ready for review January 13, 2021 02:02
@lgfa29
Copy link
Contributor

lgfa29 commented Jan 13, 2021

Thanks so much for the PR @thiagonache!

It's good to see the tests passing now 🙂

Since the HCL2 jobspec parser is still not 100% compatible with the previous one, I think it would be better to have a config flag that could be set to indicate that the HCL2 parser should be used.

Something like this:

resource "nomad_job" "example" {
  jobspec = "..."
  hcl2 = true
}

This config would default to false to maintain backwards compatibility with existing Terraform files.

Let me know of you have any questions.

@thiagonache
Copy link
Contributor Author

@lgfa29 Please, let me know if that's okay.

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.

LGTM 👍

Thank you for the contribution!

@lgfa29 lgfa29 merged commit 916b5bd into hashicorp:master Jan 13, 2021
@thiagonache
Copy link
Contributor Author

just curious, what's the release cadence of the provider?

@lgfa29
Copy link
Contributor

lgfa29 commented Jan 14, 2021

just curious, what's the release cadence of the provider?

We don't have any specific cadence, it's usually driven by demand or if there is any critical bug fix.

Are you waiting on this feature? There are a few other PRs that should be merged soon, so we will probably cut a release in the coming days.

@thiagonache
Copy link
Contributor Author

thiagonache commented Jan 14, 2021 via email

lgfa29 added a commit that referenced this pull request Jan 14, 2021
jrasell added a commit that referenced this pull request Jan 14, 2021
@lgfa29
Copy link
Contributor

lgfa29 commented Jan 19, 2021

FYI @thiagonache,

Turns out that loading local files in HCL2 is a bit tricky, so we changed how the hcl2 parameter is specified in #192.

Since your PR has not been released yet, this change won't be listed as a breaking change in our CHANGELOG, but if you are using a custom build you will need to update your Terraform config files.

@thiagonache
Copy link
Contributor Author

thx for letting me know!!!

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.

missing support for hcl2 jobspec
3 participants