Skip to content

Commit

Permalink
add check to install cni manifest
Browse files Browse the repository at this point in the history
  • Loading branch information
willie-yao committed Nov 8, 2023
1 parent b5c1521 commit 79d6103
Showing 1 changed file with 4 additions and 1 deletion.
5 changes: 4 additions & 1 deletion test/e2e/aks.go
Original file line number Diff line number Diff line change
Expand Up @@ -55,7 +55,9 @@ func WaitForAKSControlPlaneInitialized(ctx context.Context, input clusterctl.App
Getter: client,
Cluster: result.Cluster,
}, input.WaitForControlPlaneIntervals...)
InstallCNIManifest(ctx, input, cluster.Spec.ClusterNetwork.Services.CIDRBlocks, true)
if cluster.Spec.ClusterNetwork != nil && cluster.Spec.ClusterNetwork.Services != nil {
InstallCNIManifest(ctx, input, cluster.Spec.ClusterNetwork.Services.CIDRBlocks, true)
}
}

// WaitForAKSControlPlaneReady waits for the azure managed control plane to be ready.
Expand Down Expand Up @@ -91,6 +93,7 @@ func DiscoverAndWaitForAKSControlPlaneInitialized(ctx context.Context, input Dis
ClusterName: input.Cluster.Name,
Namespace: input.Cluster.Namespace,
}, intervals...)
Logf("Finished waiting for the first AKS machine in the %s/%s 'system' node pool to exist", controlPlane.Namespace, controlPlane.Name)
}

// DiscoverAndWaitForAKSControlPlaneReady gets the Azure managed control plane associated with the cluster
Expand Down

0 comments on commit 79d6103

Please sign in to comment.