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

fix(api): account for NoneType when resource is gone #1178

Merged
merged 2 commits into from
Dec 14, 2016

Conversation

bacongobbler
Copy link
Member

In versions prior to Kubernetes v1.5, an empty list was returned when a resource didn't exist. in
v1.5 it now returns a NoneType, so we need to account for that change and convert it back to an
empty list.

fixes #1175

@bacongobbler bacongobbler added this to the v2.10 milestone Dec 14, 2016
@bacongobbler bacongobbler self-assigned this Dec 14, 2016
@deis-bot
Copy link

@helgi, @kmala and @zinuzoid are potential reviewers of this pull request based on my analysis of git blame information. Thanks @bacongobbler!

@bacongobbler bacongobbler force-pushed the fix-k8s-1.5-response branch 2 times, most recently from 3630fe7 to 338d618 Compare December 14, 2016 19:49
In versions prior to Kubernetes v1.5, an empty list was returned when a resource didn't exist. in
v1.5 it now returns a NoneType, so we need to account for that change and convert it back to an
empty list.
@codecov-io
Copy link

Current coverage is 87.49% (diff: 58.82%)

Merging #1178 into master will decrease coverage by 0.29%

@@             master      #1178   diff @@
==========================================
  Files            43         43          
  Lines          3749       3774    +25   
  Methods           0          0          
  Messages          0          0          
  Branches        649        661    +12   
==========================================
+ Hits           3291       3302    +11   
- Misses          300        308     +8   
- Partials        158        164     +6   

Powered by Codecov. Last update f8ddc3f...508cc61

@bacongobbler
Copy link
Member Author

manually tested and confirmed that this works on k8s 1.5 and k8s 1.4.

@vdice vdice added the LGTM1 label Dec 14, 2016
@bacongobbler bacongobbler merged commit 890a263 into deis:master Dec 14, 2016
@bacongobbler bacongobbler deleted the fix-k8s-1.5-response branch December 14, 2016 21:52
mboersma pushed a commit that referenced this pull request Dec 14, 2016
In versions prior to Kubernetes v1.5, an empty list was returned when a resource didn't exist. in
v1.5 it now returns a NoneType, so we need to account for that change and convert it back to an
empty list.
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Cannot create applications with Kubernetes 1.5
5 participants