-
Notifications
You must be signed in to change notification settings - Fork 2k
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
add aws/gce volume id to kube_persistentvolume_info #1146
Conversation
Welcome @povilasv! |
/assign @brancz |
internal/store/persistentvolume.go
Outdated
volLabelIDValue = p.Spec.PersistentVolumeSource.AWSElasticBlockStore.VolumeID | ||
} | ||
|
||
if volLabelIDKey == "" { |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Prometheus will drop the empty value anyways, so why the extra branch?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
👍 fixed. I'm not sure about empty keys, so I default key to default
Even the key doesn’t need to be conditional does it? We just add all of them always. |
Agreed, thanks for the tip. I did the change 👍 |
Very nice. /lgtm |
CI was failing due to missing docs, so I have fixed it.
|
Isn't it lovely when tests work 😄 /lgtm |
[APPROVALNOTIFIER] This PR is APPROVED This pull-request has been approved by: brancz, povilasv The full list of commands accepted by this bot can be found here. The pull request process is described here
Needs approval from an approver in each of these files:
Approvers can indicate their approval by writing |
it is :D That doc test is pretty awesome. |
ref #704