Skip to content

Conversation

@kash2104
Copy link
Contributor

@kash2104 kash2104 commented Jan 4, 2026

Why are these changes needed?

Currently, resource values (e.g. cpu, memory) in sample Kubernetes manifests are inconsistent: some are quoted as strings, while others are not.

This PR standardizes all sample manifest files to use double-quoted ("") resource values.

Related issue number

Closes #4335

Checks

  • I've made sure the tests are passing.
  • Testing Strategy
    • Unit tests
    • Manual tests
    • This PR is not tested :(

@kash2104
Copy link
Contributor Author

kash2104 commented Jan 5, 2026

@CheyuWu Would love a review.

Copy link
Member

@Future-Outlier Future-Outlier left a comment

Choose a reason for hiding this comment

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

Hi, plz update these files too, thank you.
also cc @cheyu @justinyeh1995 @400Ping to take a look.

Missing Files in PR

1. Volcano Queue spec (capability field)

File Lines Current Should be
ray-cluster.volcano-scheduler-queue.yaml 8-9 cpu: 4, memory: 6Gi cpu: "4", memory: "6Gi"
ray-job.volcano-scheduler-queue.yaml 8-9 cpu: 4, memory: 6Gi cpu: "4", memory: "6Gi"

2. Head Group resources - memory not quoted

File Lines Current Should be
ray-cluster.tpu-v6e-singlehost.yaml 18, 21 memory: 40G memory: "40G"
ray-cluster.tpu-v6e-16-multihost.yaml 18, 21 memory: 40G memory: "40G"
ray-cluster.tpu-v4-multihost.yaml 21, 22, 25, 26 ephemeral-storage: 20Gi, memory: 40G, ephemeral-storage: 10Gi, memory: 40G add quotes
ray-cluster.tpu-v4-singlehost.yaml 21 ephemeral-storage: 20Gi ephemeral-storage: "20Gi"
ray-cluster.external-redis.yaml 35, 38, 85, 88 memory: 5Gi, memory: 2Gi, memory: 1Gi, memory: 1Gi add quotes
ray-cluster.external-redis-uri.yaml 35, 38, 85, 88 same as above add quotes

3. RayJob head group

File Lines Current Should be
ray-job.tpu-v6e-256-multihost.yaml 33 memory: 40G memory: "40G"

@Future-Outlier Future-Outlier moved this from can be merged to In Progress in @Future-Outlier's kuberay project Jan 5, 2026
@CheyuWu CheyuWu self-requested a review January 5, 2026 13:33
@kash2104
Copy link
Contributor Author

kash2104 commented Jan 5, 2026

Have updated the requested files.

Copy link
Contributor

@justinyeh1995 justinyeh1995 left a comment

Choose a reason for hiding this comment

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

I think there are more to be addressed here.

I've spotted them in VSCode via

image

my suggestion is to update it either with VSCode (click the .* button to enable regex mode, **/*.yaml for files to include) or
use find + sed for the same purpose if you're not using VSCode.

rayClusterSpec:
headGroupSpec:
rayStartParams:
disable-usage-stats: 'true'
Copy link
Collaborator

Choose a reason for hiding this comment

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

One small follow-up I noticed: besides cpu and memory, there are also some non-resource values still using single quotes (').

Since this PR aims to standardize quoting style, would it make sense to also convert those to double quotes (") for consistency across all sample manifests?

Copy link
Contributor Author

Choose a reason for hiding this comment

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

It's not just about params. I noticed the same thing with annotations as well.

Copy link
Collaborator

Choose a reason for hiding this comment

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

Good point, Do you think it makes sense to include those changes here as well, or would you prefer handling them in a separate PR?

Copy link
Contributor Author

Choose a reason for hiding this comment

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

Would be ideal if we move that to a separate PR since we will changing the production files.

@kash2104
Copy link
Contributor Author

kash2104 commented Jan 6, 2026

I think there are more to be addressed here.

I've spotted them in VSCode via

image my suggestion is to update it either with VSCode (click the .* button to enable regex mode, **/*.yaml for files to include) or use find + sed for the same purpose if you're not using VSCode.

@justinyeh1995 As asked in the issue proposal, only the changes needs to be made in the sample files to avoid behavioural change in production. So the changes have been made to files present in ray-operator/config/samples folder only.

@CheyuWu
Copy link
Collaborator

CheyuWu commented Jan 6, 2026

I think there are more to be addressed here.
I've spotted them in VSCode via
image
my suggestion is to update it either with VSCode (click the .* button to enable regex mode, **/*.yaml for files to include) or use find + sed for the same purpose if you're not using VSCode.

@justinyeh1995 As asked in the issue proposal, only the changes needs to be made in the sample files to avoid behavioural change in production. So the changes have been made to files present in ray-operator/config/samples folder only.

Hi @justinyeh1995 I think we can open a new issue to address the problem
WDYT?

@justinyeh1995
Copy link
Contributor

I think there are more to be addressed here.
I've spotted them in VSCode via
image
my suggestion is to update it either with VSCode (click the .* button to enable regex mode, **/*.yaml for files to include) or use find + sed for the same purpose if you're not using VSCode.

@justinyeh1995 As asked in the issue proposal, only the changes needs to be made in the sample files to avoid behavioural change in production. So the changes have been made to files present in ray-operator/config/samples folder only.

Ahh, I see. This makes sense. Let me check again.

@justinyeh1995
Copy link
Contributor

I think there are more to be addressed here.
I've spotted them in VSCode via
image
my suggestion is to update it either with VSCode (click the .* button to enable regex mode, **/*.yaml for files to include) or use find + sed for the same purpose if you're not using VSCode.

@justinyeh1995 As asked in the issue proposal, only the changes needs to be made in the sample files to avoid behavioural change in production. So the changes have been made to files present in ray-operator/config/samples folder only.

Hi @justinyeh1995 I think we can open a new issue to address the problem WDYT?

Sounds good to me!

@kash2104
Copy link
Contributor Author

kash2104 commented Jan 6, 2026

@justinyeh1995 Any more changes required which lie within the scope of this issue?

custom-label: custom-ray-head-service-label
annotations:
custom-annotation: custom-ray-head-service-annotation
custom-annotation: "custom-ray-head-service-annotation"
Copy link
Contributor

Choose a reason for hiding this comment

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

nit: revert this back to unquoted as the string is unambiguous and it is a more common pattern.

Copy link
Contributor

@justinyeh1995 justinyeh1995 left a comment

Choose a reason for hiding this comment

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

LGTM!

Used (cpu|memory|storage|ephemeral-storage|nvidia\.com/gpu):\s+(\d+[KMGTPEmi]i?b?)\s*$ to check for cpu: 500m and etc cases.
image

Used (cpu|memory|storage|ephemeral-storage|nvidia\.com/gpu):\s+(\d+)\s*$ to check for cpu: 4 cases
image

Thanks

Copy link
Member

@Future-Outlier Future-Outlier left a comment

Choose a reason for hiding this comment

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

cursor review

@Future-Outlier
Copy link
Member

cursor review

Copy link

@cursor cursor bot left a comment

Choose a reason for hiding this comment

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

✅ Bugbot reviewed your changes and found no bugs!

Copy link
Member

@Future-Outlier Future-Outlier left a comment

Choose a reason for hiding this comment

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

LGTM, thank you!

@Future-Outlier
Copy link
Member

cc @rueian to merge

Copy link
Collaborator

@CheyuWu CheyuWu left a comment

Choose a reason for hiding this comment

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

LGTM

@rueian rueian merged commit 3adcb43 into ray-project:master Jan 8, 2026
29 checks passed
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.

[Config] Standardize quoted resource values in sample manifests

5 participants