khuedoan-homelab/bootstrap/root/apply.sh
Khue Doan 8f7bd25996 refactor(bootstrap): check Gitea Ingress instead of curl
- A bit faster (no need for timeout)
- Still works if NGINX is down
2022-10-14 21:31:07 +07:00

14 lines
252 B
Bash
Executable File

#!/bin/sh
VALUES="values.yaml"
kubectl get ingress gitea --namespace gitea \
|| VALUES="values-seed.yaml"
helm template \
--include-crds \
--namespace argocd \
--values "${VALUES}" \
argocd . \
| kubectl apply -n argocd -f -