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

Quick fix for an empty config SEGV on nil rest.Config bug #500

Merged
merged 1 commit into from
Jul 23, 2018

Conversation

timothysc
Copy link
Contributor

What this PR does / why we need it:
Fixes a condition where getSonobuoyClient(cfg *rest.Config) can be called with a nil cfg

Which is a normal condition that can occur for offline tarball analysis.

Which issue(s) this PR fixes

Special notes for your reviewer:
none

Release note:

None

/assign @chuckha
/cc @scottslowe

Signed-off-by: Timothy St. Clair <timothysc@gmail.com>
@chuckha
Copy link
Contributor

chuckha commented Jul 23, 2018

I'm ok with this as a quick fix

I'm starting to think about two sonobuoy clients. one that interacts with stuff locally gen (sometimes) and e2e that do not require a kubeconfig and one that interacts with kubernetes, run, status, also gen, etc.

The only other thing I'll suggest is that this go directly in https://github.com/heptio/sonobuoy/blob/master/pkg/dynamic/client.go to return a local-only sonobuoy client.

Copy link
Contributor

@chuckha chuckha left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

this lgtm, please see comment for considerations.

@timothysc timothysc merged commit 2f949b5 into vmware-tanzu:master Jul 23, 2018
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Sonobuoy 0.11.4 panics when analyzing results tarball
2 participants