Skip to content

Commit bd87dd5

Browse files
authored
Allow updating of node pool image (#287)
* allow changing of the node pool image id
1 parent 464c056 commit bd87dd5

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
@@ -40,9 +40,9 @@ resource "oci_containerengine_node_pool" "nodepools" {
4040

4141
ssh_public_key = file(var.oke_ssh_keys.ssh_public_key_path)
4242

43-
# do not destroy the node pool if the kubernetes version has changed as part of the upgrade or the node pool image id has been updated
43+
# do not destroy the node pool if the kubernetes version has changed as part of the upgrade
4444
lifecycle {
45-
ignore_changes = [kubernetes_version, node_source_details[0].image_id]
45+
ignore_changes = [kubernetes_version]
4646
}
4747
dynamic "initial_node_labels" {
4848
for_each = lookup(each.value, "label", "") != "" ? each.value.label : {}

0 commit comments

Comments
 (0)