GoogleCloudPlatform / GoogleCloudPlatform/pubsec-declarative-toolkit
hub-env: Add a project level organization policy override for constraints/compute.restrictCloudNATUsage when deploying hub-env
- Dominant language
- Shell
- Stars
- 36
- Forks
- 26
- PR merge metrics
- No merged PRs in 30d
Description
Likely due to the recent - couple of weeks ago - forced organization policy additions across GCP orgs - investigating/documenting (will need to check all deployed landing zones as this will only occur on redeployment or new GKE config connector object browser applies)
Part of landing zone automation in #766 and the older #446
see PR https://github.com/GoogleCloudPlatform/pubsec-declarative-toolkit/pull/846
Add a project level organization policy override for constraints/compute.restrictCloudNATUsage when deploying hub-env
First time redeploying the projects/hub-env package on top of the full 4 package core-lz, client*3
```
michael@cloudshell:~/kcc-cso/kpt (kcc-cso-4380)$ kpt live status hub-env | grep Failed
inventory-89239324/computerouternat.compute.cnrm.cloud.google.com/networking/hub-nane1-external-nat is Failed: Update call failed: error applying desired state: summary: Error creating RouterNat: googleapi: Error 412: Constraint constraints/compute.restrictCloudNATUsage violated for projects/xxdmu-admin1-hub-cso2. projects/xxdmu-admin1-hub-cso2/regions/northamerica-northeast1/subnetworks/nane1-external-paz-snet is not allowed to use Cloud NAT., conditionNotMet
```
org level
project level - example at the client-landing-zone host-project
need the same for hub-env
Contributor guide
Assessment
This issue has not been assessed yet.