Skip to content

Commit

Permalink
ci: renovate use kindest/node instead of kubernetes (#1182)
Browse files Browse the repository at this point in the history
  • Loading branch information
pmalek authored Nov 29, 2024
1 parent 6510665 commit 83014d8
Show file tree
Hide file tree
Showing 3 changed files with 18 additions and 13 deletions.
18 changes: 11 additions & 7 deletions .github/workflows/release-pr.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,7 @@ on:
- release/kong-2.x
- release/kong-3.x
- prepare-kgo-chart
workflow_dispatch: {}
workflow_dispatch: {}

env:
# Specify this here because these tests rely on ktf to run kind for cluster creation.
Expand Down Expand Up @@ -42,6 +42,9 @@ jobs:
runs-on: ubuntu-latest
strategy:
matrix:
kubernetes-version:
# renovate: datasource=docker depName=kindest/node
- "1.31.0"
chart-name:
- kong
- ingress
Expand Down Expand Up @@ -90,17 +93,17 @@ jobs:
strategy:
matrix:
kubernetes-version:
# renovate: datasource=github-tags depName=kubernetes/kubernetes
# renovate: datasource=docker depName=kindest/node
- "1.26.15"
# renovate: datasource=github-tags depName=kubernetes/kubernetes
# renovate: datasource=docker depName=kindest/node
- "1.27.13"
# renovate: datasource=github-tags depName=kubernetes/kubernetes
# renovate: datasource=docker depName=kindest/node
- "1.28.9"
# renovate: datasource=github-tags depName=kubernetes/kubernetes
# renovate: datasource=docker depName=kindest/node
- "1.29.4"
# renovate: datasource=github-tags depName=kubernetes/kubernetes
# renovate: datasource=docker depName=kindest/node
- "1.30.0"
# renovate: datasource=github-tags depName=kubernetes/kubernetes
# renovate: datasource=docker depName=kindest/node
- "1.31.0"
chart-name:
- kong
Expand Down Expand Up @@ -156,6 +159,7 @@ jobs:

- name: setup testing environment (kind-cluster)
env:
KUBERNETES_VERSION: "1.29.2"
CHART_NAME: ${{ matrix.chart-name }}
run: ./scripts/test-env.sh

Expand Down
6 changes: 3 additions & 3 deletions renovate.json
Original file line number Diff line number Diff line change
Expand Up @@ -34,17 +34,17 @@
],
"enabled": false,
"matchDepNames": [
"kubernetes/kubernetes"
"kindest/node"
]
},
{
"description": "Group Kubernetes updates together.",
"matchUpdateTypes": [
"patch"
],
"groupName": "kubernetes/kubernetes",
"groupName": "kindest/node",
"matchDepNames": [
"kubernetes/kubernetes"
"kindest/node"
]
}
]
Expand Down
7 changes: 4 additions & 3 deletions scripts/test-env.sh
Original file line number Diff line number Diff line change
Expand Up @@ -30,14 +30,15 @@ set -euo pipefail

SCRIPT_DIR="$( cd "$( dirname "${BASH_SOURCE[0]}" )" &> /dev/null && pwd )"
cd "${SCRIPT_DIR}/.."
KIND_VERSION="${KIND_VERSION:-v0.22.0}"
KUBERNETES_VERSION="${KUBERNETES_VERSION:-1.29.2}"
GATEWAY_API_VERSION="${GATEWAY_API_VERSION:-v1.0.0}"
CHART_NAME="${CHART_NAME:-ingress}"
OS="$(uname -s | tr '[:upper:]' '[:lower:]')"
ARCH="$(uname -m | sed 's/x86_64/amd64/' | sed 's/aarch64/arm64/')"
KTF_URL=https://github.com/Kong/kubernetes-testing-framework/releases/latest/download/ktf.${OS}.${ARCH}

[[ -z ${KUBERNETES_VERSION} ]] && echo "ERROR: KUBERNETES_VERSION is not set" && exit 1
[[ -z ${KIND_VERSION} ]] && echo "ERROR: KIND_VERSION is not set" && exit 1

# ------------------------------------------------------------------------------
# Setup Tools - Docker
# ------------------------------------------------------------------------------
Expand All @@ -59,7 +60,7 @@ docker info 1>/dev/null
# ensure kind command is accessible
if ! command -v kind &> /dev/null
then
go install sigs.k8s.io/kind@"${KIND_VERSION}"
go install sigs.k8s.io/kind@v"${KIND_VERSION}"
fi

# ensure kind is functional
Expand Down

0 comments on commit 83014d8

Please sign in to comment.