File tree Expand file tree Collapse file tree 2 files changed +10
-0
lines changed Expand file tree Collapse file tree 2 files changed +10
-0
lines changed Original file line number Diff line number Diff line change 1
1
variable "cluster_name" {
2
2
type = string
3
3
description = " The name of the cluster and name (or name prefix) for all other infrastructure."
4
+
5
+ validation {
6
+ condition = length (var. cluster_name ) < 23
7
+ error_message = " Cluster name must be less than 23 characters to satisfy google_service_account length restriction."
8
+ }
4
9
}
5
10
6
11
variable "common_labels" {
Original file line number Diff line number Diff line change @@ -11,6 +11,11 @@ variable "region" {
11
11
variable "cluster_name" {
12
12
type = string
13
13
description = " The name of the cluster and name (or name prefix) for all other infrastructure."
14
+
15
+ validation {
16
+ condition = length (var. cluster_name ) < 25
17
+ error_message = " Cluster name must be less than 25 characters to satisfy google_service_account length restriction."
18
+ }
14
19
}
15
20
16
21
variable "common_labels" {
You can’t perform that action at this time.
0 commit comments