nginx: don't wait for deployment ready, it needs a minute#186
Conversation
It will happen in the background, and we avoid some failures that happen on the kubectl wait
WalkthroughThe change removes an explicit 90-second kubectl wait timeout for the ingress-nginx controller pod readiness check in the Changes
Sequence DiagramsequenceDiagram
participant install as install_nginx_ingress
participant kubectl as kubectl
participant pods as ingress-nginx pods
rect rgb(200, 220, 255)
Note over install: Previous behavior
install->>kubectl: kubectl wait --timeout=90s<br/>(explicit timeout wait)
kubectl->>pods: Check readiness
pods-->>kubectl: Ready or timeout
kubectl-->>install: Success or timeout error
end
rect rgb(200, 255, 220)
Note over install: New behavior
install->>install: Polling loop
loop Until pod found
install->>kubectl: kubectl get pods (ingress-nginx)
kubectl->>pods: Query pod status
pods-->>kubectl: Pod info
kubectl-->>install: Pod data or empty
end
install->>install: Continue when pod found
end
Estimated code review effort🎯 2 (Simple) | ⏱️ ~10 minutes
Poem
Pre-merge checks and finishing touches❌ Failed checks (1 warning)
✅ Passed checks (2 passed)
✨ Finishing touches🧪 Generate unit tests (beta)
📜 Recent review detailsConfiguration used: CodeRabbit UI Review profile: CHILL Plan: Pro 📒 Files selected for processing (1)
💤 Files with no reviewable changes (1)
Thanks for using CodeRabbit! It's free for OSS, and your support helps us grow. If you like it, consider giving us a shout-out. Comment |
|
@bennyz and I agree that waiting is better, because then if nginx fails to deploy, we know it's nginx. |
It will happen in the background, and we avoid some failures that happen on the kubectl wait
Summary by CodeRabbit