Skip to content

Commit

Permalink
Add new job to test Kubernetes 1.21 (#1304)
Browse files Browse the repository at this point in the history
  • Loading branch information
dilverse committed Dec 16, 2022
1 parent 4f12e47 commit 687fcf1
Show file tree
Hide file tree
Showing 3 changed files with 44 additions and 1 deletion.
25 changes: 25 additions & 0 deletions .github/workflows/helm.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -40,3 +40,28 @@ jobs:
chmod +x kubectl
mv kubectl /usr/local/bin
"${GITHUB_WORKSPACE}/testing/check-helm.sh"
build-floor:
# The type of runner that the job will run on
runs-on: ${{ matrix.os }}
strategy:
matrix:
go-version: [1.18.x]
os: [ubuntu-latest]

# Steps represent a sequence of tasks that will be executed as part of the job
steps:
# Checks-out your repository under $GITHUB_WORKSPACE, so your job can access it
- uses: actions/checkout@v2
- uses: actions/setup-go@v2
with:
go-version: ${{ matrix.go-version }}

# Runs a set of commands using the runners shell
- name: Deploy a MinIO Tenant on Kind
env:
TEST_FLOOR: true
run: |
curl -sLO "https://dl.k8s.io/release/v1.23.1/bin/linux/amd64/kubectl" -o kubectl
chmod +x kubectl
mv kubectl /usr/local/bin
"${GITHUB_WORKSPACE}/testing/check-helm.sh"
6 changes: 5 additions & 1 deletion testing/common.sh
Original file line number Diff line number Diff line change
Expand Up @@ -40,7 +40,11 @@ die() {
try() { "$@" || die "cannot $*"; }

function setup_kind() {
try kind create cluster --config "${SCRIPT_DIR}/kind-config.yaml"
if [ "$TEST_FLOOR" = "true" ]; then
try kind create cluster --config "${SCRIPT_DIR}/kind-config-floor.yaml"
else
try kind create cluster --config "${SCRIPT_DIR}/kind-config.yaml"
fi
echo "Kind is ready"
try kubectl get nodes
}
Expand Down
14 changes: 14 additions & 0 deletions testing/kind-config-floor.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,14 @@
# four node (two workers) cluster config
kind: Cluster
apiVersion: kind.x-k8s.io/v1alpha4
nodes:
- role: control-plane
image: kindest/node:v1.21.14
- role: worker
image: kindest/node:v1.21.14
- role: worker
image: kindest/node:v1.21.14
- role: worker
image: kindest/node:v1.21.14
- role: worker
image: kindest/node:v1.21.14

0 comments on commit 687fcf1

Please sign in to comment.