nginxinc / nginx-supportpkg-for-k8s

NGINX Support Package Tool For Kubernetes
Apache License 2.0
0 stars 2 forks source link

Print release and build information #15

Closed dareste closed 3 months ago

dareste commented 4 months ago

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...
...