mirror of
https://github.com/khuedoan/homelab.git
synced 2025-01-07 05:51:17 +07:00
23 lines
543 B
Makefile
23 lines
543 B
Makefile
.POSIX:
|
|
.EXPORT_ALL_VARIABLES:
|
|
|
|
KUBECONFIG = ../metal/kubeconfig.yaml
|
|
|
|
default: argocd root
|
|
|
|
.PHONY: argocd
|
|
argocd:
|
|
kustomize build ./argocd | kubectl apply -f -
|
|
kubectl -n argocd wait --timeout=60s --for condition=Established \
|
|
crd/applications.argoproj.io \
|
|
crd/applicationsets.argoproj.io
|
|
|
|
.PHONY: root
|
|
root:
|
|
kustomize build ./root | kubectl apply -f -
|
|
kubectl -n argocd wait --timeout=300s --for condition=ResourcesUpToDate \
|
|
applicationset/bootstrap \
|
|
applicationset/system \
|
|
applicationset/platform \
|
|
applicationset/apps
|