-
Notifications
You must be signed in to change notification settings - Fork 538
[RayCluster] add annotation to enable non-login bash #3630
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
base: master
Are you sure you want to change the base?
Conversation
Signed-off-by: fscnick <[email protected]>
44f3e65
to
26199c6
Compare
@kevin85421 PTAL |
The API is too specific; we should make it more general-purpose. We could start by introducing a KubeRay environment variable to define the default container Command for all Pods created by the KubeRay operator.
(Split by commas may not be a good idea. You should figure it out.) |
@kevin85421 one can use different jobs/clusters/services with different base image with the same KubeRay operator. |
I understand, but I don’t want to change the CRD at this moment unless we encounter enough actual issues. It’s hard to remove or change behavior once it’s been added to the CRD. In most cases, the person who deploys KubeRay and the one who builds the Docker images are typically from the same team, while the person who writes the CR YAML may be from a different team. I think this change should meet most users' needs. I will reconsider updating CRD if the assumptions are incorrect.
Users can disable the injection of init container. |
Why are these changes needed?
According to #3247, the
-l
overwrite the PATH resulting in uv not working properly. Introduce an annotationray.io/non-login-bash-cmd
to remove-l
from the command.Previouly, there is a PR #427 to add
-l
to be convenient for conda init or or set CLASSPATH. Which might have conflict with this current issue. Thus, add an annotation to let user choose which one is suitable for them.Related issue number
Part of #3247
Checks