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

Remove extra quotes around node names #22

Open
wants to merge 2 commits into
base: kubernetes-endpoint
Choose a base branch
from

Conversation

jeffkreeftmeijer
Copy link
Member

Previously, the node names were wrapped in double quotes, as an artefact of their JSON roots. This patch makes sure the quotes are removed by converting the values to str before producing the string outputs.

Closes #20

[skip changeset]

Previously, the returned nodeName was converted to a string with
to_string(), which turns the JSON representation into a string. This
includes quotes to indicate the value is indeed a string.

This patch uses as_str(), which returns an option. The node name is
only set if a str is actually returned.
Like with node names in node metrics, also remove the quotes from the
names in pod and volume metrics.
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.

2 participants