Skip to content
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

Merged
merged 1 commit into from
Sep 24, 2019

Conversation

micw523
Copy link
Contributor

@micw523 micw523 commented Sep 24, 2019

Fixes #963 .
This PR:

@k8s-ci-robot k8s-ci-robot added the do-not-merge/work-in-progress Indicates that a PR should not merge because it is a work in progress. label Sep 24, 2019
@k8s-ci-robot k8s-ci-robot added cncf-cla: yes Indicates the PR's author has signed the CNCF CLA. size/L Denotes a PR that changes 100-499 lines, ignoring generated files. labels Sep 24, 2019
@micw523 micw523 force-pushed the testfix116 branch 2 times, most recently from 072f9ee to 1aabc93 Compare September 24, 2019 19:17
@micw523 micw523 changed the title [WIP] Address API Changes Introduced in k8s v1.16 Address API Changes Introduced in k8s v1.16 Sep 24, 2019
@k8s-ci-robot k8s-ci-robot removed the do-not-merge/work-in-progress Indicates that a PR should not merge because it is a work in progress. label Sep 24, 2019
from kubernetes.e2e_test import base


class TestClientExtensions(unittest.TestCase):
Copy link
Member

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?

@k8s-ci-robot k8s-ci-robot added size/M Denotes a PR that changes 30-99 lines, ignoring generated files. and removed size/L Denotes a PR that changes 100-499 lines, ignoring generated files. labels Sep 24, 2019
kind: Deployment
metadata:
name: %s
spec:
replicas: 3
selector:
matchLabels:
Copy link
Member

Choose a reason for hiding this comment

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

nit: fix indentation

Copy link
Contributor Author

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.

@@ -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={})
Copy link
Member

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?

Copy link
Contributor Author

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.

@micw523 micw523 force-pushed the testfix116 branch 2 times, most recently from 038a75a to b4c9849 Compare September 24, 2019 20:15
@micw523 micw523 force-pushed the testfix116 branch 2 times, most recently from 7985e52 to 13790f7 Compare September 24, 2019 20:29
@micw523
Copy link
Contributor Author

micw523 commented Sep 24, 2019

/assign @roycaihw

@roycaihw
Copy link
Member

/lgtm
/approve

@k8s-ci-robot k8s-ci-robot added the lgtm "Looks good to me", indicates that a PR is ready to be merged. label Sep 24, 2019
@k8s-ci-robot
Copy link
Contributor

[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 /approve in a comment
Approvers can cancel approval by writing /approve cancel in a comment

@k8s-ci-robot k8s-ci-robot added the approved Indicates a PR has been approved by an approver from all required OWNERS files. label Sep 24, 2019
@k8s-ci-robot k8s-ci-robot merged commit c310289 into kubernetes-client:master Sep 24, 2019
@micw523 micw523 deleted the testfix116 branch October 1, 2019 16:19
fabianvf pushed a commit to fabianvf/python that referenced this pull request Feb 21, 2020
Address API Changes Introduced in k8s v1.16

(cherry picked from commit c310289)
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
approved Indicates a PR has been approved by an approver from all required OWNERS files. cncf-cla: yes Indicates the PR's author has signed the CNCF CLA. lgtm "Looks good to me", indicates that a PR is ready to be merged. size/M Denotes a PR that changes 30-99 lines, ignoring generated files.
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Travis CI is failing with Kubernetes 1.16
3 participants