GoogleCloudPlatform / gke-enterprise-mt

This repository hosts the terraform module that helps setup a GKE cluster and environment based on the Enterprise Multi-Tenancy Best Practices Guide.
https://cloud.google.com/kubernetes-engine/docs/best-practices/enterprise-multitenancy
Apache License 2.0
26 stars 12 forks source link

gsuite domains make testing hard #18

Open mattcary opened 4 years ago

mattcary commented 4 years ago

The recent PR #17 improved matters by adding gsuite group resources, but I think that will hork up testing. Certainly it requires manual deletion of groups between test runs which is annoying.

Perhaps the gsuite provider could be extended to ignore duplicate group creation?

Possibly the test fixture could rely on fixed groups. But then the examples won't be tested which would be unfortunate (see #14).

mattcary commented 4 years ago

TIL about terraform import. This works with gsuite groups and should work to pull in any existing ones.