-
-
Notifications
You must be signed in to change notification settings - Fork 15
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Robert Wiesner
committed
May 13, 2023
1 parent
8b8b95e
commit 0b3e53d
Showing
2 changed files
with
35 additions
and
31 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,34 @@ | ||
#!/bin/sh | ||
|
||
set -eo pipefail | ||
|
||
# install registry | ||
docker run -d --restart=always -p "127.0.0.1:5001:5000" --name kind-registry registry:2 | ||
|
||
# startup kind | ||
curl -L https://raw.githubusercontent.com/bakito/kind-with-registry-action/main/kind-config.yaml -o testdata/e2e/kind-config.yaml | ||
kind create cluster --config=testdata/e2e/kind-config.yaml | ||
|
||
# setup registry | ||
docker network connect kind kind-registry | ||
kubectl apply -f https://raw.githubusercontent.com/bakito/kind-with-registry-action/main/configmap-registry.yaml | ||
|
||
# setup ingress | ||
kubectl apply -f https://raw.githubusercontent.com/kubernetes/ingress-nginx/main/deploy/static/provider/kind/deploy.yaml | ||
kubectl wait --namespace ingress-nginx \ | ||
--for=condition=ready pod \ | ||
--selector=app.kubernetes.io/component=controller \ | ||
--timeout=90s | ||
|
||
# build image | ||
./testdata/e2e/buildImage.sh | ||
|
||
# install sealed secrets | ||
helm repo add sealed-secrets https://bitnami-labs.github.io/sealed-secrets | ||
helm install sealed-secrets sealed-secrets/sealed-secrets \ | ||
--namespace sealed-secrets \ | ||
--create-namespace \ | ||
--atomic | ||
|
||
# install sealed secrets web | ||
./testdata/e2e/installSealedSecretsWebChart.sh yaml |