-
Notifications
You must be signed in to change notification settings - Fork 402
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
[Feature][Helm] Align the key of minReplicas and maxReplicas #663
Conversation
Signed-off-by: Andrew Li <[email protected]>
Hi @DmitriGekhtman , |
I agree, but we also need to ensure backwards compatibility of existing values.yaml files. Would you mind modifying the template such that it understands "maxiReplicas"/"miniReplicas" but ignores these fields if "maxReplicas"/"minReplicas" is specified? @kevin85421 can help with reviewing and getting this merged. |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Thank @orcahmlee for your contribution!
We may also need to update miniReplicas
and maxiReplicas
in values.yaml
to minReplicas
and maxReplicas
. Currently, this PR can pass the helm chart lint tests because it uses the default
functions.
In addition, as @DmitriGekhtman said, we need to keep backward compatibility.
kuberay/helm-chart/ray-cluster/values.yaml
Lines 116 to 117 in 0adc508
miniReplicas: 1 | |
maxiReplicas: 3 |
…licas and maxReplicas Signed-off-by: Andrew Li <[email protected]>
Hi @kevin85421 , |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Thank you for the update. Maybe we can use default
to simplify the logic. You can refer to this commit: kevin85421@28138f4
…Replicas" using default function Signed-off-by: Andrew Li <[email protected]>
4c0c432
to
ac79850
Compare
Thanks for your reminder and the kindly sample code. I haven't used the nested |
…ject#663) * [Feature][Helm] Align the key of minReplicas and maxReplicas Signed-off-by: Andrew Li <[email protected]> * [Feature][Helm] Updated the values.yaml after align the key of minReplicas and maxReplicas Signed-off-by: Andrew Li <[email protected]> * [Feature][Helm] Added backwards compatibility of "maxiReplicas"/"miniReplicas" using default function Signed-off-by: Andrew Li <[email protected]> Signed-off-by: Andrew Li <[email protected]>
Signed-off-by: Andrew Li [email protected]
Why are these changes needed?
This PR aligns the
minReplicas
andmaxReplicas
.Since the RayCluster CRD uses
minReplicas
andmaxReplicas
, thevalues.yaml
should use it instead of usingminiReplicas
andmaxiReplicas
Related issue number
Checks