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