@@ -26,7 +26,6 @@ variable "node_pool_ssh_public_key" {
2626}
2727
2828variable  "kms_vault_id"  {
29- 
3029}
3130
3231variable  "node_pool_node_eviction_node_pool_settings_eviction_grace_duration"  {
@@ -37,6 +36,18 @@ variable "node_pool_node_eviction_node_pool_settings_is_force_delete_after_grace
3736  default  =  false 
3837}
3938
39+ variable  "node_pool_cycling_details_is_node_cycling_enabled"  {
40+   default  =  true 
41+ }
42+ 
43+ variable  "node_pool_cycling_details_maximum_surge"  {
44+   default  =  " 1" 
45+ }
46+ 
47+ variable  "node_pool_cycling_details_maximum_unavailable"  {
48+   default  =  " 0" 
49+ }
50+ 
4051variable  "node_pool_state"  {
4152  default  =   []
4253}
@@ -155,7 +166,7 @@ resource "oci_core_subnet" "nodePool_Subnet_2" {
155166resource  "oci_containerengine_cluster"  "test_cluster"  {
156167  # Required
157168  compartment_id      =   var. compartment_ocid 
158-   kubernetes_version  =  reverse ( data. oci_containerengine_cluster_option . test_cluster_option . kubernetes_versions ) [0 ]
169+   kubernetes_version  =   data. oci_containerengine_cluster_option . test_cluster_option . kubernetes_versions [0 ]
159170  name                =  " tfTestCluster" 
160171  vcn_id              =   oci_core_vcn. test_vcn . id 
161172
@@ -195,10 +206,10 @@ resource "oci_containerengine_node_pool" "test_node_pool" {
195206  # Required
196207  cluster_id          =   oci_containerengine_cluster. test_cluster . id 
197208  compartment_id      =   var. compartment_ocid 
198-   kubernetes_version  =  reverse (data. oci_containerengine_node_pool_option . test_node_pool_option . kubernetes_versions )[0 ]
209+   kubernetes_version  =  reverse (data. oci_containerengine_cluster_option . test_cluster_option . kubernetes_versions )[0 ]
199210  name                =  " tfPool" 
200211  node_shape          =  " VM.Standard2.1" 
201-   subnet_ids          =   [oci_core_subnet . nodePool_Subnet_1 . id ]
212+   subnet_ids          =   [oci_core_subnet . nodePool_Subnet_1 . id ,  oci_core_subnet . nodePool_Subnet_2 . id ]
202213
203214  # Optional
204215  initial_node_labels  {
@@ -213,6 +224,13 @@ resource "oci_containerengine_node_pool" "test_node_pool" {
213224    is_force_delete_after_grace_duration  =   var. node_pool_node_eviction_node_pool_settings_is_force_delete_after_grace_duration 
214225  }
215226
227+   node_pool_cycling_details  {
228+     # Optional
229+     is_node_cycling_enabled  =   var. node_pool_cycling_details_is_node_cycling_enabled 
230+     maximum_surge            =   var. node_pool_cycling_details_maximum_surge 
231+     maximum_unavailable      =   var. node_pool_cycling_details_maximum_unavailable 
232+   }
233+ 
216234  node_source_details  {
217235    # Required
218236    image_id     =   local. image_id 
@@ -230,10 +248,10 @@ resource "oci_containerengine_node_pool" "test_flex_shape_node_pool" {
230248  # Required
231249  cluster_id          =   oci_containerengine_cluster. test_cluster . id 
232250  compartment_id      =   var. compartment_ocid 
233-   kubernetes_version  =  reverse (data. oci_containerengine_node_pool_option . test_node_pool_option . kubernetes_versions )[0 ]
251+   kubernetes_version  =  reverse (data. oci_containerengine_cluster_option . test_cluster_option . kubernetes_versions )[0 ]
234252  name                =  " flexShapePool" 
235253  node_shape          =  " VM.Standard.E3.Flex" 
236-   subnet_ids          =   [oci_core_subnet . nodePool_Subnet_1 . id ]
254+   subnet_ids          =   [oci_core_subnet . nodePool_Subnet_1 . id ,  oci_core_subnet . nodePool_Subnet_2 . id ]
237255
238256  node_source_details  {
239257    # Required
0 commit comments