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

Only start API service on elected leader #875

Merged
merged 1 commit into from
Oct 18, 2021

Conversation

dvaldivia
Copy link
Collaborator

Makes it so only the leader starts the API, this is due to the fact that we also do the operator CSR when we start the API, and if two pods are trying to generate a CSR at the same time, maybe none of them will get it

Signed-off-by: Daniel Valdivia 18384552+dvaldivia@users.noreply.github.com

Alevsk
Alevsk previously approved these changes Oct 15, 2021
pkg/controller/cluster/main-controller.go Outdated Show resolved Hide resolved
pkg/controller/cluster/main-controller.go Outdated Show resolved Hide resolved
@harshavardhana harshavardhana changed the title Only start API by the Elected Leader Only start API service on elected Leader Oct 15, 2021
@harshavardhana harshavardhana changed the title Only start API service on elected Leader Only start API service on elected leader Oct 15, 2021
Signed-off-by: Daniel Valdivia <18384552+dvaldivia@users.noreply.github.com>
@harshavardhana harshavardhana merged commit 40411db into minio:master Oct 18, 2021
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.

None yet

3 participants