mirror of
https://github.com/khuedoan/homelab.git
synced 2025-01-22 02:07:46 +07:00
feat(bootstrap): use seed repo on first apply
This commit is contained in:
parent
86647289b3
commit
181265951f
@ -2,7 +2,6 @@
|
||||
.EXPORT_ALL_VARIABLES:
|
||||
|
||||
KUBECONFIG = ../metal/kubeconfig.yaml
|
||||
NAMESPACE = argocd
|
||||
|
||||
default: namespace apply
|
||||
|
||||
@ -14,9 +13,4 @@ namespace:
|
||||
| kubectl apply -f -
|
||||
|
||||
apply: charts
|
||||
# ArgoCD only uses Helm as YAML generator
|
||||
helm template \
|
||||
--include-crds \
|
||||
--namespace ${NAMESPACE} \
|
||||
argocd . \
|
||||
| kubectl apply -n argocd -f -
|
||||
./apply.sh
|
||||
|
16
bootstrap/apply.sh
Executable file
16
bootstrap/apply.sh
Executable file
@ -0,0 +1,16 @@
|
||||
#!/bin/sh
|
||||
|
||||
curl -fks --connect-timeout 5 https://git.khuedoan.com \
|
||||
|| extra_args="--values values-seed.yaml"
|
||||
|
||||
helm template \
|
||||
--include-crds \
|
||||
--namespace argocd \
|
||||
${extra_args} \
|
||||
argocd . \
|
||||
|
||||
# TODO https://github.com/argoproj/argo-helm/pull/1070
|
||||
# kubectl --namespace argocd wait --timeout=300s --for condition=ResourcesUpToDate \
|
||||
# applicationset/system \
|
||||
# applicationset/platform \
|
||||
# applicationset/apps
|
2
bootstrap/values-seed.yaml
Normal file
2
bootstrap/values-seed.yaml
Normal file
@ -0,0 +1,2 @@
|
||||
gitops:
|
||||
repo: https://github.com/khuedoan/homelab
|
Loading…
Reference in New Issue
Block a user