Skip to content

Enabled replicaCount#269

Merged
klesh merged 7 commits into
apache:mainfrom
angelsanchezdck:enabled-replicaCount
Jul 30, 2025
Merged

Enabled replicaCount#269
klesh merged 7 commits into
apache:mainfrom
angelsanchezdck:enabled-replicaCount

Conversation

@angelsanchezdck

Copy link
Copy Markdown
Contributor

Enables the ability to set replicas of StatefulSet and deployments to 0, fully disabling the devlake-helm-chart. This ensures compliance with the requirement of having only one replica for deployments in dev-lake, providing finer control over the development environment.

Issue: #266

@ZhangNing10 ZhangNing10 left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

hi @angelsanchezdck , thanks for creating the pr!
Different deployments/statefulset uses different values, for example .Values.lake.replicaCount. Then you can delete the values.replicaCount part in values.yaml

@angelsanchezdck

Copy link
Copy Markdown
Contributor Author

Hi @ZhangNing10 , Done!

ui: No limit
dev-lake and mysql: replicaCount is limited to 0 or 1

ZhangNing10
ZhangNing10 previously approved these changes Jun 18, 2024

@ZhangNing10 ZhangNing10 left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM

@ZhangNing10

Copy link
Copy Markdown
Contributor

hi @angelsanchezdck , thanks a lot! could you kindly fix the conflict?

@angelsanchezdck

Copy link
Copy Markdown
Contributor Author

Sorry for late.

@angelsanchezdck

Copy link
Copy Markdown
Contributor Author

What is the next step?

@ZhangNing10

Copy link
Copy Markdown
Contributor

@ZhangNing10 ZhangNing10 left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

hi @angelsanchezdck , the imageTag should not be changed, kindly keep the same as main branch

Comment thread charts/devlake/values.yaml Outdated
Fix: incompatible types for comparison
Fix: incompatible types for comparison
 keeping the same as main branch
@angelsanchezdck

Copy link
Copy Markdown
Contributor Author

Hi @ZhangNing10

errors were fixed

Thank

@klesh

klesh commented May 26, 2025

Copy link
Copy Markdown
Contributor

Hi, @matrixji @JorgeGar . Would you kindly help reviewing this PR when you find time? Thanks.

@JorgeGar

Copy link
Copy Markdown
Contributor

Hey, given the situation this solution looks good to me. Thanks @angelsanchezdck for bringing this up!

@angel-sanchez-r2

Copy link
Copy Markdown
Contributor

Thank!

@klesh

klesh commented Jun 16, 2025

Copy link
Copy Markdown
Contributor

I would like to highlight that the devlake service should NOT have multiple instance, only 1 instance is allowed to connect to the same database.
Allowing specifying multiple replicas doesn't make sense to me.

@angel-sanchez-r2

Copy link
Copy Markdown
Contributor

Ok, I understand.

If you look at the condition {{ if gt (int .Values.lake.replicaCount) 1 }}1{{ else }}{{ .Values.lake.replicaCount }}{{ end }}, it never allows more than 1 replica to be set.

I would also prefer if it allowed setting the replica count to 0.

@klesh

klesh commented Jul 30, 2025

Copy link
Copy Markdown
Contributor

Ok, I understand.

If you look at the condition {{ if gt (int .Values.lake.replicaCount) 1 }}1{{ else }}{{ .Values.lake.replicaCount }}{{ end }}, it never allows more than 1 replica to be set.

I would also prefer if it allowed setting the replica count to 0.

Thanks for the explanation.
In this case, I think it is OK.

Thanks for your contribution.

@klesh klesh merged commit d182ebd into apache:main Jul 30, 2025
3 checks passed
@angel-sanchez-r2

Copy link
Copy Markdown
Contributor

Ty.
Waiting for release. 👏

fabioluciano pushed a commit to fabioluciano/incubator-devlake-helm-chart that referenced this pull request May 6, 2026
* Enabled replicaCount

* pullrequestreview-1972726168

* Update deployments.yaml

Fix: incompatible types for comparison

* Update statefulsets.yaml

Fix: incompatible types for comparison

* Update values.yaml

 keeping the same as main branch

---------

Co-authored-by: Angel Sanchez <angel.sanchez@r2capital.co>
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.

5 participants