GoogleCloudPlatform / GoogleCloudPlatform/pubsec-declarative-toolkit

hub-env: Add a project level organization policy override for constraints/compute.restrictCloudNATUsage when deploying hub-env

Open
#837 8 comments 0 reactions 2 assignees Claimed by @fmichaelobrien View on GitHub
automation client fortinet
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
Screenshot 2024-02-21 at 16 13 55

project level - example at the client-landing-zone host-project
Screenshot 2024-02-21 at 16 14 34

need the same for hub-env
Screenshot 2024-02-21 at 16 15 06

Contributor guide

Open the contributing guide

Assessment

This issue has not been assessed yet.

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.