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 use-proxy, bad port -> string conversion #126

Merged
merged 1 commit into from
Jul 11, 2022

Conversation

michaelmdresser
Copy link
Contributor

@michaelmdresser michaelmdresser commented Jul 11, 2022

What does this PR change?

Calling string() on an int results in a rune, not the expected string.
That caused an error like:

Error: failed to query allocation API: failed to proxy get kubecost. err: the server is currently unable to handle the request (get services kubecost-cost-analyzer:⎂); data: {"kind":"Status","apiVersion":"v1","metadata":{},"status":"Failure","message":"no endpoints available for service \"kubecost-cost-analyzer:⎂\"","reason":"ServiceUnavailable","code":503}

Note the port after kubecost-cost-analyzer:

After this commit, use-proxy works correctly.

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

Fixes a regression in v0.2.9 where --use-proxy stopped working.

How was this PR tested?

Manually. Observed use-proxy working after the change.

Calling string() on an int results in a rune, not the expected string.
That caused an error like:

Error: failed to query allocation API: failed to proxy get kubecost. err: the server is currently unable to handle the request (get services kubecost-cost-analyzer:⎂); data: {"kind":"Status","apiVersion":"v1","metadata":{},"status":"Failure","message":"no endpoints available for service \"kubecost-cost-analyzer:⎂\"","reason":"ServiceUnavailable","code":503}

Note the port after "kubecost-cost-analyzer:"

After this commit, use-proxy works correctly.
@avrodrigues5 avrodrigues5 self-requested a review July 11, 2022 16:15
@michaelmdresser michaelmdresser merged commit 9c33aa5 into main Jul 11, 2022
@michaelmdresser michaelmdresser deleted the mmd/fix-use-proxy branch July 11, 2022 16:19
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.

None yet

2 participants