File tree Expand file tree Collapse file tree 2 files changed +6
-2
lines changed Expand file tree Collapse file tree 2 files changed +6
-2
lines changed Original file line number Diff line number Diff line change 3
3
#
4
4
5
5
output "node_pool_name" {
6
- value = oci_containerengine_node_pool. oke_node_pool . 0 . name
6
+ value = var . create_new_node_pool ? oci_containerengine_node_pool. oke_node_pool . 0 . name : var . existent_oke_nodepool_id_for_autoscaler
7
7
}
8
8
output "node_pool_min_nodes" {
9
9
value = var. node_pool_min_nodes
@@ -12,7 +12,7 @@ output "node_pool_max_nodes" {
12
12
value = var. node_pool_max_nodes
13
13
}
14
14
output "node_pool_id" {
15
- value = oci_containerengine_node_pool. oke_node_pool . 0 . id
15
+ value = var . create_new_node_pool ? oci_containerengine_node_pool. oke_node_pool . 0 . id : var . existent_oke_nodepool_id_for_autoscaler
16
16
}
17
17
output "node_k8s_version" {
18
18
value = local. node_k8s_version
Original file line number Diff line number Diff line change @@ -46,6 +46,10 @@ variable "node_pool_node_shape_config_memory_in_gbs" {
46
46
default = " 16" # Only used if flex shape is selected
47
47
description = " You can customize the amount of memory allocated to a flexible shape"
48
48
}
49
+ variable "existent_oke_nodepool_id_for_autoscaler" {
50
+ default = " "
51
+ description = " Nodepool Id of the existent OKE to use with Cluster Autoscaler"
52
+ }
49
53
variable "image_operating_system" {
50
54
default = " Oracle Linux"
51
55
description = " The OS/image installed on all nodes in the node pool."
You can’t perform that action at this time.
0 commit comments