summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--playbook.bash4
1 files changed, 3 insertions, 1 deletions
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