Skip to content

Commit a5b5753

Browse files
author
Rahul Sharma
committed
convert e2e tests to chainsaw tests
1 parent 5426f27 commit a5b5753

File tree

66 files changed

+3297
-2759
lines changed

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

66 files changed

+3297
-2759
lines changed

.chainsaw.yaml

Lines changed: 12 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,12 @@
1+
# yaml-language-server: $schema=https://raw.githubusercontent.com/kyverno/chainsaw/main/.schemas/json/configuration-chainsaw-v1alpha1.json
2+
apiVersion: chainsaw.kyverno.io/v1alpha1
3+
kind: Configuration
4+
metadata:
5+
name: configuration
6+
spec:
7+
timeouts:
8+
assert: 5m0s
9+
cleanup: 5m0s
10+
delete: 5m0s
11+
error: 5m0s
12+
exec: 5m0s

Makefile

Lines changed: 8 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -24,6 +24,7 @@ LINODE_FIREWALL_ENABLED ?= true
2424
LINODE_REGION ?= us-lax
2525
LINODE_OS ?= linode/ubuntu22.04
2626
KUBECONFIG_PATH ?= $(CURDIR)/test-cluster-kubeconfig.yaml
27+
MGMT_KUBECONFIG_PATH ?= $(CURDIR)/mgmt-cluster-kubeconfig.yaml
2728

2829
# if the $DEVBOX_PACKAGES_DIR env variable exists that means we are within a devbox shell and can safely
2930
# use devbox's bin for our tools
@@ -176,6 +177,7 @@ mgmt-cluster:
176177
--core cluster-api:$(CAPI_VERSION) \
177178
--addon helm:$(CAAPH_VERSION) \
178179
--infrastructure linode-linode:$(CAPL_VERSION)
180+
kind get kubeconfig --name=caplccm > $(MGMT_KUBECONFIG_PATH)
179181

180182
.PHONY: cleanup-cluster
181183
cleanup-cluster:
@@ -186,7 +188,12 @@ cleanup-cluster:
186188

187189
.PHONY: e2e-test
188190
e2e-test:
189-
$(MAKE) -C e2e test LINODE_API_TOKEN=$(LINODE_TOKEN) SUITE_ARGS="--region=$(LINODE_REGION) --use-existing --timeout=5m --kubeconfig=$(KUBECONFIG_PATH) --image=$(IMG) --linode-url https://api.linode.com/"
191+
CLUSTER_NAME=$(CLUSTER_NAME) \
192+
MGMT_KUBECONFIG=$(MGMT_KUBECONFIG_PATH) \
193+
KUBECONFIG=$(KUBECONFIG_PATH) \
194+
REGION=$(LINODE_REGION) \
195+
LINODE_TOKEN=$(LINODE_TOKEN) \
196+
chainsaw test e2e/test
190197

191198
#####################################################################
192199
# OS / ARCH

e2e/Makefile

Lines changed: 0 additions & 34 deletions
This file was deleted.

e2e/README.md

Lines changed: 0 additions & 4 deletions
This file was deleted.

e2e/go.mod

Lines changed: 0 additions & 77 deletions
This file was deleted.

0 commit comments

Comments
 (0)