Skip to content

Commit ea29af3

Browse files
authored
Merge pull request #5272 from nojnhuh/azure-cni-conflict
fix conflict on azure-cni daemonset in AKS e2e
2 parents 6bc2cab + ca70a2d commit ea29af3

File tree

2 files changed

+0
-11
lines changed

2 files changed

+0
-11
lines changed

test/e2e/aks.go

Lines changed: 0 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -49,20 +49,11 @@ type DiscoverAndWaitForAKSControlPlaneInput struct {
4949
// This will be invoked by cluster api e2e framework.
5050
func WaitForAKSControlPlaneInitialized(ctx context.Context, input clusterctl.ApplyCustomClusterTemplateAndWaitInput, result *clusterctl.ApplyCustomClusterTemplateAndWaitResult) {
5151
client := input.ClusterProxy.GetClient()
52-
cluster := framework.GetClusterByName(ctx, framework.GetClusterByNameInput{
53-
Getter: client,
54-
Name: input.ClusterName,
55-
Namespace: input.Namespace,
56-
})
57-
5852
DiscoverAndWaitForAKSControlPlaneInitialized(ctx, DiscoverAndWaitForAKSControlPlaneInput{
5953
Lister: client,
6054
Getter: client,
6155
Cluster: result.Cluster,
6256
}, input.WaitForControlPlaneIntervals...)
63-
if cluster.Spec.ClusterNetwork != nil && cluster.Spec.ClusterNetwork.Services != nil {
64-
InstallCNIManifest(ctx, input, cluster.Spec.ClusterNetwork.Services.CIDRBlocks, true)
65-
}
6657
}
6758

6859
// WaitForAKSControlPlaneReady waits for the azure managed control plane to be ready.

test/e2e/azure_test.go

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -725,7 +725,6 @@ var _ = Describe("Workload cluster creation", func() {
725725
clusterTemplate := createApplyClusterTemplateInput(
726726
specName,
727727
withFlavor("aks"),
728-
withAzureCNIv1Manifest(e2eConfig.GetVariable(AzureCNIv1Manifest)),
729728
withNamespace(namespace.Name),
730729
withClusterName(clusterName),
731730
withKubernetesVersion(kubernetesVersionUpgradeFrom),
@@ -932,7 +931,6 @@ var _ = Describe("Workload cluster creation", func() {
932931
clusterctl.ApplyClusterTemplateAndWait(ctx, createApplyClusterTemplateInput(
933932
specName,
934933
withFlavor("aks-topology"),
935-
withAzureCNIv1Manifest(e2eConfig.GetVariable(AzureCNIv1Manifest)),
936934
withNamespace(namespace.Name),
937935
withClusterName(clusterName),
938936
withKubernetesVersion(kubernetesVersionUpgradeFrom),

0 commit comments

Comments
 (0)