From 9331cfe4c1636249bed8a042c7580a353b47a7ed Mon Sep 17 00:00:00 2001 From: The Magician Date: Mon, 29 Aug 2022 09:55:19 -0700 Subject: [PATCH] feat(google_container_cluster): allow enabling cost allocation (#6469) (#12416) Signed-off-by: Modular Magician Signed-off-by: Modular Magician --- .changelog/6469.txt | 3 +++ google/resource_container_cluster.go | 1 + 2 files changed, 4 insertions(+) create mode 100644 .changelog/6469.txt diff --git a/.changelog/6469.txt b/.changelog/6469.txt new file mode 100644 index 00000000000..187a3116ae3 --- /dev/null +++ b/.changelog/6469.txt @@ -0,0 +1,3 @@ +```release-note:enhancement +container: Added general field `enable_cost_allocation` to `google_container_cluster` +``` diff --git a/google/resource_container_cluster.go b/google/resource_container_cluster.go index 9daf3e398b5..a2fbe708c30 100755 --- a/google/resource_container_cluster.go +++ b/google/resource_container_cluster.go @@ -3368,6 +3368,7 @@ func expandDefaultMaxPodsConstraint(v interface{}) *container.MaxPodsConstraint MaxPodsPerNode: int64(v.(int)), } } + func expandResourceUsageExportConfig(configured interface{}) *container.ResourceUsageExportConfig { l := configured.([]interface{}) if len(l) == 0 || l[0] == nil {