@@ -21,10 +21,13 @@ package e2e
2121
2222import (
2323 . "github.com/onsi/ginkgo/v2"
24+ . "github.com/onsi/gomega"
2425 "k8s.io/utils/ptr"
26+
27+ "sigs.k8s.io/cluster-api/test/framework/kubernetesversions"
2528)
2629
27- var _ = Describe ("When testing K8S conformance [Conformance]" , func () {
30+ var _ = Describe ("When testing K8S conformance [Conformance] [K8s-Install] " , func () {
2831 K8SConformanceSpec (ctx , func () K8SConformanceSpecInput {
2932 return K8SConformanceSpecInput {
3033 E2EConfig : e2eConfig ,
@@ -35,3 +38,23 @@ var _ = Describe("When testing K8S conformance [Conformance]", func() {
3538 InfrastructureProvider : ptr .To ("docker" )}
3639 })
3740})
41+
42+ var _ = Describe ("When testing K8S conformance with K8S latest ci [Conformance] [K8s-Install-ci-latest]" , func () {
43+ K8SConformanceSpec (ctx , func () K8SConformanceSpecInput {
44+ kubernetesVersion , err := kubernetesversions .ResolveVersion (ctx , e2eConfig .Variables ["KUBERNETES_VERSION_LATEST_CI" ])
45+ Expect (err ).NotTo (HaveOccurred ())
46+
47+ // Kubernetes version has to be set as KUBERNETES_VERSION because the conformance test
48+ // expects it there.
49+ testSpecificE2EConfig := e2eConfig .DeepCopy ()
50+ e2eConfig .Variables ["KUBERNETES_VERSION" ] = kubernetesVersion
51+
52+ return K8SConformanceSpecInput {
53+ E2EConfig : testSpecificE2EConfig ,
54+ ClusterctlConfigPath : clusterctlConfigPath ,
55+ BootstrapClusterProxy : bootstrapClusterProxy ,
56+ ArtifactFolder : artifactFolder ,
57+ SkipCleanup : skipCleanup ,
58+ InfrastructureProvider : ptr .To ("docker" )}
59+ })
60+ })
0 commit comments