Skip to content
This repository was archived by the owner on Aug 12, 2024. It is now read-only.

Commit 4329ee4

Browse files
author
Sean Sundberg
committed
Aeds support for OpenShift 4.10 and sets as default
closes #78 Signed-off-by: Sean Sundberg <[email protected]>
1 parent dd3d32b commit 4329ee4

File tree

2 files changed

+7
-2
lines changed

2 files changed

+7
-2
lines changed

main.tf

Lines changed: 6 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -31,6 +31,11 @@ locals {
3131
type_code = "ocp4"
3232
version = "4.9"
3333
}
34+
4.10 = {
35+
type = "openshift"
36+
type_code = "ocp4"
37+
version = "4.10"
38+
}
3439
}
3540
name_prefix = var.name_prefix != "" ? var.name_prefix : var.resource_group_name
3641
name_list = [local.name_prefix, "cluster"]
@@ -43,7 +48,7 @@ locals {
4348
substr(version, 0, 3) => "${version}_openshift"
4449
}
4550
cluster_regex = "(${join("|", keys(local.config_values))}|ocp4).*"
46-
cluster_type_cleaned = regex(local.cluster_regex, var.ocp_version)[0] == "ocp4" ? "4.7" : regex(local.cluster_regex, var.ocp_version)[0]
51+
cluster_type_cleaned = regex(local.cluster_regex, var.ocp_version)[0] == "ocp4" ? "4.10" : regex(local.cluster_regex, var.ocp_version)[0]
4752
cluster_type = lookup(local.config_values[local.cluster_type_cleaned], "type", "")
4853
# value should be ocp4, ocp3, or kubernetes
4954
cluster_type_code = lookup(local.config_values[local.cluster_type_cleaned], "type_code", "")

variables.tf

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -36,7 +36,7 @@ variable "flavor" {
3636
variable "ocp_version" {
3737
type = string
3838
description = "The version of the OpenShift cluster that should be provisioned (format 4.x)"
39-
default = "4.9"
39+
default = "4.10"
4040
}
4141

4242
variable "exists" {

0 commit comments

Comments
 (0)