Address API Changes Introduced in k8s v1.16#966
Address API Changes Introduced in k8s v1.16#966k8s-ci-robot merged 1 commit intokubernetes-client:masterfrom
Conversation
072f9ee to
1aabc93
Compare
| from kubernetes.e2e_test import base | ||
|
|
||
|
|
||
| class TestClientExtensions(unittest.TestCase): |
There was a problem hiding this comment.
do we have equivalent test for apps API?
kubernetes/e2e_test/test_apps.py
Outdated
| spec: | ||
| replicas: 3 | ||
| selector: | ||
| matchLabels: |
There was a problem hiding this comment.
Fixed. The original indentation looked that way.
kubernetes/e2e_test/test_apps.py
Outdated
|
|
||
| options = v1_delete_options.V1DeleteOptions() | ||
| resp = api.delete_namespaced_deployment(name, 'default', body=options) | ||
| resp = api.delete_namespaced_deployment(name, 'default', body={}) |
There was a problem hiding this comment.
why don't we keep the v1 DeleteOptions?
There was a problem hiding this comment.
It's optional - I kept it just in case. I think sometime in the past, body was not optional for the delete methods so that was necessary. Now it is not.
038a75a to
b4c9849
Compare
7985e52 to
13790f7
Compare
|
/assign @roycaihw |
|
/lgtm |
|
[APPROVALNOTIFIER] This PR is APPROVED This pull-request has been approved by: micw523, roycaihw The full list of commands accepted by this bot can be found here. The pull request process is described here DetailsNeeds approval from an approver in each of these files:
Approvers can indicate their approval by writing |
Address API Changes Introduced in k8s v1.16 (cherry picked from commit c310289)
Fixes #963 .
This PR: