-
Notifications
You must be signed in to change notification settings - Fork 3.3k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Address API Changes Introduced in k8s v1.16 #966
Conversation
072f9ee
to
1aabc93
Compare
from kubernetes.e2e_test import base | ||
|
||
|
||
class TestClientExtensions(unittest.TestCase): |
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.
do we have equivalent test for apps API?
kubernetes/e2e_test/test_apps.py
Outdated
kind: Deployment | ||
metadata: | ||
name: %s | ||
spec: | ||
replicas: 3 | ||
selector: | ||
matchLabels: |
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.
nit: fix indentation
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.
Fixed. The original indentation looked that way.
kubernetes/e2e_test/test_apps.py
Outdated
@@ -56,28 +58,33 @@ def test_create_deployment(self): | |||
self.assertIsNotNone(resp) | |||
|
|||
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.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
why don't we keep the v1 DeleteOptions?
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.
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
Needs 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: