Skip to content
This repository has been archived by the owner on Jan 20, 2025. It is now read-only.

Install specific CSI/CCM manifest via terraform #16

Open
toabi opened this issue Jul 16, 2021 · 1 comment
Open

Install specific CSI/CCM manifest via terraform #16

toabi opened this issue Jul 16, 2021 · 1 comment

Comments

@toabi
Copy link

toabi commented Jul 16, 2021

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.

@jceb
Copy link

jceb commented Feb 8, 2022

Thank you for the idea, fixed at identiops/terraform-hcloud-k3s@5604640

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants