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

capg: enable compute api for CAPG to build the node images #2025

Merged
merged 1 commit into from
May 19, 2021
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Original file line number Diff line number Diff line change
Expand Up @@ -63,3 +63,11 @@ metadata:
iam.gke.io/gcp-service-account: k8s-infra-gcr-promoter@k8s-artifacts-prod-bak.iam.gserviceaccount.com
name: k8s-infra-gcr-promoter-bak
namespace: test-pods
---
kind: ServiceAccount
apiVersion: v1
metadata:
annotations:
iam.gke.io/gcp-service-account: gcb-builder-cluster-api-gcp@k8s-staging-cluster-api-gcp.iam.gserviceaccount.com
name: gcb-builder-cluster-api-gcp
namespace: test-pods
10 changes: 10 additions & 0 deletions infra/gcp/ensure-staging-storage.sh
Original file line number Diff line number Diff line change
Expand Up @@ -311,3 +311,13 @@ color 6 "Configuring special case for k8s-staging-releng-test"
(
ensure_staging_gcb_builder_service_account "releng-test" "k8s-infra-prow-build"
)

# Special case: In order to build the node images using image-builder it needs
# the compute api to be enabled because it will create a VM
# to build the node image.
color 6 "Configuring special case for k8s-staging-cluster-api-gcp"
(
readonly STAGING_PROJECT="k8s-staging-cluster-api-gcp"
enable_api "${STAGING_PROJECT}" compute.googleapis.com
cpanato marked this conversation as resolved.
Show resolved Hide resolved
ensure_staging_gcb_builder_service_account "cluster-api-gcp" "k8s-infra-prow-build-trusted"
)