Skip to content

Print release and build information #15

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

Closed
dareste opened this issue Jun 28, 2024 · 0 comments · Fixed by #28
Closed

Print release and build information #15

dareste opened this issue Jun 28, 2024 · 0 comments · Fixed by #28
Assignees
Labels
enhancement New feature or request good first issue Good for newcomers

Comments

@dareste
Copy link
Collaborator

dareste commented Jun 28, 2024

Describe the solution you'd like
Right now, the release and build information is printed in the supportpkg.log file:

2024/06/28 14:42:46.667356 nginx-supportpkg.go:48: Starting kubectl-nginx-suportpkg - version: v0.1.2 - build: d096d0c83e5fcce53ea45766a442fdfb402eb195

It would be helpful to show the release / build information without the need to create a supportpkg. This could be done via a specific -v flag, or by adding the version information as part of the default output when the binary is invoked without any flag:

 > kubectl nginx-supportpkg
...
Version: v1.0.2
Usage:
 nginx-supportpkg [-n|--namespace] ns1 [-n|--namespace] ns2 [-p|--product] nic...
 nginx-supportpkg [-n|--namespace] ns1,ns2 [-p|--product] nic...
...
@dareste dareste added enhancement New feature or request good first issue Good for newcomers labels Jun 28, 2024
@mrajagopal mrajagopal self-assigned this Jul 1, 2024
@mrajagopal mrajagopal linked a pull request Jul 19, 2024 that will close this issue
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request good first issue Good for newcomers
Projects
None yet
Development

Successfully merging a pull request may close this issue.

2 participants