Skip to content

Commit

Permalink
test/e2e: enable Flatcar/Ignition tests
Browse files Browse the repository at this point in the history
Signed-off-by: Mateusz Gozdek <[email protected]>
  • Loading branch information
invidian committed Jul 12, 2022
1 parent e030c6c commit 6c1ee63
Show file tree
Hide file tree
Showing 2 changed files with 28 additions and 0 deletions.
25 changes: 25 additions & 0 deletions test/e2e/azure_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -275,6 +275,31 @@ var _ = Describe("Workload cluster creation", func() {
})
})

Context("Creating a Flatcar cluster [OPTIONAL]", func() {
It("With Flatcar control-plane and worker nodes", func() {
clusterName = getClusterName(clusterNamePrefix, "flatcar")

clusterctl.ApplyClusterTemplateAndWait(ctx, clusterctl.ApplyClusterTemplateAndWaitInput{
ClusterProxy: bootstrapClusterProxy,
ConfigCluster: clusterctl.ConfigClusterInput{
LogFolder: filepath.Join(artifactFolder, "clusters", bootstrapClusterProxy.GetName()),
ClusterctlConfigPath: clusterctlConfigPath,
KubeconfigPath: bootstrapClusterProxy.GetKubeconfigPath(),
InfrastructureProvider: clusterctl.DefaultInfrastructureProvider,
Flavor: "flatcar",
Namespace: namespace.Name,
ClusterName: clusterName,
KubernetesVersion: e2eConfig.GetVariable(capi_e2e.KubernetesVersion),
ControlPlaneMachineCount: pointer.Int64Ptr(1),
WorkerMachineCount: pointer.Int64Ptr(1),
},
WaitForClusterIntervals: e2eConfig.GetIntervals(specName, "wait-cluster"),
WaitForControlPlaneIntervals: e2eConfig.GetIntervals(specName, "wait-control-plane"),
WaitForMachineDeployments: e2eConfig.GetIntervals(specName, "wait-worker-nodes"),
}, result)
})
})

Context("Creating a ipv6 control-plane cluster [REQUIRED]", func() {
It("With ipv6 worker node", func() {
clusterName = getClusterName(clusterNamePrefix, "ipv6")
Expand Down
3 changes: 3 additions & 0 deletions test/e2e/config/azure-dev.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -137,6 +137,8 @@ providers:
targetName: "clusterclass-ci-default.yaml"
- sourcePath: "${PWD}/templates/test/ci/cluster-template-prow-topology.yaml"
targetName: "cluster-template-topology.yaml"
- sourcePath: "${PWD}/templates/test/ci/cluster-template-prow-flatcar.yaml"
targetName: "cluster-template-flatcar.yaml"
replacements:
- old: "--v=0"
new: "--v=2"
Expand All @@ -154,6 +156,7 @@ variables:
EXP_MACHINE_POOL: "true"
EXP_CLUSTER_RESOURCE_SET: "true"
CLUSTER_TOPOLOGY: "true"
EXP_KUBEADM_BOOTSTRAP_FORMAT_IGNITION: "true"
CONFORMANCE_WORKER_MACHINE_COUNT: "2"
CONFORMANCE_CONTROL_PLANE_MACHINE_COUNT: "${CONFORMANCE_CONTROL_PLANE_MACHINE_COUNT:-1}"
CONFORMANCE_IMAGE: "${CONFORMANCE_IMAGE:-}"
Expand Down

0 comments on commit 6c1ee63

Please sign in to comment.