Skip to content
Open
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
5 changes: 4 additions & 1 deletion .github/actions/run-integ-test/action.yml
Original file line number Diff line number Diff line change
Expand Up @@ -12,6 +12,9 @@ inputs:
serverImage:
description: "Override server image used in the test file"
required: false
networking:
description: "Set networking mode for kind cluster (default: ipv4)"
required: false

runs:
using: "composite"
Expand All @@ -36,7 +39,7 @@ runs:
- name: Create kind cluster
shell: bash
run: |
hack/cluster.sh
hack/cluster.sh ${{ inputs.networking }}
- name: Install gatekeeper rules
if: ${{ !env.SKIP_GATEKEEPER }}
shell: bash
Expand Down
49 changes: 41 additions & 8 deletions .github/workflows/kindIntegTest.yml
Original file line number Diff line number Diff line change
Expand Up @@ -90,7 +90,7 @@ jobs:
strategy:
matrix:
version:
- "4.0.17"
- "4.0.18"
integration_test:
- cdc_successful # OSS only
- config_fql
Expand Down Expand Up @@ -158,7 +158,7 @@ jobs:
strategy:
matrix:
version:
- "5.0.3"
- "5.0.5"
integration_test:
- canary_upgrade
- podspec_simple
Expand Down Expand Up @@ -191,7 +191,7 @@ jobs:
strategy:
matrix:
version:
- "5.0.3"
- "5.0.5"
integration_test:
# Single worker tests:
- additional_serviceoptions
Expand Down Expand Up @@ -268,9 +268,9 @@ jobs:
strategy:
matrix:
version:
- "4.0.17"
- "4.1.8"
- "5.0.3"
- "4.0.18"
- "4.1.9"
- "5.0.5"
- "6.8.54"
- "6.9.7"
# - "5.1.0"
Expand All @@ -284,10 +284,10 @@ jobs:
serverType: dse
# - version: 5.1.0
# serverImage: ghcr.io/k8ssandra/cass-management-api:5.1-nightly-latest
- version: 4.0.17
- version: 4.0.18
skipGatekeeper: true
exclude:
- version: 4.0.17
- version: 4.0.18
integration_test: "smoke_test_read_only_fs"
fail-fast: true
runs-on: ubuntu-latest
Expand Down Expand Up @@ -316,6 +316,39 @@ jobs:
with:
name: k8s-logs-smoke_test-${{ matrix.version }}
path: ./build/kubectl_dump
kind_smoke_ipv6_tests:
needs: build_docker_images
strategy:
matrix:
version:
- "5.0.5"
integration_test:
- test_all_the_things
fail-fast: true
runs-on: ubuntu-latest
env:
CGO_ENABLED: 0
M_INTEG_DIR: ${{ matrix.integration_test }}
M_SERVER_VERSION: ${{ matrix.version }}
M_SERVER_IMAGE: ${{ matrix.serverImage }}
M_SERVER_TYPE: ${{ matrix.serverType }}
steps:
- uses: actions/checkout@v4
if: github.event_name == 'pull_request'
with:
ref: ${{ github.event.pull_request.head.sha }}
- uses: actions/checkout@v4
if: github.event_name != 'pull_request'
- uses: ./.github/actions/run-integ-test
with:
integration_test: ${{ matrix.integration_test }}
networking: ipv6
- name: Archive k8s logs
if: ${{ failure() }}
uses: actions/upload-artifact@v4
with:
name: k8s-logs-smoke_test_ipv6-${{ matrix.version }}
path: ./build/kubectl_dump
kind_topolvm_tests:
name: TopoLVM kind installation with volumeExpansion
needs: build_docker_images
Expand Down
2 changes: 1 addition & 1 deletion config/imageconfig/image_config.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,7 @@ images:
k8ssandra-client:
repository: "k8ssandra"
name: "k8ssandra-client"
tag: "v0.8.3"
tag: "3d916941"
# pullSecret: "k8ssandra-client-pull-secret" # Use of pullSecret removes the default pullSecrets for this image
# pullPolicy: Always
# -- defaults are used when other no override is present for the configured image or image type. All these values can be overridden under any image or image type.
Expand Down
33 changes: 33 additions & 0 deletions hack/cluster.sh
Original file line number Diff line number Diff line change
@@ -1,6 +1,38 @@
#!/bin/sh
set -o errexit

usage() {
cat <<'EOF'
Usage: hack/cluster.sh [ipv4|ipv6|dual]

Creates a kind cluster with an optional networking mode.
EOF
}

IP_FAMILY="${1:-ipv4}"
case "${IP_FAMILY}" in
ipv4|ipv6|dual)
;;
-h|--help)
usage
exit 0
;;
*)
usage
exit 1
;;
esac

NETWORKING_CONFIG=""
if [ "${IP_FAMILY}" != "ipv4" ]; then
NETWORKING_CONFIG="networking:
ipFamily: ${IP_FAMILY}"
if [ "$(uname -s)" = "Darwin" ]; then
NETWORKING_CONFIG="${NETWORKING_CONFIG}
apiServerAddress: 127.0.0.1"
fi
fi

# 1. Create registry container unless it already exists
reg_name='kind-registry'
reg_port='5001'
Expand All @@ -25,6 +57,7 @@ containerdConfigPatches:
- |-
[plugins."io.containerd.grpc.v1.cri".registry]
config_path = "/etc/containerd/certs.d"
$(if [ -n "${NETWORKING_CONFIG}" ]; then printf '%s\n' "${NETWORKING_CONFIG}"; fi)
nodes:
- role: control-plane
- role: worker
Expand Down
Loading