mirror of
https://hubproxy.babadafafafafa.cn/https://github.com/khuedoan/homelab.git
synced 2026-09-20 08:03:58 +08:00
refactor(bootstrap): download Helm dependency when template
Instead of make target
This commit is contained in:
@@ -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
|
||||
Reference in New Issue
Block a user