fix deprecated waring, switched to local_Sensitive_file for kubeconfig
This commit is contained in:
parent
ac1b0b93a8
commit
4167f6124b
@ -23,8 +23,8 @@ locals {
|
|||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
resource "local_file" "kubeconfig" {
|
resource "local_sensitive_file" "kubeconfig" {
|
||||||
sensitive_content = local.kubeconfig_external
|
content = local.kubeconfig_external
|
||||||
filename = "kubeconfig.yaml"
|
filename = "kubeconfig.yaml"
|
||||||
file_permission = "600"
|
file_permission = "600"
|
||||||
}
|
}
|
||||||
|
2
main.tf
2
main.tf
@ -78,7 +78,7 @@ resource "null_resource" "destroy_traefik_loadbalancer" {
|
|||||||
}
|
}
|
||||||
|
|
||||||
depends_on = [
|
depends_on = [
|
||||||
local_file.kubeconfig,
|
local_sensitive_file.kubeconfig,
|
||||||
null_resource.control_planes[0],
|
null_resource.control_planes[0],
|
||||||
hcloud_network_subnet.subnet,
|
hcloud_network_subnet.subnet,
|
||||||
hcloud_network.k3s,
|
hcloud_network.k3s,
|
||||||
|
Loading…
Reference in New Issue
Block a user