Skip to content

Commit

Permalink
ignore change of content
Browse files Browse the repository at this point in the history
  • Loading branch information
littlejo authored and PhilipSchmid committed Jun 10, 2024
1 parent 9f3ab14 commit 30b9a7a
Showing 1 changed file with 5 additions and 2 deletions.
7 changes: 5 additions & 2 deletions 03-talos.tf
Original file line number Diff line number Diff line change
Expand Up @@ -126,8 +126,11 @@ data "talos_cluster_kubeconfig" "this" {
}

resource "local_file" "kubeconfig" {
content = nonsensitive(data.talos_cluster_kubeconfig.this.kubeconfig_raw)
content = data.talos_cluster_kubeconfig.this.kubeconfig_raw
filename = local.path_to_kubeconfig_file
lifecycle {
ignore_changes = [content]
}
}

# Does currently not work because of the nodes reachability from the internet.
Expand All @@ -138,4 +141,4 @@ resource "local_file" "kubeconfig" {
# endpoints = module.talos_control_plane_nodes.*.public_ip
# control_plane_nodes = module.talos_control_plane_nodes.*.private_ip
# worker_nodes = [for node in module.talos_worker_group : node.private_ip]
# }
# }

0 comments on commit 30b9a7a

Please sign in to comment.