Skip to content

Commit d6aa601

Browse files
committed
Add logging to check what is wrong with cluster provisioning
1 parent 252a1f5 commit d6aa601

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

Makefile

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -168,7 +168,7 @@ create-capl-cluster:
168168
kubectl wait --for=condition=ControlPlaneReady cluster/$(CLUSTER_NAME) --timeout=600s || (kubectl get cluster -o yaml; kubectl get linodecluster -o yaml; kubectl get linodemachines -o yaml)
169169
kubectl wait --for=condition=NodeHealthy=true machines -l cluster.x-k8s.io/cluster-name=$(CLUSTER_NAME) --timeout=900s
170170
clusterctl get kubeconfig $(CLUSTER_NAME) > $(KUBECONFIG_PATH)
171-
KUBECONFIG=$(KUBECONFIG_PATH) kubectl wait --for=condition=Ready nodes --all --timeout=600s
171+
KUBECONFIG=$(KUBECONFIG_PATH) kubectl wait --for=condition=Ready nodes --all --timeout=600s || kubectl logs -n capl-system deployments/capl-controller-manager --tail=50
172172
# Remove all taints from control plane node so that pods scheduled on it by tests can run (without this, some tests fail)
173173
KUBECONFIG=$(KUBECONFIG_PATH) kubectl taint nodes -l node-role.kubernetes.io/control-plane node-role.kubernetes.io/control-plane-
174174

0 commit comments

Comments
 (0)