Skip to content

Commit fd029bc

Browse files
committed
[E2E] Update CAPA version in tests
1 parent 3373251 commit fd029bc

File tree

6 files changed

+22
-20
lines changed

6 files changed

+22
-20
lines changed

test/e2e/data/e2e_conf.yaml

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -84,14 +84,14 @@ providers:
8484
- name: aws
8585
type: InfrastructureProvider
8686
versions:
87-
- name: v1.5.0 # latest published release in the v1beta1 series; this is used for v1beta1 --> v1beta2 clusterctl upgrades test only.
88-
value: "https://github.com/kubernetes-sigs/cluster-api-provider-aws/releases/download/v1.5.0/infrastructure-components.yaml"
87+
- name: v1.5.2 # latest published release in the v1beta1 series; this is used for v1beta1 --> v1beta2 clusterctl upgrades test only.
88+
value: "https://github.com/kubernetes-sigs/cluster-api-provider-aws/releases/download/v1.5.2/infrastructure-components.yaml"
8989
type: "url"
9090
contract: v1beta1
9191
files:
9292
- sourcePath: "./shared/v1beta1_provider/metadata.yaml"
9393
- sourcePath: "./infrastructure-aws/capi-upgrades/v1beta1/cluster-template.yaml"
94-
- name: v1.6.99
94+
- name: v2.0.99
9595
# Use manifest from source files
9696
value: ../../../config/default
9797
# Do not add contract field for v1beta1 --> v1beta2 clusterctl upgrades test to work.
@@ -142,9 +142,9 @@ variables:
142142
# allowing the same e2e config file to be re-used in different Prow jobs e.g. each one with a K8s version permutation.
143143
# The following Kubernetes versions should be the latest versions with already published kindest/node images.
144144
# This avoids building node images in the default case which improves the test duration significantly.
145-
KUBERNETES_VERSION_MANAGEMENT: "v1.24.0"
146-
KUBERNETES_VERSION: "v1.24.0"
147-
KUBERNETES_VERSION_UPGRADE_TO: "v1.24.0"
145+
KUBERNETES_VERSION_MANAGEMENT: "v1.24.4"
146+
KUBERNETES_VERSION: "v1.24.4"
147+
KUBERNETES_VERSION_UPGRADE_TO: "v1.24.4"
148148
KUBERNETES_VERSION_UPGRADE_FROM: "v1.23.6"
149149
# Pre and post 1.23 Kubernetes versions are being used for CSI upgrade tests
150150
PRE_1_23_KUBERNETES_VERSION: "v1.22.4"

test/e2e/data/e2e_eks_conf.yaml

Lines changed: 7 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -80,7 +80,7 @@ providers:
8080
- name: aws
8181
type: InfrastructureProvider
8282
versions:
83-
- name: v1.6.99
83+
- name: v2.0.99
8484
# Use manifest from source files
8585
value: ../../../config/default
8686
contract: v1beta1
@@ -116,8 +116,8 @@ providers:
116116
targetName: "cluster-template-eks-control-plane-only-legacy.yaml"
117117

118118
variables:
119-
KUBERNETES_VERSION: "v1.22.9"
120-
KUBERNETES_VERSION_MANAGEMENT: "v1.22.9" # Kind bootstrap
119+
KUBERNETES_VERSION: "v1.24.4"
120+
KUBERNETES_VERSION_MANAGEMENT: "v1.24.4" # Kind bootstrap
121121
EXP_MACHINE_POOL: "true"
122122
EXP_CLUSTER_RESOURCE_SET: "true"
123123
EVENT_BRIDGE_INSTANCE_STATE: "true"
@@ -126,10 +126,10 @@ variables:
126126
AWS_SSH_KEY_NAME: "cluster-api-provider-aws-sigs-k8s-io"
127127
EXP_EKS_IAM: "false"
128128
EXP_EKS_ADD_ROLES: "false"
129-
VPC_ADDON_VERSION: "v1.11.0-eksbuild.1"
130-
COREDNS_ADDON_VERSION: "v1.8.7-eksbuild.1"
131-
KUBE_PROXY_ADDON_VERSION: "v1.22.6-eksbuild.1"
132-
CONFORMANCE_CI_ARTIFACTS_KUBERNETES_VERSION: "1.22.9"
129+
VPC_ADDON_VERSION: "v1.11.4-eksbuild.1"
130+
COREDNS_ADDON_VERSION: "v1.8.7-eksbuild.3"
131+
KUBE_PROXY_ADDON_VERSION: "v1.24.7-eksbuild.2"
132+
CONFORMANCE_CI_ARTIFACTS_KUBERNETES_VERSION: "1.24.4"
133133
AUTO_CONTROLLER_IDENTITY_CREATOR: "false"
134134
IP_FAMILY: "IPv4"
135135
CAPA_LOGLEVEL: "4"

test/e2e/data/shared/v1beta2_provider/metadata.yaml

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -38,3 +38,6 @@ releaseSeries:
3838
- major: 1
3939
minor: 6
4040
contract: v1beta1
41+
- major: 2
42+
minor: 0
43+
contract: v1beta1

test/e2e/suites/managed/cluster.go

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -101,8 +101,6 @@ func ManagedClusterSpec(ctx context.Context, inputGetter func() ManagedClusterSp
101101
verifySecretExists(ctx, fmt.Sprintf("%s-kubeconfig", input.ClusterName), input.Namespace.Name, bootstrapClient)
102102
verifySecretExists(ctx, fmt.Sprintf("%s-user-kubeconfig", input.ClusterName), input.Namespace.Name, bootstrapClient)
103103

104-
time.Sleep(2 * time.Minute) //TODO: replace with an eventually on the aws-iam-auth check
105-
106104
shared.Byf("Checking that aws-iam-authenticator config map exists")
107105
workloadClusterProxy := input.BootstrapClusterProxy.GetWorkloadCluster(ctx, input.Namespace.Name, input.ClusterName)
108106
workloadClient := workloadClusterProxy.GetClient()

test/e2e/suites/managed/helpers.go

Lines changed: 4 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -22,6 +22,7 @@ package managed
2222
import (
2323
"context"
2424
"fmt"
25+
"time"
2526

2627
"github.com/aws/aws-sdk-go/aws"
2728
"github.com/aws/aws-sdk-go/aws/client"
@@ -118,9 +119,9 @@ func verifySecretExists(ctx context.Context, secretName, namespace string, k8scl
118119

119120
func verifyConfigMapExists(ctx context.Context, name, namespace string, k8sclient crclient.Client) {
120121
cm := &corev1.ConfigMap{}
121-
err := k8sclient.Get(ctx, apimachinerytypes.NamespacedName{Name: name, Namespace: namespace}, cm)
122-
123-
Expect(err).ShouldNot(HaveOccurred())
122+
Eventually(func() error {
123+
return k8sclient.Get(ctx, apimachinerytypes.NamespacedName{Name: name, Namespace: namespace}, cm)
124+
}, 2*time.Minute, 5*time.Second).Should(Succeed())
124125
}
125126

126127
func VerifyRoleExistsAndOwned(roleName string, eksClusterName string, checkOwned bool, sess client.ConfigProvider) {

test/e2e/suites/managed/upgrade_test.go

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -36,8 +36,8 @@ import (
3636
// EKS cluster upgrade tests.
3737
var _ = ginkgo.Describe("EKS Cluster upgrade test", func() {
3838
const (
39-
initialVersion = "v1.21.0"
40-
upgradeToVersion = "v1.22.0"
39+
initialVersion = "v1.22.4"
40+
upgradeToVersion = "v1.24.4"
4141
)
4242
var (
4343
namespace *corev1.Namespace

0 commit comments

Comments
 (0)