fixed deprecated data for kubeconfig to resource

This commit is contained in:
Stefan Le Breton 2024-11-22 14:22:12 +01:00
parent 2f3cd22828
commit 7e5c9df918
2 changed files with 3 additions and 2 deletions

View file

@ -4,6 +4,6 @@ output "talosconfig" {
}
output "kubeconfig" {
value = data.talos_cluster_kubeconfig.this.kubeconfig_raw
value = resource.talos_cluster_kubeconfig.this.kubeconfig_raw
sensitive = true
}

View file

@ -160,7 +160,8 @@ resource "talos_machine_configuration_apply" "worker" {
node = each.value.ipv4_address
}
data "talos_cluster_kubeconfig" "this" {
resource "talos_cluster_kubeconfig" "this" {
depends_on = [ talos_machine_bootstrap.this ]
client_configuration = talos_machine_secrets.this.client_configuration
node = local.endpoint_ip
# wait = true