Skip to content

Commit

Permalink
Actually call ensure calico after quick start
Browse files Browse the repository at this point in the history
  • Loading branch information
Jont828 committed Jan 19, 2024
1 parent 748b432 commit 569a99c
Show file tree
Hide file tree
Showing 3 changed files with 4 additions and 5 deletions.
2 changes: 1 addition & 1 deletion config/default/manager_image_patch.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -7,5 +7,5 @@ spec:
template:
spec:
containers:
- image: docker.io/jont828/cluster-api-helm-controller-amd64:20240118172216
- image: docker.io/jont828/cluster-api-helm-controller-amd64:20240118172356
name: manager
1 change: 0 additions & 1 deletion scripts/ci-e2e.sh
Original file line number Diff line number Diff line change
Expand Up @@ -40,7 +40,6 @@ fi

export GINKGO_NODES=10

trap capz::ci-e2e::cleanup EXIT
# Image is configured as `${CONTROLLER_IMG}-${ARCH}:${TAG}` where `CONTROLLER_IMG` is defaulted to `${REGISTRY}/${IMAGE_NAME}`.
if [[ "${BUILD_MANAGER_IMAGE}" == "false" ]]; then
# Load an existing image, skip docker-build and docker-push.
Expand Down
6 changes: 3 additions & 3 deletions test/e2e/common.go
Original file line number Diff line number Diff line change
Expand Up @@ -61,6 +61,9 @@ func EnsureControlPlaneInitialized(ctx context.Context, input clusterctl.ApplyCu
// g.Expect(clusterProxy.GetClient().Get(ctx, client.ObjectKey{Name: kubesystem}, ns)).To(Succeed(), "Failed to get kube-system namespace")
// }, input.WaitForControlPlaneIntervals...).Should(Succeed(), "API Server was not reachable in time")

By("Ensure calico is ready after control plane is installed")
EnsureCalicoIsReady(ctx, input, result)

result.ControlPlane = framework.DiscoveryAndWaitForControlPlaneInitialized(ctx, framework.DiscoveryAndWaitForControlPlaneInitializedInput{
Lister: input.ClusterProxy.GetClient(),
Cluster: result.Cluster,
Expand All @@ -83,9 +86,6 @@ const (
func EnsureCalicoIsReady(ctx context.Context, input clusterctl.ApplyCustomClusterTemplateAndWaitInput, result *clusterctl.ApplyCustomClusterTemplateAndWaitResult) {
specName := "ensure-calico"

// Wait for control plane since the CAAPH install is blocked on the workload cluster kubeconfig being available.
EnsureControlPlaneInitialized(ctx, input, result)

clusterProxy := input.ClusterProxy.GetWorkloadCluster(ctx, input.Namespace, input.ClusterName)

By("Waiting for Ready tigera-operator deployment pods")
Expand Down

0 comments on commit 569a99c

Please sign in to comment.