From 8e3a8256a37ecbdeac81badb248cf40debc52f85 Mon Sep 17 00:00:00 2001 From: Kat Inskip Date: Sat, 6 May 2023 12:07:57 -0700 Subject: [PATCH] [LOCAL PATH PROVISIONER] Use the helm chart. --- .gitmodules | 3 +++ cluster/local-path-provisioner.tf | 11 +++++++++++ cluster/lpp | 1 + 3 files changed, 15 insertions(+) create mode 100644 .gitmodules create mode 100644 cluster/local-path-provisioner.tf create mode 160000 cluster/lpp diff --git a/.gitmodules b/.gitmodules new file mode 100644 index 00000000..0fa106c8 --- /dev/null +++ b/.gitmodules @@ -0,0 +1,3 @@ +[submodule "lpp"] + path = cluster/lpp + url = git@github.com:rancher/local-path-provisioner.git diff --git a/cluster/local-path-provisioner.tf b/cluster/local-path-provisioner.tf new file mode 100644 index 00000000..2b36e58a --- /dev/null +++ b/cluster/local-path-provisioner.tf @@ -0,0 +1,11 @@ +resource "helm_release" "local_path_provisioner" { + name = "local-path-provisioner" + repository = "./lpp" + chart = "local-path-storage" + create_namespace = true + namespace = "local-path-storage" + + timeout = var.helm_timeout + cleanup_on_fail = true + force_update = true +} \ No newline at end of file diff --git a/cluster/lpp b/cluster/lpp new file mode 160000 index 00000000..97e05014 --- /dev/null +++ b/cluster/lpp @@ -0,0 +1 @@ +Subproject commit 97e0501428f0a5bcac49ecd0bfdb051797c4a6c5