Closed martintietz closed 2 years ago
Fixed by using pathexpand
(https://www.terraform.io/language/functions/pathexpand):
module "dev_software_olm_release" {
source = "github.com/cloud-native-toolkit/terraform-k8s-olm"
cluster_config_file = pathexpand("~/.kube/db2u-config")
cluster_version = "1.20"
cluster_type = "kubernetes"
olm_version = "v0.20.0"
}
Unfortunately the example from the README does not work for me. I get an error when I try to use
cluster_config_file = "~/.kube/db2u-config"
:The same happens for
cluster_config_file = "$HOME/.kube/db2u-config"
:Here is the terraform snippet I'm using:
When I switch to
cluster_config_file = "/home/<username>/.kube/db2u-config"
it runs without any issue.