Files
launchpad/bootstrap.sh
Danijel Simeunovic 4f4c26f58c finalizers
2026-03-06 15:25:51 +01:00

44 lines
1.2 KiB
Bash

#!/bin/zsh
# in case of $'\r': command not found error, run command below first
# sed -i 's/\r$//' ./bootstrap.sh
echo "running $0..."
############################################################
# Bootstrap #
############################################################
Bootstrap()
{
ArgoCd
Github
}
############################################################
# Github #
############################################################
Github()
{
echo "Installing secret..."
kubectl apply -f private/github.yaml
kubectl apply -f private/main.key
}
############################################################
# ArgoCd #
############################################################
ArgoCd()
{
# install argocd
echo "Installing ArgoCD..."
helm upgrade --install argocd argo-cd \
--repo https://argoproj.github.io/argo-helm \
--namespace argocd --create-namespace \
--values infra/values/argocd-values.yaml \
--timeout 60s --atomic
kubectl apply -f _app-of-apps.yaml -n argocd
}
Bootstrap