GoogleCloudPlatform / cloud-run-anthos-reference-web-app

An opinionated set of best practices aimed at demonstrating a reference architecture for building a web application on Google Cloud using Cloud Run for Anthos.
https://cloud.google.com/anthos/run
Apache License 2.0
37 stars 22 forks source link

Serialize Config Connector Steps #34

Closed josueetcom closed 4 years ago

josueetcom commented 4 years ago

Running make build-all or make build-infrastructure often results in this output:

Step #5 - "Create Backend Service": Error from server: error when creating "STDIN": admission webhook "deny-unknown-fields.cnrm.cloud.google.com" denied the request: CustomResourceDefinition.apiextensions.k8s.io "computebackendservices.compute.cnrm.cloud.google.com" not found

This happens even after waiting several minutes between make cluster and make build-all/infrastructure.

Waiting for Config Connector pods to be ready doesn't seem to work when added to cloudbuild-provision-cluster.yaml. However, if the Create Backend Service and Infrastructure Resources steps are serialized this issue does not appear.

I've also made some minor touches to cloudbuild.yaml.