-
Notifications
You must be signed in to change notification settings - Fork 103
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
Added a CLI sub-command in noobaa diagnostics to print proxy details #1440
Conversation
6047c1f
to
0b170a6
Compare
0b170a6
to
e3d8c7b
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.
LGTM
pkg/diagnostics/diagnostics.go
Outdated
func CmdReport() *cobra.Command { | ||
cmd := &cobra.Command{ | ||
Use: "report", | ||
Short: "Reports the proxy status", |
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.
The command will not only run a report of the proxy, but it will be extended to other issues as well.
Short: "Reports the proxy status", | |
Short: "Run reports of the status and setup", |
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.
updated, Thanks
Signed-off-by: Aayush Chouhan <[email protected]>
a25496b
to
46c85f3
Compare
Explain the changes
The CLI command checks and logs the values of essential environment variables related to proxy configuration (HTTP_PROXY, HTTPS_PROXY, NO_PROXY). It performs the following actions:
Checks: Verifies if these proxy environment variables are set and not empty.
This implementation currently focuses on proxy environment variables but is designed with future expansion in mind. Additional checks and diagnostics will be introduced in the future.
Issues: Fixed #xxx / Gap #xxx
Testing Instructions:
noobaa diagnostics report
to check the proxy status.Note: Use the command
kubectl set env deployment/noobaa-operator -c noobaa-operator HTTP_PROXY=localhost:8080
to update the proxy vars.