mirror of
https://github.com/khuedoan/homelab.git
synced 2025-01-31 01:44:47 +07:00
refactor(bootstrap): download Helm dependency when template
Instead of make target
This commit is contained in:
parent
c58ef20ecb
commit
750614c866
@ -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
|
||||
|
@ -1,6 +1,7 @@
|
||||
#!/bin/sh
|
||||
|
||||
helm template \
|
||||
--dependency-update \
|
||||
--include-crds \
|
||||
--namespace argocd \
|
||||
argocd . \
|
||||
|
1
bootstrap/main.yml
Normal file
1
bootstrap/main.yml
Normal file
@ -0,0 +1 @@
|
||||
# TODO convert ./argocd/apply.sh and ./root/apply.sh to Ansible playbook
|
Loading…
Reference in New Issue
Block a user