fixed deprecated data for kubeconfig to resource
This commit is contained in:
parent
2f3cd22828
commit
7e5c9df918
2 changed files with 3 additions and 2 deletions
|
|
@ -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
|
||||
}
|
||||
3
talos.tf
3
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
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue