Skip to content
This repository was archived by the owner on Aug 12, 2025. It is now read-only.

Commit acc31ad

Browse files
committed
Add ldflags to e2e tests
Signed-off-by: Chris Privitere <[email protected]>
1 parent f3f8deb commit acc31ad

File tree

1 file changed

+2
-0
lines changed

1 file changed

+2
-0
lines changed

Makefile

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -148,6 +148,7 @@ E2E_DIR ?= $(REPO_ROOT)/test/e2e
148148
KUBETEST_CONF_PATH ?= $(abspath $(E2E_DIR)/data/kubetest/conformance.yaml)
149149
E2E_CONF_FILE_SOURCE ?= $(E2E_DIR)/config/packet-ci.yaml
150150
E2E_CONF_FILE ?= $(E2E_DIR)/config/packet-ci-envsubst.yaml
151+
E2E_LD_FLAGS ?= "-X 'sigs.k8s.io/cluster-api-provider-packet/pkg/cloud/packet.clientName=capp-e2e' -X 'sigs.k8s.io/cluster-api-provider-packet/pkg/cloud/packet.clientUAFormat=capp-e2e/%s %s'"
151152

152153
.PHONY: $(E2E_CONF_FILE)
153154
$(E2E_CONF_FILE): $(ENVSUBST) $(E2E_CONF_FILE_SOURCE)
@@ -159,6 +160,7 @@ run-e2e-tests: $(KUBECTL) $(KUSTOMIZE) $(KIND) $(GINKGO) $(E2E_CONF_FILE) e2e-te
159160
$(MAKE) set-manifest-image MANIFEST_IMG=$(REGISTRY)/$(IMAGE_NAME) MANIFEST_TAG=$(TAG)
160161
$(MAKE) set-manifest-pull-policy PULL_POLICY=IfNotPresent
161162
cd test/e2e; time $(GINKGO) -v -trace -progress -v -tags=e2e \
163+
-ldflags $(E2E_LD_FLAGS) \
162164
--randomizeAllSpecs -race $(GINKGO_ADDITIONAL_ARGS) \
163165
-focus=$(GINKGO_FOCUS) -skip=$(GINKGO_SKIP) \
164166
-nodes=$(GINKGO_NODES) --noColor=$(GINKGO_NOCOLOR) \

0 commit comments

Comments
 (0)