Skip to content
This repository was archived by the owner on Apr 22, 2020. It is now read-only.

Add support for PVCs #74

Merged
merged 2 commits into from
May 17, 2018
Merged

Add support for PVCs #74

merged 2 commits into from
May 17, 2018

Conversation

mohabusama
Copy link
Contributor

Add discovery of kubernetes Persistent Volume Claims and their supporting backend.

  • Add AWSElasticBlockStorage volume support

+ Add AWSElasticBlockStorage volume support
@mohabusama mohabusama requested a review from vetinari May 16, 2018 13:57
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)
Copy link
Contributor

Choose a reason for hiding this comment

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

is this used somewhere?

Copy link
Contributor Author

Choose a reason for hiding this comment

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

a few lines down ;)

Copy link
Contributor

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']
Copy link
Contributor

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?

Copy link
Contributor

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 :)

@vetinari
Copy link
Contributor

👍

1 similar comment
@mikkeloscar
Copy link
Contributor

👍

@mohabusama
Copy link
Contributor Author

Added implementation for TimedHTTPClient as there are no timeouts set for pykube.HTTPClient

PR upstream: kelproject/pykube#156

@elauria
Copy link

elauria commented May 16, 2018

👍

1 similar comment
@lmineiro
Copy link

👍

@mohabusama mohabusama merged commit 9d12849 into master May 17, 2018
@mohabusama mohabusama deleted the add-kube-pvc branch May 17, 2018 08:05
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

5 participants