added file path to cwd

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