I want to have VPC peering denied over whole organisation. Currently it is implemented with organisation policy constraints/compute.restrictVpcPeering set to deny all.
Unfortunately, as a part of kubernetes cluster creation over shared vpc, there is some peering done to the subnets on google side (according to this). I would like to lose up my constrains, so those could be allowed, but I couldn't find the way to only allow those yet.
Subnets on GCP side has resource path like this:
network projects/gke-prod-europe-west3-XXXX/global/networks/gke-ndaXXXXXYYYYYZZZZ-ZZZZ-YYY-net
where XYZ are random.
At first I wanted to use under: notation to allow all peering with networks in under:projects/gke-prod-europe-west3-* but looks like wildcard is not supported format there.
Is there known organization_id that google k8s resource fall under? Or there is other way that I'm missing?
Original error:
Constraint constraints/compute.restrictVpcPeering violated for project 1234567890. Peering the network projects/gke-prod-europe-west3-XXXX/global/networks/gke-ndaXXXXXYYYYYZZZZ-ZZZZ-YYY-net is not allowed.