feat: migrate nutanix linux to HCL - #2139
Conversation
|
[APPROVALNOTIFIER] This PR is NOT APPROVED This pull-request has been approved by: The full list of commands accepted by this bot can be found here. DetailsNeeds approval from an approver in each of these files:Approvers can indicate their approval by writing |
|
Hi @fad3t. Thanks for your PR. I'm waiting for a kubernetes-sigs member to verify that this patch is reasonable to test. If it is, they should reply with Tip We noticed you've done this a few times! Consider joining the org to skip this step and gain Once the patch is verified, the new status will be reflected by the I understand the commands that are listed here. DetailsInstructions for interacting with me using PR comments are available here. If you have questions or suggestions related to my behavior, please file an issue against the kubernetes-sigs/prow repository. |
|
/ok-to-test |
a5ab3ba to
d293c1b
Compare
@tuxtof I don't see why not, it's what Packer has recommended for a while. I don't know that we need to convert everything, but I think it's fine to work in that direction. |
mboersma
left a comment
There was a problem hiding this comment.
Thanks for working on this migration! I noticed two compatibility issues: the Linux build and validation commands no longer load packer/nutanix/nutanix.json, even though that’s the documented configuration path, and nutanix_port / nutanix_insecure no longer honor NUTANIX_PORT / NUTANIX_INSECURE. Could we preserve both behaviors so existing Nutanix build workflows continue to work?
perfect so in this case , let's pursue 👍🏻 |
Thanks for the review! For the Regarding |
|
@fad3t let’s preserve compatibility while keeping the variables strictly typed. Could you fall back to converting Please also restore |
To be sure I fully understood what you mean, you'd like to have something in between (a local) that'd use the typed variable if it is set, and fall back to the string variable (sourced from the env) otherwise? |
d293c1b to
fd29ce2
Compare
Signed-off-by: Frederic Mereu <frederic.mereu@gaming1.com>
fd29ce2 to
da721da
Compare
|
I've updated as per @mboersma feedback - let me know if anything's missing! |
Change description
Migrate the Nutanix Linux Packer JSON template into HCL.
Additional context
Following changes have been applied:
packer.json.tmplfile -- using the standard Packer folder structure (variables, locals, ..)packer.json.tmplfile has been removed.tmplis no longer needed as the bash script writes the password into apkrvarsfile directlywindows/directory containing all the Windows-related HCL files to avoid naming conflicts with Linux variables, but I kept it for later so people can share their opinion/feedback on this.Misc: