Skip to content
New issue

Have a question about this project? # for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “#”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? # to your account

Handle invalid metric response properly #464

Merged
merged 3 commits into from
Jun 16, 2020
Merged

Conversation

Nokel81
Copy link
Collaborator

@Nokel81 Nokel81 commented Jun 15, 2020

Fixes #318

This PR catches when the metrics object (from a partial instantiation, which is the root cause of why TS didn't catch this) and returns an fully constructed, but empty, metrics object.

@Nokel81 Nokel81 added the bug Something isn't working label Jun 15, 2020
@Nokel81 Nokel81 added this to the 3.5.1 milestone Jun 15, 2020
@Nokel81 Nokel81 requested a review from a team June 15, 2020 15:19
@Nokel81 Nokel81 self-assigned this Jun 15, 2020
Signed-off-by: Sebastian Malton <smalton@mirantis.com>
Sebastian Malton added 2 commits June 15, 2020 14:07
Signed-off-by: Sebastian Malton <smalton@mirantis.com>
Signed-off-by: Sebastian Malton <smalton@mirantis.com>
@Nokel81 Nokel81 requested a review from a team June 16, 2020 14:19
Copy link
Contributor

@nevalla nevalla left a comment

Choose a reason for hiding this comment

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

LGTM

@nevalla nevalla changed the title Fix 318: catch undefined and return default empty in normalizeMetrics Handle invalid metric response properly Jun 16, 2020
@Nokel81 Nokel81 merged commit 1752b8d into lensapp:master Jun 16, 2020
nevalla pushed a commit that referenced this pull request Jun 24, 2020
* catch undefined and return default empty in normalizeMetrics

* fix crash on drilldown

Signed-off-by: Sebastian Malton <smalton@mirantis.com>

Co-authored-by: Sebastian Malton <smalton@mirantis.com>
This was referenced Jun 24, 2020
@jakolehm jakolehm mentioned this pull request Jul 1, 2020
# for free to join this conversation on GitHub. Already have an account? # to comment
Labels
bug Something isn't working
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Lens cluster view is crashing with prometheus kube state metric service
3 participants