Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[K8s operator] Wait for available replica before watching services #523

Merged
merged 2 commits into from
May 14, 2020

Conversation

CarlosLanderas
Copy link
Contributor

@CarlosLanderas CarlosLanderas commented May 5, 2020

What this PR does / why we need it:

When you deploy the k8s operator using the installer tool (or manually), right now there is a race condition where the UI is being provisioned and the service watcher started. It can happen (if the cluster needs to pull the UI image for example), that the UI endpoint is not available yet and the service watcher pushes discovered services with failure result (service is ready but the pod is being provisioned). The user can re-label services and these will be automatically added but this is non desired extra-work.

With this PR, we wait for an available replica (5 secs x 10 retries max) and once the replica is up and running we start the service watcher.

The channel event is now run inside a task, so all the incoming events can run in parallel and be provisioned without having to wait for the previous deployment, that might be waiting for an available replica.

Which issue(s) this PR fixes: #521

@CarlosLanderas CarlosLanderas merged commit 5176e6b into master May 14, 2020
@unaizorrilla unaizorrilla deleted the k8s-operator-provisioning-services branch November 22, 2020 16:22
@sungam3r sungam3r mentioned this pull request Jul 30, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant