Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

build(e2e): upgrade k8s supported version #1051

Draft
wants to merge 3 commits into
base: main
Choose a base branch
from
Draft
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
18 changes: 9 additions & 9 deletions .github/workflows/build-dev.yml
Original file line number Diff line number Diff line change
Expand Up @@ -10,18 +10,18 @@ jobs:
docker:
runs-on: ubuntu-latest
steps:
- uses: actions/setup-go@v2
- uses: actions/setup-go@v4
with:
go-version: 1.18
- uses: actions/checkout@v2
- uses: actions/checkout@v3
- name: Set up QEMU
uses: docker/setup-qemu-action@v1
uses: docker/setup-qemu-action@v2
- name: Set up Docker Buildx
uses: docker/setup-buildx-action@v2.0.0
uses: docker/setup-buildx-action@v2
with:
driver-opts: image=moby/buildkit:master
- name: Login to DockerHub
uses: docker/login-action@v1
uses: docker/login-action@v2
with:
username: '${{ secrets.DOCKER_USER }}'
password: '${{ secrets.DOCKER_TOKEN }}'
Expand All @@ -41,7 +41,7 @@ jobs:
username: harbor
password: '${{ secrets.GHCR_TOKEN }}'
- name: Build and push go ghcr
uses: docker/build-push-action@v3
uses: docker/build-push-action@v4
with:
push: true
platforms: |
Expand All @@ -53,13 +53,13 @@ jobs:
charts:
runs-on: ubuntu-latest
steps:
- uses: actions/setup-go@v2
- uses: actions/setup-go@v4
with:
go-version: 1.18
- uses: actions/checkout@v2
- uses: actions/checkout@v3
- name: Package charts
run: make helm-generate
- uses: actions/upload-artifact@v2
- uses: actions/upload-artifact@v3
with:
name: charts
path: charts/*.tgz
25 changes: 13 additions & 12 deletions .github/workflows/chart-tests.yml
Original file line number Diff line number Diff line change
Expand Up @@ -24,22 +24,23 @@ jobs:
matrix:
# https://github.com/jetstack/cert-manager/tags
certManager:
- "1.9.1"
- "1.10.0"

# https://snapcraft.io/microk8s
k8sVersion:
- "1.21.12"
- "1.23.6"
- "1.24.0"
- "1.23.17"
- "1.24.13"
- "1.25.9"
- "1.26.4"

# https://github.com/kubernetes/ingress-nginx/tags
ingress:
- "1.3.0"
- "1.6.4"

steps:
- uses: actions/checkout@v2
- uses: actions/checkout@v3

- uses: actions/setup-go@v2
- uses: actions/setup-go@v4
with:
go-version: 1.18

Expand All @@ -48,7 +49,7 @@ jobs:
version: 'latest'

- name: Cache go mod
uses: actions/cache@v2
uses: actions/cache@v3
with:
path: ~/go/pkg/mod
key: ${{ runner.os }}-go-${{ hashFiles('**/go.sum') }}
Expand All @@ -62,9 +63,9 @@ jobs:
sudo mount -t tmpfs tmpfs /tmp/lib/etcd

- name: Install Kubernetes v${{ matrix.k8sVersion }}
uses: helm/kind-action@v1.3.0
uses: helm/kind-action@v1.7.0
with:
version: v0.14.0
version: v0.19.0
node_image: kindest/node:v${{ matrix.k8sVersion }}
cluster_name: harbor
config: .github/kind.yaml
Expand Down Expand Up @@ -176,7 +177,7 @@ jobs:
kubectl logs -l "release=harbor-redis" --all-containers > /tmp/harbor/redis.log
ls -l /tmp/harbor

- uses: actions/upload-artifact@v2
- uses: actions/upload-artifact@v3
if: ${{ failure() }}
with:
name: harbor_chart
Expand All @@ -189,7 +190,7 @@ jobs:
kind export logs --name harbor /tmp/logs
ls -l /tmp/logs

- uses: actions/upload-artifact@v2
- uses: actions/upload-artifact@v3
if: ${{ failure() }}
with:
name: kind_chart
Expand Down
2 changes: 1 addition & 1 deletion .github/workflows/codeql-analysis.yml
Original file line number Diff line number Diff line change
Expand Up @@ -35,7 +35,7 @@ jobs:

steps:
- name: Checkout repository
uses: actions/checkout@v2
uses: actions/checkout@v3

# Initializes the CodeQL tools for scanning.
- name: Initialize CodeQL
Expand Down
25 changes: 13 additions & 12 deletions .github/workflows/contour-tests.yml
Original file line number Diff line number Diff line change
Expand Up @@ -24,24 +24,25 @@ jobs:
matrix:
# https://github.com/jetstack/cert-manager/tags
certManager:
- "1.8.2"
- "1.10.0"

# https://github.com/projectcontour/contour/tags
contour:
- "1.22.0"
- "1.24.4"

k8sVersion:
- "1.21.12"
- "1.23.6"
- "1.24.0"
- "1.23.17"
- "1.24.13"
- "1.25.9"
- "1.26.4"

samples:
- "full_stack.yaml"

steps:
- uses: actions/checkout@v2
- uses: actions/checkout@v3

- uses: actions/setup-go@v2
- uses: actions/setup-go@v4
with:
go-version: 1.18

Expand All @@ -50,7 +51,7 @@ jobs:
version: 'v1.25.4'

- name: Cache go mod
uses: actions/cache@v2
uses: actions/cache@v3
with:
path: ~/go/pkg/mod
key: ${{ runner.os }}-go-${{ hashFiles('**/go.sum') }}
Expand All @@ -64,9 +65,9 @@ jobs:
sudo mount -t tmpfs tmpfs /tmp/lib/etcd

- name: Install Kubernetes v${{ matrix.k8sVersion }}
uses: helm/kind-action@v1.3.0
uses: helm/kind-action@v1.7.0
with:
version: v0.14.0
version: v0.19.0
node_image: kindest/node:v${{ matrix.k8sVersion }}
cluster_name: harbor
config: .github/kind.yaml
Expand Down Expand Up @@ -198,7 +199,7 @@ jobs:
kubectl -n cluster-sample-ns logs -l "app.kubernetes.io/component=redis" --all-containers > /tmp/harbor/redis.log
ls -l /tmp/harbor

- uses: actions/upload-artifact@v2
- uses: actions/upload-artifact@v3
if: ${{ failure() }}
with:
name: contour_harbor_v${{ matrix.k8sVersion }}_v${{ matrix.certManager }}_${{ matrix.samples }}
Expand All @@ -211,7 +212,7 @@ jobs:
kind export logs --name harbor /tmp/logs
ls -l /tmp/logs

- uses: actions/upload-artifact@v2
- uses: actions/upload-artifact@v3
if: ${{ failure() }}
with:
name: contour_kind_v${{ matrix.k8sVersion }}_v${{ matrix.certManager }}_${{ matrix.samples }}
Expand Down
26 changes: 13 additions & 13 deletions .github/workflows/harbor-e2e-tests.yml
Original file line number Diff line number Diff line change
Expand Up @@ -24,27 +24,27 @@ jobs:
matrix:
# https://github.com/jetstack/cert-manager/tags
certManager:
- "1.6.3"
- "1.9.1"
- "1.10.0"

# https://github.com/kubernetes-sigs/kind/releases
k8sVersion:
- "1.21.12"
- "1.23.6"
- "1.24.0"
- "1.23.17"
- "1.24.13"
- "1.25.9"
- "1.26.4"

# https://github.com/kubernetes/ingress-nginx/tags
ingress:
- "1.3.0"
- "1.6.4"

samples:
- "full_stack.yaml"
- "standard_stack_fs.yaml"

steps:
- uses: actions/checkout@v2
- uses: actions/checkout@v3

- uses: actions/setup-go@v2
- uses: actions/setup-go@v4
with:
go-version: 1.18

Expand All @@ -53,7 +53,7 @@ jobs:
version: 'latest'

- name: Cache go mod
uses: actions/cache@v2
uses: actions/cache@v3
with:
path: ~/go/pkg/mod
key: ${{ runner.os }}-go-${{ hashFiles('**/go.sum') }}
Expand All @@ -67,9 +67,9 @@ jobs:
sudo mount -t tmpfs tmpfs /tmp/lib/etcd

- name: Install Kubernetes v${{ matrix.k8sVersion }}
uses: helm/kind-action@v1.3.0
uses: helm/kind-action@v1.7.0
with:
version: v0.14.0
version: v0.19.0
node_image: kindest/node:v${{ matrix.k8sVersion }}
cluster_name: harbor
config: .github/kind_permission.yaml
Expand Down Expand Up @@ -201,7 +201,7 @@ jobs:
kubectl -n cluster-sample-ns logs -l "app.kubernetes.io/component=redis" --all-containers > /tmp/harbor/redis.log
ls -l /tmp/harbor

- uses: actions/upload-artifact@v2
- uses: actions/upload-artifact@v3
if: ${{ failure() }}
with:
name: harbor_v${{ matrix.k8sVersion }}_v${{ matrix.certManager }}_${{ matrix.samples }}
Expand All @@ -214,7 +214,7 @@ jobs:
kind export logs --name harbor /tmp/logs
ls -l /tmp/logs

- uses: actions/upload-artifact@v2
- uses: actions/upload-artifact@v3
if: ${{ failure() }}
with:
name: kind_v${{ matrix.k8sVersion }}_v${{ matrix.certManager }}_${{ matrix.samples }}
Expand Down
18 changes: 9 additions & 9 deletions .github/workflows/release.yml
Original file line number Diff line number Diff line change
Expand Up @@ -9,10 +9,10 @@ jobs:
goreleaser:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v2
- uses: actions/checkout@v3
- # required for the changelog to work correctly
run: git fetch --prune --unshallow
- uses: actions/setup-go@v2
- uses: actions/setup-go@v4
with:
go-version: 1.18
- name: prepare changelog
Expand Down Expand Up @@ -43,23 +43,23 @@ jobs:
docker:
runs-on: ubuntu-latest
steps:
- uses: actions/setup-go@v2
- uses: actions/setup-go@v4
with:
go-version: 1.18
- uses: actions/checkout@v2
- uses: actions/checkout@v3
- name: Set up QEMU
uses: docker/setup-qemu-action@v1
uses: docker/setup-qemu-action@v2
- name: Set up Docker Buildx
uses: docker/setup-buildx-action@v2.0.0
uses: docker/setup-buildx-action@v2
with:
driver-opts: image=moby/buildkit:master
- name: Login to DockerHub
uses: docker/login-action@v1
uses: docker/login-action@v2
with:
username: '${{ secrets.DOCKER_USER }}'
password: '${{ secrets.DOCKER_TOKEN }}'
- name: Build and push to DockerHub
uses: docker/build-push-action@v3
uses: docker/build-push-action@v4
with:
push: true
platforms: |
Expand All @@ -74,7 +74,7 @@ jobs:
username: harbor
password: '${{ secrets.GHCR_TOKEN }}'
- name: Build and push go ghcr
uses: docker/build-push-action@v3
uses: docker/build-push-action@v4
with:
push: true
platforms: |
Expand Down
Loading