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

Commit 3b7bedd

Browse files
author
Sean Sundberg
authored
Adds config for 4.7 and sets 4.7 as the default (#39)
Signed-off-by: Sean Sundberg <[email protected]>
1 parent f1669be commit 3b7bedd

File tree

1 file changed

+6
-1
lines changed

1 file changed

+6
-1
lines changed

main.tf

Lines changed: 6 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -16,6 +16,11 @@ locals {
1616
type_code = "ocp4"
1717
version = "4.6"
1818
}
19+
4.7 = {
20+
type = "openshift"
21+
type_code = "ocp4"
22+
version = "4.7"
23+
}
1924
}
2025
cluster_config_dir = "${path.cwd}/.kube"
2126
cluster_type_file = "${path.cwd}/.tmp/cluster_type.val"
@@ -31,7 +36,7 @@ locals {
3136
substr(version, 0, 3) => "${version}_openshift"
3237
}
3338
cluster_regex = "(${join("|", keys(local.config_values))}|ocp4).*"
34-
cluster_type_cleaned = regex(local.cluster_regex, var.ocp_version)[0] == "ocp4" ? "4.6" : regex(local.cluster_regex, var.ocp_version)[0]
39+
cluster_type_cleaned = regex(local.cluster_regex, var.ocp_version)[0] == "ocp4" ? "4.7" : regex(local.cluster_regex, var.ocp_version)[0]
3540
cluster_type = local.config_values[local.cluster_type_cleaned].type
3641
# value should be ocp4, ocp3, or kubernetes
3742
cluster_type_code = local.config_values[local.cluster_type_cleaned].type_code

0 commit comments

Comments
 (0)