From 00e7ed1c2e5c4cd26aa91fe4e020b301250e252b Mon Sep 17 00:00:00 2001
From: Patrick Spek
Date: Thu, 6 Apr 2023 17:10:04 +0200
Subject: Add manifest_prefix
---
playbook.bash | 4 +++-
1 file changed, 3 insertions(+), 1 deletion(-)
diff --git a/playbook.bash b/playbook.bash
index 0cbf315..e00ed1b 100644
--- a/playbook.bash
+++ b/playbook.bash
@@ -45,13 +45,15 @@ playbook_sync() {
local data
local helm_cmd
local kubeconfig
+ local manifest_prefix
local values
data="$(playbook_path "data")"
kubeconfig="$(config "fs.etcdir")/rancher/k3s/k3s.yaml"
+ manifest_prefix="$(config "$BASHTARD_PLAYBOOK.manifest-prefix" "")"
notice "$BASHTARD_PLAYBOOK/manifests" "Applying manifests.d"
- kubectl --kubeconfig "$kubeconfig" apply --recursive --filename "$data/manifests.d"
+ kubectl --kubeconfig "$kubeconfig" apply --recursive --filename "$data/manifests.d/$manifest_prefix"
notice "$BASHTARD_PLAYBOOK/helm" "Ensure all Helm repos exist"
while read -r repo
--
cgit v1.1