Skip to content

Commit

Permalink
update circleci e2e tests linux image
Browse files Browse the repository at this point in the history
Updates the Ubuntu image because of deprecation warnings.
Includes additional fixes to work with the new Ubuntu image.
  • Loading branch information
pgier committed Feb 24, 2024
1 parent a6e2cfb commit af0026b
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 6 deletions.
4 changes: 2 additions & 2 deletions .circleci/config.yml
Original file line number Diff line number Diff line change
Expand Up @@ -26,7 +26,7 @@ jobs:
k8s-version:
type: string
machine:
image: ubuntu-2004:202107-02
image: ubuntu-2204:2024.01.1
steps:
- checkout
- run:
Expand All @@ -45,4 +45,4 @@ workflows:
- lint-charts
matrix:
parameters:
k8s-version: ["v1.18.20", "v1.21.10", "v1.23.5"]
k8s-version: ["v1.26.14", "v1.27.11", "v1.28.7"]
9 changes: 5 additions & 4 deletions tests/e2e-kind.sh
Original file line number Diff line number Diff line change
Expand Up @@ -4,10 +4,11 @@ CI="${CI:-false}"
set -o errexit
set -o nounset
set -o pipefail
set -x

readonly CT_VERSION=latest
readonly KIND_VERSION=v0.11.1
: "${K8S_VERSION:=v1.21.2}"
readonly KIND_VERSION=v0.22.0
: "${K8S_VERSION:=v1.28.7}"

readonly CLUSTER_NAME=pulsar-helm-test

Expand All @@ -17,7 +18,7 @@ run_ct_container() {
docker run --rm --interactive --detach --network host --name ct \
--volume "$(pwd):/workdir" \
--workdir /workdir \
--user 1000 \
--user "$(id -u):$(id -g)" \
--env HOME=/workdir \
"quay.io/helmpack/chart-testing:$CT_VERSION" \
cat
Expand All @@ -34,7 +35,7 @@ cleanup() {

# Set the user so that it properly owns the git repo
docker_exec() {
docker exec --user 1000 --interactive ct "$@"
docker exec --user "$(id -u):$(id -g)" --interactive ct "$@"
}

create_kind_cluster() {
Expand Down

0 comments on commit af0026b

Please sign in to comment.