File tree Expand file tree Collapse file tree 1 file changed +8
-0
lines changed
solutions/standard-openshift Expand file tree Collapse file tree 1 file changed +8
-0
lines changed Original file line number Diff line number Diff line change @@ -116,6 +116,10 @@ variable "cluster_master_node_config" {
116116 condition = var. cluster_master_node_config . memory >= 2 && var. cluster_master_node_config . memory <= 64
117117 error_message = " Memory needs to be at least 2 and at most 64."
118118 }
119+ validation {
120+ condition = var. cluster_master_node_config . replicas == 1 || var. cluster_master_node_config . replicas == 3
121+ error_message = " The number of master nodes needs to be 3 or 1 for single-node openshift."
122+ }
119123}
120124
121125variable "cluster_worker_node_config" {
@@ -146,6 +150,10 @@ variable "cluster_worker_node_config" {
146150 condition = var. cluster_worker_node_config . memory >= 2 && var. cluster_worker_node_config . memory <= 64
147151 error_message = " Memory needs to be at least 2 and at most 64."
148152 }
153+ validation {
154+ condition = var. cluster_worker_node_config . replicas >= 2
155+ error_message = " The number of worker nodes needs to be 2 or more."
156+ }
149157}
150158
151159# ####################################################
You can’t perform that action at this time.
0 commit comments