Skip to content

Commit 890ede2

Browse files
committed
Merge branch 'main' into support-security-context
2 parents 0aea643 + 2b2b470 commit 890ede2

File tree

2 files changed

+9
-7
lines changed

2 files changed

+9
-7
lines changed

Makefile

Lines changed: 7 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -11,6 +11,7 @@ VERSION := latest
1111
CRD_OPTIONS ?= "crd:trivialVersions=true,preserveUnknownFields=false"
1212
KIND_CLUSTER_NAME ?= "gatling-cluster"
1313
K8S_NODE_IMAGE ?= v1.21.10
14+
ENVTEST_K8S_VERSION ?= 1.30.0
1415

1516
# Get the currently used golang install path (in GOPATH/bin, unless GOBIN is set)
1617
ifeq (,$(shell go env GOBIN))
@@ -25,7 +26,6 @@ endif
2526
SHELL = /usr/bin/env bash -o pipefail
2627
.SHELLFLAGS = -ec
2728

28-
ENVTEST_ASSETS_DIR=$(shell pwd)/testbin
2929
KIND_CLUSTER_CONFIG_DIR=$(shell pwd)/config/kind
3030
KUBECONFIG_BACKUP_DIR=$(shell pwd)/.kube
3131

@@ -81,10 +81,8 @@ fmt: ## Run go fmt against code.
8181
vet: ## Run go vet against code.
8282
go vet ./...
8383

84-
test: manifests generate fmt vet ## Run tests.
85-
mkdir -p ${ENVTEST_ASSETS_DIR}
86-
test -f ${ENVTEST_ASSETS_DIR}/setup-envtest.sh || curl -sSLo ${ENVTEST_ASSETS_DIR}/setup-envtest.sh https://raw.githubusercontent.com/kubernetes-sigs/controller-runtime/v0.8.3/hack/setup-envtest.sh
87-
source ${ENVTEST_ASSETS_DIR}/setup-envtest.sh; fetch_envtest_tools $(ENVTEST_ASSETS_DIR); setup_envtest_env $(ENVTEST_ASSETS_DIR); go test ./... -coverprofile cover.out
84+
test: manifests generate fmt vet setup-envtest ## Run tests.
85+
KUBEBUILDER_ASSETS="$(shell $(ENVTEST) use -p path $(ENVTEST_K8S_VERSION))" go test ./... -coverprofile cover.out
8886

8987
##@ Build
9088

@@ -148,6 +146,10 @@ CRD_REF_DOCS = $(shell pwd)/bin/crd-ref-docs
148146
crd-ref-docs: ## Download crd-ref-docs locally if necessary.
149147
$(call go-install-tool,$(CRD_REF_DOCS),github.com/elastic/crd-ref-docs@master)
150148

149+
ENVTEST = $(shell pwd)/bin/setup-envtest
150+
setup-envtest: ## Download setup-envtest locally if necessary.
151+
$(call go-install-tool,$(ENVTEST),sigs.k8s.io/controller-runtime/tools/setup-envtest@latest)
152+
151153
# go-install-tool will 'go get' any package $2 and install it to $1.
152154
PROJECT_DIR := $(shell dirname $(abspath $(lastword $(MAKEFILE_LIST))))
153155
define go-install-tool

gatling/Dockerfile

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,7 @@
33
#
44
# Gatling is a highly capable load testing tool.
55

6-
FROM openjdk:17-jdk-slim-bullseye
6+
FROM openjdk:21-jdk-slim-bullseye
77

88
# create user/group
99
RUN groupadd -g 1000 gatling && \
@@ -13,7 +13,7 @@ RUN groupadd -g 1000 gatling && \
1313
WORKDIR /opt
1414

1515
# gating version
16-
ENV GATLING_VERSION 3.9.5
16+
ENV GATLING_VERSION 3.10.5
1717

1818
# create directory for gatling install
1919
RUN mkdir -p gatling

0 commit comments

Comments
 (0)