-
Notifications
You must be signed in to change notification settings - Fork 378
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
[Feat][kubectl-plugin] Add kubectl ray version command #2424
[Feat][kubectl-plugin] Add kubectl ray version command #2424
Conversation
Closes: ray-project#2423 Signed-off-by: Chi-Sheng Liu <[email protected]>
27040b0
to
86a9f3d
Compare
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.
can you add a screenshot for the result of this command?
@@ -16,6 +16,7 @@ builds: | |||
- arm64 | |||
main: ./cmd | |||
binary: kubectl-ray | |||
ldflags: -X github.com/ray-project/kuberay/kubectl-plugin/pkg/cmd/version.Version={{- .Tag -}} |
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.
what is the value of .Tag
?
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.
A git tag, semver tag. e.g. v1.0.0
"github.com/spf13/cobra" | ||
) | ||
|
||
var Version = "development" |
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.
var Version = "development" | |
const Version string = "development" |
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.
This cannot be replaced with const. This variable will be override by ldflags at build time.
Why are these changes needed?
See the description in the corresponding issue for details.
Related issue number
Closes: #2423
Checks