khuedoan-homelab/bootstrap/Makefile
2021-12-17 08:20:23 +07:00

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