-
Notifications
You must be signed in to change notification settings - Fork 9
Conversation
+ Add AWSElasticBlockStorage volume support
entities = [] | ||
|
||
pvcs = get_all(kube_client, kube_client.get_persistentvolumeclaims, namespace, span=current_span) | ||
pvs = get_all(kube_client, kube_client.get_persistentvolumes, namespace, span=current_span) |
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.
is this used somewhere?
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.
a few lines down ;)
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.
ouch, yes :)
def get_aws_ebs_fields(pv: PersistentVolume) -> dict: | ||
"""Return volume fields for AWSElasticBlockStore plugin""" | ||
|
||
spec = pv.obj['spec']['awsElasticBlockStore'] |
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.
Can this break if someone create a pv without this key?
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.
Or you do some fancy function mapping, I see :)
👍 |
1 similar comment
👍 |
Added implementation for PR upstream: kelproject/pykube#156 |
👍 |
1 similar comment
👍 |
Add discovery of kubernetes Persistent Volume Claims and their supporting backend.