Skip to content

Commit

Permalink
fixup! fix: do not uninstall k3s during upgrade
Browse files Browse the repository at this point in the history
  • Loading branch information
xunleii committed May 31, 2020
1 parent 436a024 commit 9f18abb
Show file tree
Hide file tree
Showing 2 changed files with 0 additions and 6 deletions.
3 changes: 0 additions & 3 deletions agent_nodes.tf
Original file line number Diff line number Diff line change
Expand Up @@ -178,7 +178,6 @@ resource null_resource agents_annotation {
triggers = {
agent_name = local.agents_metadata[split(var.separator, each.key)[0]].name
annotation_name = split(var.separator, each.key)[1]
on_install = null_resource.agents_uninstall[split(var.separator, each.key)[0]].id
on_value_changes = each.value

// Because some fields must be used on destruction, we need to store them into the current
Expand Down Expand Up @@ -238,7 +237,6 @@ resource null_resource agents_label {
triggers = {
agent_name = local.agents_metadata[split(var.separator, each.key)[0]].name
label_name = split(var.separator, each.key)[1]
on_install = null_resource.agents_uninstall[split(var.separator, each.key)[0]].id
on_value_changes = each.value

// Because some fields must be used on destruction, we need to store them into the current
Expand Down Expand Up @@ -298,7 +296,6 @@ resource null_resource agents_taint {
triggers = {
agent_name = local.agents_metadata[split(var.separator, each.key)[0]].name
taint_name = split(var.separator, each.key)[1]
on_install = null_resource.agents_uninstall[split(var.separator, each.key)[0]].id
on_value_changes = each.value

// Because some fields must be used on destruction, we need to store them into the current
Expand Down
3 changes: 0 additions & 3 deletions server_nodes.tf
Original file line number Diff line number Diff line change
Expand Up @@ -220,7 +220,6 @@ resource null_resource servers_annotation {
triggers = {
server_name = local.servers_metadata[split(var.separator, each.key)[0]].name
annotation_name = split(var.separator, each.key)[1]
on_install = null_resource.servers_uninstall[split(var.separator, each.key)[0]].id
on_value_changes = each.value

connection_json = base64encode(jsonencode(local.root_server_connection))
Expand Down Expand Up @@ -277,7 +276,6 @@ resource null_resource servers_label {
triggers = {
server_name = local.servers_metadata[split(var.separator, each.key)[0]].name
label_name = split(var.separator, each.key)[1]
on_install = null_resource.servers_uninstall[split(var.separator, each.key)[0]].id
on_value_changes = each.value

connection_json = base64encode(jsonencode(local.root_server_connection))
Expand Down Expand Up @@ -335,7 +333,6 @@ resource null_resource servers_taint {
server_name = local.servers_metadata[split(var.separator, each.key)[0]].name
taint_name = split(var.separator, each.key)[1]
connection_json = base64encode(jsonencode(local.root_server_connection))
on_install = null_resource.servers_uninstall[split(var.separator, each.key)[0]].id
on_value_changes = each.value

connection_json = base64encode(jsonencode(local.root_server_connection))
Expand Down

0 comments on commit 9f18abb

Please sign in to comment.