Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

feat: optional csi-driver deployment #51

Merged
merged 1 commit into from
Oct 1, 2024
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
13 changes: 13 additions & 0 deletions main-setup.tf
Original file line number Diff line number Diff line change
Expand Up @@ -182,6 +182,19 @@ resource "helm_release" "hcloud_cloud_controller_manager" {
}
}

resource "helm_release" "hcloud_csi_driver" {
count = var.deploy_csi_driver ? 1 : 0

depends_on = [kubernetes_secret_v1.hcloud_token]

name = "hcloud-csi"
chart = "hcloud-csi"
repository = "https://charts.hetzner.cloud"
namespace = "kube-system"
version = "2.9.0"
wait = true
}

resource "helm_release" "docker_registry" {
depends_on = [helm_release.cilium]

Expand Down
5 changes: 5 additions & 0 deletions variables.tf
Original file line number Diff line number Diff line change
Expand Up @@ -10,6 +10,11 @@ variable "deploy_hccm" {
type = bool
default = true
}
variable "deploy_csi_driver" {
description = "Deploy the csi-driver through Helm"
type = bool
default = false
simonhammes marked this conversation as resolved.
Show resolved Hide resolved
}
variable "use_cloud_routes" {
description = "Use the Hetzner Cloud network routes for Pod traffic. Enables hcloud-cloud-controller-manager routes controller and Cilium native routing. Does not work with Robot servers."
type = bool
Expand Down
Loading