khuedoan-homelab/bootstrap/root/apply.sh
2022-07-21 01:58:00 +07:00

14 lines
263 B
Bash
Executable File

#!/bin/sh
VALUES="values.yaml"
curl -fks --connect-timeout 5 https://git.khuedoan.com \
|| VALUES="values-seed.yaml"
helm template \
--include-crds \
--namespace argocd \
--values "${VALUES}" \
argocd . \
| kubectl apply -n argocd -f -