Skip to content

[k8s] Support older versions missing ListDeployment API#374

Merged
conorbranagan merged 1 commit intomasterfrom
conor/k8s-support
Jul 10, 2017
Merged

[k8s] Support older versions missing ListDeployment API#374
conorbranagan merged 1 commit intomasterfrom
conor/k8s-support

Conversation

@conorbranagan
Copy link
Copy Markdown
Contributor

What does this PR do?

Fixes the Kubernetes metadata provider so it works on v1.5 which does not have the ListDeployment API available. This was tested locally on Minikube v0.15 which runs 1.5. Unfortunately we don't have any integration testing in place (yet) but it certainly should come in the future.

Motivation

The Process Agent which uses this provider was failing on older GKE nodes that use 1.5

Handle the 404 error with an empty list of deployments. The remainder of
the code should work as expected.

Tested locally with minikube v0.15.0 that runs Kubernetes 1.5 which
fails on this API.
@conorbranagan conorbranagan requested review from hkaj and xvello July 7, 2017 19:48
Copy link
Copy Markdown
Contributor

@masci masci left a comment

Choose a reason for hiding this comment

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

LGTM!

@conorbranagan conorbranagan merged commit cfb418b into master Jul 10, 2017
@conorbranagan conorbranagan deleted the conor/k8s-support branch July 10, 2017 13:22
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants