2021-09-14 08:32:10 +02:00
|
|
|
#!/usr/bin/env bash
|
|
|
|
|
|
2021-11-20 08:55:23 +01:00
|
|
|
set -euo pipefail
|
|
|
|
|
|
2024-12-28 18:07:44 +01:00
|
|
|
kind create cluster --config kind/kind.yaml --wait 10m
|
2021-09-14 08:32:10 +02:00
|
|
|
|
|
|
|
|
kubectl create secret docker-registry gitlab \
|
|
|
|
|
--docker-server=registry.gitlab.com \
|
|
|
|
|
--docker-username=gitlab \
|
|
|
|
|
--docker-password="${GITLAB_TOKEN}" \
|
2023-04-10 22:30:16 +02:00
|
|
|
--docker-email=gitlab@unbound.se
|
2021-09-14 08:32:10 +02:00
|
|
|
|
|
|
|
|
kubectl patch serviceaccount default -p '{"imagePullSecrets": [{"name": "gitlab"}]}'
|
|
|
|
|
|
2024-09-12 20:12:38 +02:00
|
|
|
kustomized="$(mktemp --suffix .unboundkind.yaml --tmpdir=/tmp/)"
|
|
|
|
|
|
2024-12-28 18:07:44 +01:00
|
|
|
kubectl kustomize --enable-helm ./kind > "${kustomized}"
|
2024-09-12 20:12:38 +02:00
|
|
|
kubectl apply -f "${kustomized}" || true
|
2025-06-29 14:13:43 +02:00
|
|
|
kubectl wait --for=condition=Ready pods -n cert-manager -l app=cert-manager --timeout 5m
|
|
|
|
|
kubectl wait --for=condition=Ready pods -n cert-manager -l app=cainjector --timeout 5m
|
|
|
|
|
kubectl wait --for=condition=Ready pods -n cert-manager -l app=webhook --timeout 5m
|
2023-04-10 22:30:16 +02:00
|
|
|
kubectl wait --for=condition=Ready pods --all -n external-secrets --timeout=5m
|
2024-09-12 20:12:38 +02:00
|
|
|
kubectl apply -f "${kustomized}"
|
2021-10-01 17:50:01 +02:00
|
|
|
|
2022-11-17 10:00:25 +01:00
|
|
|
kubectl wait --for=condition=Ready pods --all --timeout=5m
|