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

expose advanced packer googlecompute auth options to users #942

Closed

Conversation

itspngu
Copy link
Contributor

@itspngu itspngu commented Jul 30, 2022

What this PR does / why we need it:

Exposes some more of the knobs that come with the googlecompute packer builder.

Which issue(s) this PR fixes (optional, in fixes #(, fixes #<issue_number>, ...) format, will close the issue(s) when PR gets merged): Fixes #941

Additional context
I'd have liked to make some more settings configurable, such as those related to iap and oslogin, but as far as I can tell that's not possible with the JSON format (if it is, please do point me in the right direction so I can add that) and thus blocked-ish by #814

The choice of GOOGLE_IMPERSONATE_SERVICE_ACCOUNT as an environment variable name is in line with what the Terraform does but not a standard for Google tooling (though I wish it was... x)) and can be removed or renamed if needed.

@k8s-ci-robot k8s-ci-robot added the cncf-cla: yes Indicates the PR's author has signed the CNCF CLA. label Jul 30, 2022
@k8s-ci-robot
Copy link
Contributor

Hi @itspngu. 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 /ok-to-test on its own line. Until that is done, I will not automatically test new commits in this PR, but the usual testing commands by org members will still work. Regular contributors should join the org to skip this step.

Once the patch is verified, the new status will be reflected by the ok-to-test label.

I understand the commands that are listed here.

Instructions 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/test-infra repository.

@k8s-ci-robot k8s-ci-robot added needs-ok-to-test Indicates a PR that requires an org member to verify it is safe to test. size/S Denotes a PR that changes 10-29 lines, ignoring generated files. labels Jul 30, 2022
@k8s-ci-robot
Copy link
Contributor

[APPROVALNOTIFIER] This PR is NOT APPROVED

This pull-request has been approved by: itspngu
Once this PR has been reviewed and has the lgtm label, please assign vincepri for approval by writing /assign @vincepri in a comment. For more information see:The Kubernetes Code Review Process.

The full list of commands accepted by this bot can be found here.

Needs approval from an approver in each of these files:

Approvers can indicate their approval by writing /approve in a comment
Approvers can cancel approval by writing /approve cancel in a comment

@itspngu
Copy link
Contributor Author

itspngu commented Jul 31, 2022

I'm starting to think that this PR might not be the way to do it, there's too many loose ends. There were some interesting changes to the googlecompute builder that aren't part of any packer release yet (https://github.com/hashicorp/packer-plugin-googlecompute/releases/tag/v1.0.14), the used version of packer itself is one minor version behind upstream, and the (pending?) migration from JSON to HCL for the configuration files would bring its own benefits. Thoughts?

@k8s-ci-robot k8s-ci-robot added the needs-rebase Indicates a PR cannot be merged because it has merge conflicts with HEAD. label Aug 17, 2022
@k8s-ci-robot
Copy link
Contributor

@itspngu: PR needs rebase.

Instructions 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/test-infra repository.

@kkeshavamurthy
Copy link
Member

@itspngu any updates on this?

Regarding migration from json to hcl, we have a lot of upstream and downstream pipelines tinkering the json files. Even though the process of conversion to HCL is easy, it'll break a lot things. So IMO, it might not be something that'll happen in the short term but we should definitely plan for it.

@k8s-triage-robot
Copy link

The Kubernetes project currently lacks enough contributors to adequately respond to all issues and PRs.

This bot triages issues and PRs according to the following rules:

  • After 90d of inactivity, lifecycle/stale is applied
  • After 30d of inactivity since lifecycle/stale was applied, lifecycle/rotten is applied
  • After 30d of inactivity since lifecycle/rotten was applied, the issue is closed

You can:

  • Mark this issue or PR as fresh with /remove-lifecycle stale
  • Mark this issue or PR as rotten with /lifecycle rotten
  • Close this issue or PR with /close
  • Offer to help out with Issue Triage

Please send feedback to sig-contributor-experience at kubernetes/community.

/lifecycle stale

@k8s-ci-robot k8s-ci-robot added the lifecycle/stale Denotes an issue or PR has remained open with no activity and has become stale. label Nov 21, 2022
@kkeshavamurthy
Copy link
Member

Closing the PR since there has been no activity in 5 months. Please re-open when you work on it.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
cncf-cla: yes Indicates the PR's author has signed the CNCF CLA. lifecycle/stale Denotes an issue or PR has remained open with no activity and has become stale. needs-ok-to-test Indicates a PR that requires an org member to verify it is safe to test. needs-rebase Indicates a PR cannot be merged because it has merge conflicts with HEAD. size/S Denotes a PR that changes 10-29 lines, ignoring generated files.
Projects
None yet
Development

Successfully merging this pull request may close these issues.

GCE: Expose advanced packer googlecompute auth options to users
4 participants