Skip to content

Commit 10cd48f

Browse files
committed
test/e2e: cleanup test files
Signed-off-by: Stefan Büringer [email protected]
1 parent 16b345f commit 10cd48f

File tree

14 files changed

+69
-606
lines changed

14 files changed

+69
-606
lines changed

.gitignore

Lines changed: 0 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -13,9 +13,6 @@ hack/tools/bin
1313
# E2E test templates
1414
test/e2e/data/infrastructure-docker/**/cluster-template*.yaml
1515

16-
# E2e test extension deployment
17-
test/e2e/data/test-extension/deployment.yaml
18-
1916
# Output of Makefile targets using sed on MacOS systems
2017
*.yaml-e
2118

Makefile

Lines changed: 2 additions & 14 deletions
Original file line numberDiff line numberDiff line change
@@ -472,7 +472,7 @@ generate-modules: ## Run go mod tidy to ensure modules are up to date
472472
cd $(TEST_DIR); go mod tidy
473473

474474
.PHONY: generate-e2e-templates
475-
generate-e2e-templates: $(KUSTOMIZE) $(addprefix generate-e2e-templates-, v0.3 v0.4 v1.0 v1.2 v1.3 v1.4 main) ## Generate cluster templates for all versions
475+
generate-e2e-templates: $(KUSTOMIZE) $(addprefix generate-e2e-templates-, v0.3 v0.4 v1.0 v1.3 v1.4 main) ## Generate cluster templates for all versions
476476

477477
DOCKER_TEMPLATES := test/e2e/data/infrastructure-docker
478478

@@ -488,11 +488,6 @@ generate-e2e-templates-v0.4: $(KUSTOMIZE)
488488
generate-e2e-templates-v1.0: $(KUSTOMIZE)
489489
$(KUSTOMIZE) build $(DOCKER_TEMPLATES)/v1.0/cluster-template --load-restrictor LoadRestrictionsNone > $(DOCKER_TEMPLATES)/v1.0/cluster-template.yaml
490490

491-
.PHONY: generate-e2e-templates-v1.2
492-
generate-e2e-templates-v1.2: $(KUSTOMIZE)
493-
$(KUSTOMIZE) build $(DOCKER_TEMPLATES)/v1.2/cluster-template --load-restrictor LoadRestrictionsNone > $(DOCKER_TEMPLATES)/v1.2/cluster-template.yaml
494-
$(KUSTOMIZE) build $(DOCKER_TEMPLATES)/v1.2/cluster-template-topology --load-restrictor LoadRestrictionsNone > $(DOCKER_TEMPLATES)/v1.2/cluster-template-topology.yaml
495-
496491
.PHONY: generate-e2e-templates-v1.3
497492
generate-e2e-templates-v1.3: $(KUSTOMIZE)
498493
$(KUSTOMIZE) build $(DOCKER_TEMPLATES)/v1.3/cluster-template --load-restrictor LoadRestrictionsNone > $(DOCKER_TEMPLATES)/v1.3/cluster-template.yaml
@@ -522,11 +517,6 @@ generate-e2e-templates-main: $(KUSTOMIZE)
522517
$(KUSTOMIZE) build $(DOCKER_TEMPLATES)/main/cluster-template-topology --load-restrictor LoadRestrictionsNone > $(DOCKER_TEMPLATES)/main/cluster-template-topology.yaml
523518
$(KUSTOMIZE) build $(DOCKER_TEMPLATES)/main/cluster-template-ignition --load-restrictor LoadRestrictionsNone > $(DOCKER_TEMPLATES)/main/cluster-template-ignition.yaml
524519

525-
.PHONY: generate-test-extension-deployment
526-
generate-test-extension-deployment: $(KUSTOMIZE)
527-
mkdir -p test/e2e/data/test-extension
528-
$(KUSTOMIZE) build test/extension/config/default > test/e2e/data/test-extension/deployment.yaml
529-
530520
.PHONY: generate-metrics-config
531521
generate-metrics-config: $(ENVSUBST_BIN) ## Generate ./hack/observability/kube-state-metrics/crd-config.yaml
532522
OUTPUT_FILE="${OBSERVABILITY_DIR}/kube-state-metrics/crd-config.yaml"; \
@@ -790,7 +780,7 @@ test-test-extension-junit: $(SETUP_ENVTEST) $(GOTESTSUM) ## Run unit and integra
790780
exit $$(cat $(ARTIFACTS)/junit.test_extension.exitcode)
791781

792782
.PHONY: test-e2e
793-
test-e2e: $(GINKGO) generate-e2e-templates generate-test-extension-deployment ## Run the end-to-end tests
783+
test-e2e: $(GINKGO) generate-e2e-templates ## Run the end-to-end tests
794784
$(GINKGO) -v --trace -poll-progress-after=$(GINKGO_POLL_PROGRESS_AFTER) \
795785
-poll-progress-interval=$(GINKGO_POLL_PROGRESS_INTERVAL) --tags=e2e --focus="$(GINKGO_FOCUS)" \
796786
$(_SKIP_ARGS) --nodes=$(GINKGO_NODES) --timeout=$(GINKGO_TIMEOUT) --no-color=$(GINKGO_NOCOLOR) \
@@ -920,8 +910,6 @@ release-manifests-dev: $(RELEASE_DIR) $(KUSTOMIZE) ## Build the development mani
920910
cd $(CAPD_DIR); $(KUSTOMIZE) build config/default > ../../../$(RELEASE_DIR)/infrastructure-components-development.yaml
921911
cp $(CAPD_DIR)/templates/* $(RELEASE_DIR)/
922912
cd $(TEST_EXTENSION_DIR); $(KUSTOMIZE) build config/default > ../../$(RELEASE_DIR)/runtime-extension-components-development.yaml
923-
cp $(CAPD_DIR)/templates/* $(RELEASE_DIR)/
924-
925913

926914
.PHONY: release-binaries
927915
release-binaries: ## Build the binaries to publish with a release

docs/release/release-tasks.md

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -98,17 +98,17 @@ This comes down to changing occurrences of the old version to the new version, e
9898
* v1beta1: `v1.0`, `v1.2`, `v1.3` (will change with each new release)
9999
2. Update providers in `docker.yaml`:
100100
1. Add a new `v1.3.0` entry.
101-
2. Remove providers that are not used anymore (for `v1.4` we don't have to remove any).
101+
2. Remove providers that are not used anymore in clusterctl upgrade tests.
102102
3. Change `v1.3.99` to `v1.4.99`.
103103
3. Adjust `metadata.yaml`'s:
104104
1. Create a new `v1.3` `metadata.yaml` (`test/e2e/data/shared/v1.3/metadata.yaml`) by copying
105105
`test/e2e/data/shared/main/metadata.yaml`
106106
2. Add the new release to the main `metadata.yaml` (`test/e2e/data/shared/main/metadata.yaml`).
107-
3. Remove old `metadata.yaml`'s that are not used anymore (for `v1.4` we don't have to remove any).
107+
3. Remove old `metadata.yaml`'s that are not used anymore in clusterctl upgrade tests.
108108
4. Adjust cluster templates in `test/e2e/data/infrastructure-docker`:
109109
1. Create a new `v1.3` folder. It should be created based on the `main` folder and only contain the templates
110110
we use in the clusterctl upgrade tests (as of today `cluster-template` and `cluster-template-topology`).
111-
2. Remove old folders that are not used anymore (for `v1.4` we don't have to remove any).
111+
2. Remove old folders that are not used anymore in clusterctl upgrade tests.
112112
5. Modify the test specs in `test/e2e/clusterctl_upgrade_test.go` (according to the versions we want to test described above).
113113
Please note that both `InitWithKubernetesVersion` and `WorkloadKubernetesVersion` should be the highest mgmt cluster version supported by the respective Cluster API version.
114114
2. Update `create-local-repository.py` and `tools/tilt-prepare/main.go`: `v1.3.99` => `v1.4.99`.

test/e2e/config/docker.yaml

Lines changed: 0 additions & 30 deletions
Original file line numberDiff line numberDiff line change
@@ -116,15 +116,6 @@ providers:
116116
new: --metrics-addr=:8080
117117
files:
118118
- sourcePath: "../data/shared/v1.0/metadata.yaml"
119-
- name: v1.2.12 # supported release in the v1beta1 series; this is used for v1beta1 --> main clusterctl upgrades test only.
120-
value: "https://github.com/kubernetes-sigs/cluster-api/releases/download/v1.2.12/bootstrap-components.yaml"
121-
type: "url"
122-
contract: v1beta1
123-
replacements:
124-
- old: --metrics-addr=127.0.0.1:8080
125-
new: --metrics-addr=:8080
126-
files:
127-
- sourcePath: "../data/shared/v1.2/metadata.yaml"
128119
- name: v1.3.6 # supported release in the v1beta1 series; this is used for v1beta1 --> main clusterctl upgrades test only.
129120
value: "https://github.com/kubernetes-sigs/cluster-api/releases/download/v1.3.6/bootstrap-components.yaml"
130121
type: "url"
@@ -181,15 +172,6 @@ providers:
181172
new: --metrics-addr=:8080
182173
files:
183174
- sourcePath: "../data/shared/v1.0/metadata.yaml"
184-
- name: v1.2.12 # supported release in the v1beta1 series; this is used for v1beta1 --> main clusterctl upgrades test only.
185-
value: "https://github.com/kubernetes-sigs/cluster-api/releases/download/v1.2.12/control-plane-components.yaml"
186-
type: "url"
187-
contract: v1beta1
188-
replacements:
189-
- old: --metrics-addr=127.0.0.1:8080
190-
new: --metrics-addr=:8080
191-
files:
192-
- sourcePath: "../data/shared/v1.2/metadata.yaml"
193175
- name: v1.3.6 # supported release in the v1beta1 series; this is used for v1beta1 --> main clusterctl upgrades test only.
194176
value: "https://github.com/kubernetes-sigs/cluster-api/releases/download/v1.3.6/control-plane-components.yaml"
195177
type: "url"
@@ -249,18 +231,6 @@ providers:
249231
files:
250232
- sourcePath: "../data/shared/v1.0/metadata.yaml"
251233
- sourcePath: "../data/infrastructure-docker/v1.0/cluster-template.yaml"
252-
- name: v1.2.12 # supported release in the v1beta1 series; this is used for v1beta1 --> main clusterctl upgrades test only.
253-
value: "https://github.com/kubernetes-sigs/cluster-api/releases/download/v1.2.12/infrastructure-components-development.yaml"
254-
type: "url"
255-
contract: v1beta1
256-
replacements:
257-
- old: --metrics-addr=127.0.0.1:8080
258-
new: --metrics-addr=:8080
259-
files:
260-
- sourcePath: "../data/shared/v1.2/metadata.yaml"
261-
- sourcePath: "../data/infrastructure-docker/v1.2/cluster-template.yaml"
262-
- sourcePath: "../data/infrastructure-docker/v1.2/cluster-template-topology.yaml"
263-
- sourcePath: "../data/infrastructure-docker/v1.2/clusterclass-quick-start.yaml"
264234
- name: v1.3.6 # supported release in the v1beta1 series; this is used for v1beta1 --> main clusterctl upgrades test only.
265235
value: "https://github.com/kubernetes-sigs/cluster-api/releases/download/v1.3.6/infrastructure-components-development.yaml"
266236
type: "url"

test/e2e/data/infrastructure-docker/v1.2/bases/cluster-with-kcp.yaml

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

test/e2e/data/infrastructure-docker/v1.2/bases/cluster-with-topology.yaml

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

test/e2e/data/infrastructure-docker/v1.2/bases/crs.yaml

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

test/e2e/data/infrastructure-docker/v1.2/bases/md.yaml

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

test/e2e/data/infrastructure-docker/v1.2/cluster-template-topology/kustomization.yaml

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

test/e2e/data/infrastructure-docker/v1.2/cluster-template/kustomization.yaml

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

0 commit comments

Comments
 (0)