Skip to content

Commit

Permalink
use composite kind with registry action
Browse files Browse the repository at this point in the history
  • Loading branch information
bakito committed Dec 26, 2022
1 parent 607214e commit 22d3d95
Show file tree
Hide file tree
Showing 3 changed files with 4 additions and 63 deletions.
37 changes: 4 additions & 33 deletions .github/workflows/e2e.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -15,43 +15,14 @@ jobs:
- name: Checkout
uses: actions/checkout@v3

- name: Install Helm
run: |
curl https://raw.githubusercontent.com/helm/helm/main/scripts/get-helm-3 | bash
- name: Install jq
uses: dcarbone/[email protected]
- name: Install yq
uses: dcarbone/[email protected]

- name: Set up Registry Container
run: |
docker run -d --restart=always -p "127.0.0.1:5001:5000" --name kind-registry registry:2
- name: Install kind with registry
uses: bakito/kind-with-registry-action@main
with:
ingress_enabled: true

- name: Build image
run: ./testdata/e2e/buildImage.sh

- name: Create kind cluster
uses: helm/[email protected]
with:
version: v0.17.0
kubectl_version: v1.25.3
config: testdata/e2e/kind/config.yaml
- name: Set up Local Registry
run: |
# https://kind.sigs.k8s.io/docs/user/local-registry/
docker network connect kind kind-registry
kubectl apply -f testdata/e2e/kind/configmap-registry.yaml
# image registry: localhost:5001/
- name: Set up Ingress
run: |
# https://kind.sigs.k8s.io/docs/user/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
- name: Install sealed-secrets
run: |
helm repo add sealed-secrets https://bitnami-labs.github.io/sealed-secrets
Expand Down
21 changes: 0 additions & 21 deletions testdata/e2e/kind/config.yaml

This file was deleted.

9 changes: 0 additions & 9 deletions testdata/e2e/kind/configmap-registry.yaml

This file was deleted.

0 comments on commit 22d3d95

Please sign in to comment.