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 when --use-proxy is true #139

Merged
merged 1 commit into from
Jan 26, 2023
Merged

Conversation

michaelmdresser
Copy link
Contributor

What does this PR change?

Refactor of query logic caused o.restConfig to always be nil. This commit fixes that by simply passing through the restConfig in the proxy query case.

Problem discovered by CI: https://github.com/kubecost/integration-ci-cd/actions/runs/4014159525/jobs/6906486306

How does this PR impact users? (This is the kind of thing that goes in release notes!)

  • Fix panic when --use-proxy is true

How was this PR tested?

Locally. Observed panic before change with --use-proxy and no panic after.

Refactor of query logic caused o.restConfig to always be nil. This commit
fixes that by simply passing through the restConfig in the proxy query
case.

Problem discovered by CI: https://github.com/kubecost/integration-ci-cd/actions/runs/4014159525/jobs/6906486306

Signed-off-by: Michael Dresser <[email protected]>
@michaelmdresser
Copy link
Contributor Author

For context, this was probably introduced by #137

@michaelmdresser michaelmdresser merged commit b472074 into main Jan 26, 2023
@michaelmdresser michaelmdresser deleted the mmd/fix-proxy-panic branch January 26, 2023 22:18
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

2 participants