Skip to content

Commit 0984eac

Browse files
12345ieeedevoncrouse
authored andcommitted
Node pool correctly ignore sub-sub-object
Correct terraform syntax to ignore just the needed parts of `node_metadata` and `node_config_details` Before the change the whole sub-objects were ignored, leading to inability to change a nodepool size via terraform. Fixes: 269d3fd
1 parent 5e777d1 commit 0984eac

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

modules/oke/nodepools.tf

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -121,8 +121,8 @@ resource "oci_containerengine_node_pool" "nodepools" {
121121
ignore_changes = [
122122
kubernetes_version,
123123
defined_tags, # automatic tagging after apply
124-
node_metadata["user_data"], # templated cloud-init
125-
node_config_details["placement_configs"], # dynamic placement configs
124+
node_metadata, # templated cloud-init
125+
node_config_details[0].placement_configs, # dynamic placement configs
126126
node_source_details # dynamic image lookup
127127
]
128128
}

0 commit comments

Comments
 (0)