Skip to content

Commit

Permalink
remove windows
Browse files Browse the repository at this point in the history
  • Loading branch information
joekr committed Feb 2, 2023
1 parent 58e1a28 commit a7e3567
Show file tree
Hide file tree
Showing 7 changed files with 0 additions and 263 deletions.
1 change: 0 additions & 1 deletion Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -253,7 +253,6 @@ generate-e2e-templates: $(KUSTOMIZE)
$(KUSTOMIZE) build $(OCI_TEMPLATES)/v1beta1/cluster-template-externally-managed-vcn --load-restrictor LoadRestrictionsNone > $(OCI_TEMPLATES)/v1beta1/cluster-template-externally-managed-vcn.yaml
$(KUSTOMIZE) build $(OCI_TEMPLATES)/v1beta1/cluster-template-machine-pool --load-restrictor LoadRestrictionsNone > $(OCI_TEMPLATES)/v1beta1/cluster-template-machine-pool.yaml
$(KUSTOMIZE) build $(OCI_TEMPLATES)/v1beta1/cluster-template-managed --load-restrictor LoadRestrictionsNone > $(OCI_TEMPLATES)/v1beta1/cluster-template-managed.yaml
$(KUSTOMIZE) build $(OCI_TEMPLATES)/v1beta1/cluster-template-windows-calico --load-restrictor LoadRestrictionsNone > $(OCI_TEMPLATES)/v1beta1/cluster-template-windows-calico.yaml

.PHONY: test-e2e-run
test-e2e-run: generate-e2e-templates $(GINKGO) $(ENVSUBST) ## Run e2e tests
Expand Down
1 change: 0 additions & 1 deletion scripts/ci-e2e.sh
Original file line number Diff line number Diff line change
Expand Up @@ -24,7 +24,6 @@ source "${REPO_ROOT}/hack/ensure-tags.sh"
: "${OCI_UPGRADE_IMAGE_ID:?Environment variable empty or not defined.}"
: "${OCI_ALTERNATIVE_REGION_IMAGE_ID:?Environment variable empty or not defined.}"
: OCI_MANAGED_NODE_IMAGE_ID
: OCI_WINDOWS_IMAGE_ID

export LOCAL_ONLY=${LOCAL_ONLY:-"true"}

Expand Down
156 changes: 0 additions & 156 deletions templates/cluster-template-windows-calico.yaml

This file was deleted.

50 changes: 0 additions & 50 deletions test/e2e/cluster_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -199,29 +199,6 @@ var _ = Describe("Workload cluster creation", func() {
validateOLImage(namespace.Name, clusterName)
})

It("Windows - With 1 Linux control-plane nodes and with 1 Windows worker nodes using Calico CNI", func() {
clusterName = getClusterName(clusterNamePrefix, "windows-calico")
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: "windows-calico",
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-windows-worker-nodes"),
}, result)
validateWindowsImage(namespace.Name, clusterName)
})

It("Cloud Provider OCI testing [PRBlocking]", func() {
clusterName = getClusterName(clusterNamePrefix, "ccm-testing")
clusterctl.ApplyClusterTemplateAndWait(ctx, clusterctl.ApplyClusterTemplateAndWaitInput{
Expand Down Expand Up @@ -983,33 +960,6 @@ func validateOLImage(nameSpace string, clusterName string) {
}
}

func validateWindowsImage(nameSpace string, clusterName string) {
lister := bootstrapClusterProxy.GetClient()
inClustersNamespaceListOption := client.InNamespace(nameSpace)
matchClusterListOption := client.MatchingLabels{
clusterv1.ClusterLabelName: clusterName,
}

machineList := &clusterv1.MachineList{}
Expect(lister.List(context.Background(), machineList, inClustersNamespaceListOption, matchClusterListOption)).
To(Succeed(), "Couldn't list machines for the cluster %q", clusterName)

Expect(len(machineList.Items)).To(Equal(2))
for _, machine := range machineList.Items {
if machine.Labels["os"] == "windows" {
instanceOcid := strings.Split(*machine.Spec.ProviderID, "//")[1]
Log(fmt.Sprintf("Instance OCID is %s", instanceOcid))
resp, err := computeClient.GetInstance(context.Background(), core.GetInstanceRequest{
InstanceId: common.String(instanceOcid),
})
Expect(err).NotTo(HaveOccurred())
instanceSourceDetails, ok := resp.SourceDetails.(core.InstanceSourceViaImageDetails)
Expect(ok).To(BeTrue())
Expect(*instanceSourceDetails.ImageId).To(Equal(os.Getenv("OCI_WINDOWS_IMAGE_ID")))
}
}
}

func getClusterName(prefix, specName string) string {
clusterName := os.Getenv("CLUSTER_NAME")
if clusterName == "" {
Expand Down
2 changes: 0 additions & 2 deletions test/e2e/config/e2e_conf.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -71,7 +71,6 @@ providers:
- sourcePath: "../data/infrastructure-oci/v1beta1/cluster-template-externally-managed-vcn.yaml"
- sourcePath: "../data/infrastructure-oci/v1beta1/cluster-template-machine-pool.yaml"
- sourcePath: "../data/infrastructure-oci/v1beta1/cluster-template-managed.yaml"
- sourcePath: "../data/infrastructure-oci/v1beta1/cluster-template-windows-calico.yaml"
- sourcePath: "../data/infrastructure-oci/v1beta1/metadata.yaml"

variables:
Expand Down Expand Up @@ -110,7 +109,6 @@ intervals:
default/wait-cluster: ["30m", "10s"]
default/wait-control-plane: ["30m", "10s"]
default/wait-worker-nodes: ["30m", "10s"]
default/wait-windows-worker-nodes: ["60m", "30s"]
default/wait-cluster-bare-metal: [ "60m", "10s" ]
default/wait-control-plane-bare-metal: [ "60m", "10s" ]
default/wait-worker-nodes-bare-metal: [ "60m", "10s" ]
Expand Down

This file was deleted.

This file was deleted.

0 comments on commit a7e3567

Please sign in to comment.