Skip to content

Commit 10781c5

Browse files
authored
Pin k8s image version in integration tests (#3461)
Previously, the integration tests would rely on the default k8s image version, which differs based on the version of kind we're using. This commit explicitly pins the image version such that 1) it's clear what version of k8s is in use, and 2) it's easily changed when needed. Signed-off-by: Evan Gilman <[email protected]>
1 parent e98f90e commit 10781c5

File tree

2 files changed

+4
-2
lines changed

2 files changed

+4
-2
lines changed

doc/supported_integrations.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -18,5 +18,5 @@ the last minor version that supports it (v1.16).
1818

1919
## Kubernetes
2020

21-
The SPIRE project currently supports Kubernetes 1.18 through 1.20. Later
21+
The SPIRE project currently supports Kubernetes 1.18 through 1.21. Later
2222
versions may also work but are not explicitly exercised by integration tests.

test/integration/common

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -203,12 +203,14 @@ download-kubectl() {
203203
}
204204

205205
start-kind-cluster() {
206+
K8SIMAGE=kindest/node:v1.21.1@sha256:fae9a58f17f18f06aeac9772ca8b5ac680ebbed985e266f711d936e91d113bad
207+
206208
local kind_path=$1
207209
local kind_name=$2
208210
local kind_config_path=$3
209211

210212
log-info "starting cluster..."
211-
"${kind_path}" create cluster --name "${kind_name}" --config "${kind_config_path}" || fail-now "unable to create cluster"
213+
"${kind_path}" create cluster --name "${kind_name}" --config "${kind_config_path}" --image "${K8SIMAGE}" || fail-now "unable to create cluster"
212214
}
213215

214216
load-images() {

0 commit comments

Comments
 (0)