capg: enable compute api for CAPG to build the node images#2025
capg: enable compute api for CAPG to build the node images#2025k8s-ci-robot merged 1 commit intokubernetes:mainfrom
Conversation
@cpanato Good question. We use workoadIdentity to ensure the service account used by the job have the right set of permissions. |
|
Ref: #1993 |
thanks @ameukam , do we have any PR as an example of how to set up this? I need to make sure that this job https://github.com/kubernetes/test-infra/pull/22041/files receives the right credential |
spiffxp
left a comment
There was a problem hiding this comment.
This should unblock you. I am still interested in seeing all of this move back into GCB though.
@dims @cpanato have you all looked into https://cloud.google.com/build/docs/building/build-vm-images-with-packer at all? My glance of the CI scripts is that they boil down to packer calls
https://cloud.google.com/build/docs/building/build-vm-images-with-packer#required_iam_permissions is something we would want scripted, just for this project
https://cloud.google.com/build/docs/building/build-vm-images-with-packer#creating_a_packer_builder_image is something we might want to push to k8s-staging-test-infra or something
...a/gcp/clusters/projects/k8s-infra-prow-build/prow-build/resources/build-serviceaccounts.yaml
Outdated
Show resolved
Hide resolved
spiffxp
left a comment
There was a problem hiding this comment.
/hold
Remove when ready to deploy. Or I can do this when at keyboard
|
[APPROVALNOTIFIER] This PR is APPROVED This pull-request has been approved by: cpanato, spiffxp The full list of commands accepted by this bot can be found here. The pull request process is described here DetailsNeeds approval from an approver in each of these files:
Approvers can indicate their approval by writing |
|
/hold cancel |
|
OK, looks like I'll have to PR up a fix to get this working |
|
OK, re-ran with changes from #2057 Should be good to go |
This PR enables the compute API to be used in the
k8s-staging-cluster-api-gcpproject to build the nightly images for CAPGRelated PRs:
Fixes: #1993
Open questions
/assign @dims @ameukam @spiffxp