2021-08-22 23:34:09 +07:00
|
|
|
.POSIX:
|
|
|
|
.EXPORT_ALL_VARIABLES:
|
|
|
|
|
2021-09-01 16:51:23 +07:00
|
|
|
KUBECONFIG = ../metal/kubeconfig.yaml
|
2021-08-22 23:34:09 +07:00
|
|
|
|
2021-12-17 07:53:05 +07:00
|
|
|
default: argocd root
|
2021-08-22 23:34:09 +07:00
|
|
|
|
2021-08-22 23:36:57 +07:00
|
|
|
.PHONY: argocd
|
2021-08-22 23:34:09 +07:00
|
|
|
argocd:
|
2021-08-24 02:16:21 +07:00
|
|
|
kustomize build ./argocd | kubectl apply -f -
|
2021-12-17 08:20:23 +07:00
|
|
|
kubectl -n argocd wait --timeout=60s --for condition=Established \
|
2021-12-17 07:53:44 +07:00
|
|
|
crd/applications.argoproj.io \
|
|
|
|
crd/applicationsets.argoproj.io
|
2021-12-17 07:53:05 +07:00
|
|
|
|
|
|
|
.PHONY: root
|
|
|
|
root:
|
|
|
|
kustomize build ./root | kubectl apply -f -
|
2021-12-17 08:20:23 +07:00
|
|
|
kubectl -n argocd wait --timeout=300s --for condition=ResourcesUpToDate \
|
2021-12-17 08:08:06 +07:00
|
|
|
applicationset/bootstrap \
|
|
|
|
applicationset/system \
|
|
|
|
applicationset/platform \
|
|
|
|
applicationset/apps
|