diff options
author | Patrick Spek <p.spek@tyil.nl> | 2023-04-06 17:10:04 +0200 |
---|---|---|
committer | Patrick Spek <p.spek@tyil.nl> | 2023-04-06 17:10:04 +0200 |
commit | 00e7ed1c2e5c4cd26aa91fe4e020b301250e252b (patch) | |
tree | 2fc052b01ef5ab29281053038e11d61644cc36fd | |
parent | e7d5c8e1e135b93762b5e8ca6f53077c6d2cc238 (diff) | |
download | k3s-master-00e7ed1c2e5c4cd26aa91fe4e020b301250e252b.tar.gz k3s-master-00e7ed1c2e5c4cd26aa91fe4e020b301250e252b.tar.bz2 |
-rw-r--r-- | playbook.bash | 4 |
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 |