ray-project / kuberay

A toolkit to run Ray applications on Kubernetes
Apache License 2.0
1.2k stars 390 forks source link

[Feature][kubectl-plugin] Also show kuberay operator version in kubectl ray version command #2439

Open MortalHappiness opened 1 week ago

MortalHappiness commented 1 week ago

Search before asking

Description

Currently kubectl ray version only shows the version of itself. We can dynamic query the kuberay operator version and show it to users.

Expected behavior:

If kuberay operator is installed:

$ kubectl ray version
kubectl ray plugin version: vx.x.x
kuberay operator version: vy.y.y

If kuberay operator is not installed or cannot be found:

$ kubectl ray version
kubectl ray plugin version: vx.x.x
Warning: kuberay operator installation cannot be found - did you install it with the name "kuberay-operator"?

Implementation Details:

Use case

No response

Related issues

No response

Are you willing to submit a PR?

win5923 commented 1 week ago

Hi @MortalHappiness, I can help with this issue.