khuedoan-homelab/bootstrap/root/apply.sh

14 lines
252 B
Bash
Raw Normal View History

#!/bin/sh
2022-07-21 01:58:00 +07:00
VALUES="values.yaml"
kubectl get ingress gitea --namespace gitea \
2022-07-21 01:58:00 +07:00
|| VALUES="values-seed.yaml"
helm template \
--include-crds \
--namespace argocd \
2022-07-21 01:58:00 +07:00
--values "${VALUES}" \
argocd . \
| kubectl apply -n argocd -f -