From 7e5c9df918415348d76a90a4e0305d4d3915d45a Mon Sep 17 00:00:00 2001 From: Stefan Le Breton Date: Fri, 22 Nov 2024 14:22:12 +0100 Subject: [PATCH] fixed deprecated data for kubeconfig to resource --- outputs.tf | 2 +- talos.tf | 3 ++- 2 files changed, 3 insertions(+), 2 deletions(-) diff --git a/outputs.tf b/outputs.tf index 9b87295..569237a 100644 --- a/outputs.tf +++ b/outputs.tf @@ -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 } \ No newline at end of file diff --git a/talos.tf b/talos.tf index 6ee5d16..ad94eb1 100644 --- a/talos.tf +++ b/talos.tf @@ -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