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

Helm test floor #5

Merged
merged 7 commits into from
Dec 16, 2022
Merged
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
28 changes: 26 additions & 2 deletions .github/workflows/helm.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -5,8 +5,7 @@ name: Add build automation for Helm Chart
# Controls when the workflow will run
on:
# Triggers the workflow on pull request events but only for the main branch
pull_request:
branches: [ master ]
workflow_dispatch

# This ensures that previous jobs for the PR are canceled when the PR is
# updated.
Expand Down Expand Up @@ -40,3 +39,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"
3 changes: 1 addition & 2 deletions .github/workflows/kubernetes-tests.yml
Original file line number Diff line number Diff line change
@@ -1,7 +1,6 @@
name: Tenant Tests On Kind
on:
pull_request:
branches: [ master ]
workflow_dispatch
concurrency:
group: ${{ github.workflow }}-${{ github.head_ref }}
cancel-in-progress: true
Expand Down
3 changes: 1 addition & 2 deletions .github/workflows/shellcheck.yaml
Original file line number Diff line number Diff line change
@@ -1,8 +1,7 @@
# Controls when the workflow will run
on:
# Triggers the workflow on pull request events but only for the main branch
pull_request:
branches: [ master ]
workflow_dispatch

name: 'Trigger: Push action'

Expand Down
7 changes: 1 addition & 6 deletions .github/workflows/vulncheck.yml
Original file line number Diff line number Diff line change
@@ -1,11 +1,6 @@
name: VulnCheck
on:
pull_request:
branches:
- master
push:
branches:
- master
workflow_dispatch
jobs:
vulncheck:
name: Analysis
Expand Down
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