Skip to content

Commit

Permalink
Merge pull request #2025 from cpanato/enable-api-capg
Browse files Browse the repository at this point in the history
capg: enable compute api for CAPG to build the node images
  • Loading branch information
k8s-ci-robot authored May 19, 2021
2 parents 731c3de + 123f2d9 commit c514963
Show file tree
Hide file tree
Showing 2 changed files with 18 additions and 0 deletions.
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
ensure_staging_gcb_builder_service_account "cluster-api-gcp" "k8s-infra-prow-build-trusted"
)

0 comments on commit c514963

Please sign in to comment.