added file path to root

This commit is contained in:
Matthias Hinrichs
2025-07-17 00:09:51 +02:00
parent 2a31449bc1
commit 719266017f
+1 -1
View File
@@ -157,7 +157,7 @@ resource "rancher2_cluster_v2" "cluster" {
machine_selector_config { machine_selector_config {
config = yamlencode({ config = yamlencode({
cloud-provider-name = "harvester" cloud-provider-name = "harvester"
cloud-provider-config = file("${path.module}/${var.cluster_name}-${var.cluster_environment}-kubeconfig") cloud-provider-config = file("${path.root}/${var.cluster_name}-${var.cluster_environment}-kubeconfig")
}) })
} }