refactor(bootstrap): download Helm dependency when template

Instead of make target
This commit is contained in:
Khue Doan 2022-10-14 21:22:04 +07:00
parent c58ef20ecb
commit 750614c866
3 changed files with 5 additions and 9 deletions

View File

@ -2,20 +2,14 @@
default: namespace argocd root
argocd/charts: argocd/Chart.yaml
cd argocd \
&& helm dependency update
namespace:
kubectl create namespace argocd --dry-run=client --output=yaml \
| kubectl apply -f -
.PHONY: argocd
argocd: argocd/charts
cd argocd && \
./apply.sh
argocd:
cd argocd && ./apply.sh
.PHONY: root
root:
cd root && \
./apply.sh
cd root && ./apply.sh

View File

@ -1,6 +1,7 @@
#!/bin/sh
helm template \
--dependency-update \
--include-crds \
--namespace argocd \
argocd . \

1
bootstrap/main.yml Normal file
View File

@ -0,0 +1 @@
# TODO convert ./argocd/apply.sh and ./root/apply.sh to Ansible playbook