Skip to content

Commit fd12eb9

Browse files
author
Mario Valderrama
committed
Add e2e test case for image selector
Update e2e test base image to 1.30.7.
1 parent bb7f37b commit fd12eb9

File tree

4 files changed

+474
-1
lines changed

4 files changed

+474
-1
lines changed

test/e2e/capic_test.go

Lines changed: 15 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -121,3 +121,18 @@ var _ = Describe("Should be able to create a cluster with 1 control-plane using
121121
}
122122
})
123123
})
124+
125+
var _ = Describe("Running the workload cluster upgrade spec [K8s-Upgrade]", func() {
126+
capie2e.ClusterUpgradeConformanceSpec(ctx, func() capie2e.ClusterUpgradeConformanceSpecInput {
127+
return capie2e.ClusterUpgradeConformanceSpecInput{
128+
E2EConfig: e2eConfig,
129+
ClusterctlConfigPath: clusterctlConfigPath,
130+
BootstrapClusterProxy: bootstrapClusterProxy,
131+
ArtifactFolder: artifactFolder,
132+
SkipCleanup: skipCleanup,
133+
Flavor: ptr.To("image-selector"),
134+
PostNamespaceCreated: cloudEnv.createCredentialsSecretPNC,
135+
SkipConformanceTests: true,
136+
}
137+
})
138+
})

test/e2e/config/ionoscloud.yaml

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -65,12 +65,15 @@ providers:
6565
- sourcePath: "../../../metadata.yaml"
6666
- sourcePath: "../data/infrastructure-ionoscloud/cluster-template.yaml"
6767
- sourcePath: "../data/infrastructure-ionoscloud/cluster-template-ipam.yaml"
68+
- sourcePath: "../data/infrastructure-ionoscloud/cluster-template-image-selector.yaml"
6869
variables:
6970
# Default variables for the e2e test; those values could be overridden via env variables, thus
7071
# allowing the same e2e config file to be re-used in different Prow jobs e.g. each one with a K8s version permutation.
7172
# The following Kubernetes versions should be the latest versions with already published kindest/node images.
7273
# This avoids building node images in the default case which improves the test duration significantly.
73-
KUBERNETES_VERSION: "v1.29.2"
74+
KUBERNETES_VERSION: "${KUBERNETES_VERSION:-v1.30.7}"
75+
KUBERNETES_VERSION_UPGRADE_FROM: "${KUBERNETES_VERSION_UPGRADE_FROM:-v1.30.7}"
76+
KUBERNETES_VERSION_UPGRADE_TO: "${KUBERNETES_VERSION_UPGRADE_TO:-v1.31.3}"
7477
CNI: "./data/cni/calico.yaml"
7578
KUBETEST_CONFIGURATION: "./data/kubetest/conformance.yaml"
7679
CLUSTER_NAME: "e2e-cluster-${RANDOM}"

0 commit comments

Comments
 (0)