Skip to content

Commit 5f8e106

Browse files
sedefsavasAnkitasw
authored andcommitted
Enable clusterctl upgrade test
1 parent f12e837 commit 5f8e106

File tree

6 files changed

+10
-7
lines changed

6 files changed

+10
-7
lines changed

Makefile

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -213,6 +213,10 @@ generate-go-apis: ## Alias for .build/generate-go-apis
213213
paths=./bootstrap/eks/api/... \
214214
paths=./controlplane/eks/api/... \
215215
paths=./iam/api/... \
216+
paths=./controllers/... \
217+
paths=./$(EXP_DIR)/controllers/... \
218+
paths=./bootstrap/eks/controllers/... \
219+
paths=./controlplane/eks/controllers/... \
216220
output:crd:dir=config/crd/bases \
217221
object:headerFile=./hack/boilerplate/boilerplate.generatego.txt \
218222
crd:crdVersions=v1 \

api/v1beta1/awscluster_conversion.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
/*
2-
Copyright 2021 The Kubernetes Authors.
2+
Copyright 2022 The Kubernetes Authors.
33
44
Licensed under the Apache License, Version 2.0 (the "License");
55
you may not use this file except in compliance with the License.

api/v1beta1/awsidentity_conversion.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
/*
2-
Copyright 2021 The Kubernetes Authors.
2+
Copyright 2022 The Kubernetes Authors.
33
44
Licensed under the Apache License, Version 2.0 (the "License");
55
you may not use this file except in compliance with the License.

api/v1beta1/awsmachine_conversion.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
/*
2-
Copyright 2021 The Kubernetes Authors.
2+
Copyright 2022 The Kubernetes Authors.
33
44
Licensed under the Apache License, Version 2.0 (the "License");
55
you may not use this file except in compliance with the License.

test/e2e/data/e2e_conf.yaml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -84,7 +84,7 @@ providers:
8484
- name: aws
8585
type: InfrastructureProvider
8686
versions:
87-
- name: v1.5.0 # latest published release in the v1alpha4 series; this is used for v1beta1 --> v1beta2 clusterctl upgrades test only.
87+
- name: v1.5.0 # latest published release in the v1beta1 series; this is used for v1beta1 --> v1beta2 clusterctl upgrades test only.
8888
value: "https://github.com/kubernetes-sigs/cluster-api-provider-aws/releases/download/v1.5.0/infrastructure-components.yaml"
8989
type: "url"
9090
contract: v1beta1
@@ -94,7 +94,7 @@ providers:
9494
- name: v1.6.99
9595
# Use manifest from source files
9696
value: ../../../config/default
97-
contract: v1beta1
97+
# Do not add contract field for v1beta1 --> v1beta2 clusterctl upgrades test to work.
9898
files:
9999
- sourcePath: "./infrastructure-aws/generated/cluster-template-efs-support.yaml"
100100
- sourcePath: "./infrastructure-aws/generated/cluster-template-external-csi.yaml"

test/e2e/suites/unmanaged/unmanaged_CAPI_test.go

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -110,8 +110,7 @@ var _ = ginkgo.Context("[unmanaged] [Cluster API Framework]", func() {
110110
})
111111
})
112112

113-
// TODO: clusterctl init uses v1beta2, this needs to be fixed.
114-
ginkgo.PDescribe("Clusterctl Upgrade Spec [from latest v1beta1 release to v1beta2]", func() {
113+
ginkgo.Describe("Clusterctl Upgrade Spec [from latest v1beta1 release to v1beta2]", func() {
115114
ginkgo.BeforeEach(func() {
116115
// As the resources cannot be defined by the It() clause in CAPI tests, using the largest values required for all It() tests in this CAPI test.
117116
requiredResources = &shared.TestResource{EC2Normal: 5 * e2eCtx.Settings.InstanceVCPU, IGW: 2, NGW: 2, VPC: 2, ClassicLB: 2, EIP: 2}

0 commit comments

Comments
 (0)