Skip to content

Commit e70d3b1

Browse files
OguzPastirmacihyder
authored andcommitted
Remove flannel checks
1 parent 0b81ce5 commit e70d3b1

File tree

2 files changed

+0
-15
lines changed

2 files changed

+0
-15
lines changed

modules/workers/clusternetworks.tf

Lines changed: 0 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -44,11 +44,6 @@ resource "oci_core_cluster_network" "workers" {
4444
error_message = "Missing image_id for pool ${each.key}. Check provided value for image_id if image_type is 'custom', or image_os/image_os_version if image_type is 'oke' or 'platform'."
4545
}
4646

47-
precondition {
48-
condition = var.cni_type == "flannel"
49-
error_message = "Cluster Networks require a cluster with `cni_type = flannel`."
50-
}
51-
5247
precondition {
5348
condition = each.value.autoscale == false
5449
error_message = "Cluster Networks do not support cluster autoscaler management."

modules/workers/instancepools.tf

Lines changed: 0 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -50,11 +50,6 @@ resource "oci_core_instance_pool" "tfscaled_workers" {
5050
EOT
5151
}
5252

53-
precondition {
54-
condition = var.cni_type == "flannel"
55-
error_message = "Instance Pools require a cluster with `cni_type = flannel`."
56-
}
57-
5853
precondition {
5954
condition = each.value.autoscale == false
6055
error_message = "Instance Pools do not support cluster autoscaler management."
@@ -110,11 +105,6 @@ resource "oci_core_instance_pool" "autoscaled_workers" {
110105
EOT
111106
}
112107

113-
precondition {
114-
condition = var.cni_type == "flannel"
115-
error_message = "Instance Pools require a cluster with `cni_type = flannel`."
116-
}
117-
118108
precondition {
119109
condition = each.value.autoscale == false
120110
error_message = "Instance Pools do not support cluster autoscaler management."

0 commit comments

Comments
 (0)