File tree Expand file tree Collapse file tree 3 files changed +18
-0
lines changed
integration/simple_regional/controls Expand file tree Collapse file tree 3 files changed +18
-0
lines changed Original file line number Diff line number Diff line change @@ -35,3 +35,10 @@ variable "zones" {
35
35
variable "compute_engine_service_account" {
36
36
description = " The email address of the service account to associate with the GKE cluster"
37
37
}
38
+
39
+ variable "cluster_resource_labels" {
40
+ type = " map"
41
+ description = " Map containing cluster labels. Maximum of 64 labels"
42
+ default = {}
43
+ }
44
+
Original file line number Diff line number Diff line change @@ -26,4 +26,5 @@ module "example" {
26
26
ip_range_pods = " ${ google_compute_subnetwork . main . secondary_ip_range . 0 . range_name } "
27
27
ip_range_services = " ${ google_compute_subnetwork . main . secondary_ip_range . 1 . range_name } "
28
28
compute_engine_service_account = " ${ var . compute_engine_service_account } "
29
+ cluster_resource_labels = " ${ var . cluster_resource_labels } "
29
30
}
Original file line number Diff line number Diff line change 58
58
} ,
59
59
} )
60
60
end
61
+
62
+ it "has cluster resource labels" do
63
+ expect ( data [ 'resourceLabels' ] ) . to eq ( {
64
+ created -by => "terraform" ,
65
+ } )
66
+ end
61
67
end
62
68
63
69
describe "default node pool" do
138
144
)
139
145
end
140
146
147
+
148
+
149
+
150
+
141
151
it "has the expected network tags" do
142
152
expect ( node_pools ) . to include (
143
153
including (
You can’t perform that action at this time.
0 commit comments