Skip to content

Commit

Permalink
Add e2e test case for image selector
Browse files Browse the repository at this point in the history
Update e2e test base image to 1.30.7.
  • Loading branch information
avorima committed Dec 5, 2024
1 parent bb7f37b commit db70fe3
Show file tree
Hide file tree
Showing 4 changed files with 474 additions and 1 deletion.
15 changes: 15 additions & 0 deletions test/e2e/capic_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -121,3 +121,18 @@ var _ = Describe("Should be able to create a cluster with 1 control-plane using
}
})
})

var _ = Describe("Running the workload cluster upgrade spec [K8s-Upgrade]", func() {
capie2e.ClusterUpgradeConformanceSpec(ctx, func() capie2e.ClusterUpgradeConformanceSpecInput {
return capie2e.ClusterUpgradeConformanceSpecInput{
E2EConfig: e2eConfig,
ClusterctlConfigPath: clusterctlConfigPath,
BootstrapClusterProxy: bootstrapClusterProxy,
ArtifactFolder: artifactFolder,
SkipCleanup: skipCleanup,
Flavor: ptr.To("image-selector"),
PostNamespaceCreated: cloudEnv.createCredentialsSecretPNC,
SkipConformanceTests: true,
}
})
})
5 changes: 4 additions & 1 deletion test/e2e/config/ionoscloud.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -65,12 +65,15 @@ providers:
- sourcePath: "../../../metadata.yaml"
- sourcePath: "../data/infrastructure-ionoscloud/cluster-template.yaml"
- sourcePath: "../data/infrastructure-ionoscloud/cluster-template-ipam.yaml"
- sourcePath: "../data/infrastructure-ionoscloud/cluster-template-image-selector.yaml"
variables:
# Default variables for the e2e test; those values could be overridden via env variables, thus
# allowing the same e2e config file to be re-used in different Prow jobs e.g. each one with a K8s version permutation.
# The following Kubernetes versions should be the latest versions with already published kindest/node images.
# This avoids building node images in the default case which improves the test duration significantly.
KUBERNETES_VERSION: "v1.29.2"
KUBERNETES_VERSION: "${KUBERNETES_VERSION:-1.30.7}"
KUBERNETES_VERSION_UPGRADE_FROM: "${KUBERNETES_VERSION_UPGRADE_FROM:-1.30.7}"
KUBERNETES_VERSION_UPGRADE_TO: "${KUBERNETES_VERSION_UPGRADE_TO:-1.31.3}"
CNI: "./data/cni/calico.yaml"
KUBETEST_CONFIGURATION: "./data/kubetest/conformance.yaml"
CLUSTER_NAME: "e2e-cluster-${RANDOM}"
Expand Down
Loading

0 comments on commit db70fe3

Please sign in to comment.