Skip to content
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

Fix panic caused by analyzing a cluster that is not found #1

Closed
wants to merge 1 commit into from

Conversation

masih
Copy link
Owner

@masih masih commented Jun 21, 2023

On analyze when a cluster is not found the code continued to execute the analysis functions which then resulted in panic at ./kubectl-fdb/cmd/analyze.go:224 since cluster passed into the analysis functions would be nil.

The changes here fix the issue by only calling analysis functions if no error is returned upon getting the cluster object.

Note: cannot open this PR in original repo due to permission restrictions.

On `analyze` when a cluster is not found the code continued to execute
the analysis functions which then resulted in panic at
`./kubectl-fdb/cmd/analyze.go:224` since `cluster` passed into the
analysis functions would be `nil`.

The changes here fix the issue by only calling analysis functions if no
error is returned upon getting the cluster object.
@masih
Copy link
Owner Author

masih commented Jun 22, 2023

fixed via contributors PR

@masih masih closed this Jun 22, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
1 participant