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

Backport of Feature: add filebase64 function into release/1.3.x #13248

Conversation

hc-github-team-nomad-core
Copy link
Contributor

Backport

This PR is auto-generated from #11791 to be assessed for backporting due to the inclusion of the label backport/1.3.x.

The below text is copied from the body of the original PR.


Signed-off-by: Conor Evans coevans@tcd.ie

Closes #11522

As noted in that issue, Terraform implements this function. About a month ago, the MakeFileFunc in Terraform deviated from hashicorp/go-cty-funcs which Nomad is using and which this PR continues to use. If the code change in Terraform is relevant here, perhaps it should be copied over to hashicorp/go-cty-funcs, but I'll leave that in your hands.

I copied the Doc largely from Terraform, removing some of the content that was Terraform-focused. If it needs to be updated, let me know or make the changes yourself as you see fit. Docs are pretty tricky to get right and you maintainers will know much better than me how you'd like to phrase it.

I didn't add a test here, mostly because there is no existing functions_test file with a Test Table I could easily plug in to, and the Terraform test didn't transfer over. Unfortunately there's also no test in hashicorp/go-cty-funcs. If you want to add one, please do so as you see fit.

@hc-github-team-nomad-core hc-github-team-nomad-core force-pushed the backport/conorevans/11522-add-filebase-function/trivially-learning-pony branch from 22ed2e7 to 94e50d0 Compare June 6, 2022 15:58
@hc-github-team-nomad-core hc-github-team-nomad-core merged commit 87e6449 into release/1.3.x Jun 6, 2022
@hc-github-team-nomad-core hc-github-team-nomad-core deleted the backport/conorevans/11522-add-filebase-function/trivially-learning-pony branch June 6, 2022 15:58
@github-actions
Copy link

github-actions bot commented Oct 8, 2022

I'm going to lock this pull request because it has been closed for 120 days ⏳. This helps our maintainers find and focus on the active contributions.
If you have found a problem that seems related to this change, please open a new issue and complete the issue template so we can capture all the details necessary to investigate further.

@github-actions github-actions bot locked as resolved and limited conversation to collaborators Oct 8, 2022
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

2 participants