Skip to content

Commit 01c26e4

Browse files
nojnhuhk8s-infra-cherrypick-robot
authored andcommitted
fix conflict on azure-cni daemonset in AKS e2e
1 parent bd68dee commit 01c26e4

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
@@ -48,20 +48,11 @@ type DiscoverAndWaitForAKSControlPlaneInput struct {
4848
// This will be invoked by cluster api e2e framework.
4949
func WaitForAKSControlPlaneInitialized(ctx context.Context, input clusterctl.ApplyCustomClusterTemplateAndWaitInput, result *clusterctl.ApplyCustomClusterTemplateAndWaitResult) {
5050
client := input.ClusterProxy.GetClient()
51-
cluster := framework.GetClusterByName(ctx, framework.GetClusterByNameInput{
52-
Getter: client,
53-
Name: input.ClusterName,
54-
Namespace: input.Namespace,
55-
})
56-
5751
DiscoverAndWaitForAKSControlPlaneInitialized(ctx, DiscoverAndWaitForAKSControlPlaneInput{
5852
Lister: client,
5953
Getter: client,
6054
Cluster: result.Cluster,
6155
}, input.WaitForControlPlaneIntervals...)
62-
if cluster.Spec.ClusterNetwork != nil && cluster.Spec.ClusterNetwork.Services != nil {
63-
InstallCNIManifest(ctx, input, cluster.Spec.ClusterNetwork.Services.CIDRBlocks, true)
64-
}
6556
}
6657

6758
// 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
@@ -687,7 +687,6 @@ var _ = Describe("Workload cluster creation", func() {
687687
clusterTemplate := createApplyClusterTemplateInput(
688688
specName,
689689
withFlavor("aks"),
690-
withAzureCNIv1Manifest(e2eConfig.GetVariable(AzureCNIv1Manifest)),
691690
withNamespace(namespace.Name),
692691
withClusterName(clusterName),
693692
withKubernetesVersion(kubernetesVersionUpgradeFrom),
@@ -894,7 +893,6 @@ var _ = Describe("Workload cluster creation", func() {
894893
clusterctl.ApplyClusterTemplateAndWait(ctx, createApplyClusterTemplateInput(
895894
specName,
896895
withFlavor("aks-topology"),
897-
withAzureCNIv1Manifest(e2eConfig.GetVariable(AzureCNIv1Manifest)),
898896
withNamespace(namespace.Name),
899897
withClusterName(clusterName),
900898
withKubernetesVersion(kubernetesVersionUpgradeFrom),

0 commit comments

Comments
 (0)