Open toabi opened 3 years ago
This would allow to define/update the version of the manifests without changing this module.
I once did this for CSI somewhere with the kubectl provider:
data "http" "csi_driver_manifest" { url = "https://raw.githubusercontent.com/hetznercloud/csi-driver/${var.csi_driver_version}/deploy/kubernetes/hcloud-csi.yml" } data "kubectl_file_documents" "csi_driver" { content = data.http.csi_driver_manifest.body } resource "kubectl_manifest" "csi_driver" { count = length(data.kubectl_file_documents.csi_driver.documents) yaml_body = element(data.kubectl_file_documents.csi_driver.documents, count.index) }
For CMM this would then also make sense.
Thank you for the idea, fixed at https://github.com/identinet/terraform-hcloud-k3s/commit/56046406b37276818405b47a6474d0f9748f5079
This would allow to define/update the version of the manifests without changing this module.
I once did this for CSI somewhere with the kubectl provider:
For CMM this would then also make sense.