khuedoan-homelab/bootstrap/Makefile
2021-12-28 10:24:05 +07:00

25 lines
405 B
Makefile

.POSIX:
.EXPORT_ALL_VARIABLES:
KUBECONFIG = $(shell pwd)/../metal/kubeconfig.yaml
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
.PHONY: root
root:
cd root && \
./apply.sh