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

[BUG] replicaCount must accept zero #128

Merged

Conversation

katlim-br
Copy link
Contributor

@katlim-br katlim-br commented Jan 31, 2025

In a previous PR (#124), I added a condition that allows indexer.replicaCount and searcher.replicaCount to be optional (because when you use HPA, the STS replicas field must be omitted).

However, a bug was introduced because the condition {{- if .Values.indexer.replicaCount }} will be false when replicaCount is zero.

To improve this, I am also adding the indexer.enabled flag that will help tidy things up. This works better than the replicaCount: 0 because the indexer statefulset will not be created.

In summary:

  1. Fix the replicaCount==0 condition to make it backward compatible with what it used to be.
  2. Add the "correct" way, which should be using a new indexer.enabled flag.

@katlim-br
Copy link
Contributor Author

please your review @guilload.

@katlim-br katlim-br changed the title FIX: replicaCount must accept zero BUG: replicaCount must accept zero Feb 1, 2025
@katlim-br katlim-br changed the title BUG: replicaCount must accept zero [BUG] replicaCount must accept zero Feb 1, 2025
@katlim-br
Copy link
Contributor Author

Thanks for the approval @guilload. Can you please merge it?

@guilload guilload merged commit d49150c into quickwit-oss:main Feb 3, 2025
1 check passed
@katlim-br katlim-br deleted the indexer_enabled_allow_replica_0 branch February 3, 2025 19:59
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.

2 participants