Skip to content

Conversation

hswong3i
Copy link

With master branch we simply pin dependency with kubernetes, but now
branch release-0.12 having a hard limit with kubernetes ~= 12.0.

BTW, https://github.com/kubernetes-client/python/releases/tag/v12.0.1
was released on 2020-11-10, where today least release is
https://github.com/kubernetes-client/python/releases/tag/v19.15.0.

This PR remove the upper limit with kubernetes >= 12.0.

Signed-off-by: Wong Hoi Sing Edison hswong3i@pantarei-design.com

@openshift-ci
Copy link

openshift-ci bot commented Nov 17, 2021

Hi @hswong3i. Thanks for your PR.

I'm waiting for a openshift member to verify that this patch is reasonable to test. If it is, they should reply with /ok-to-test on its own line. Until that is done, I will not automatically test new commits in this PR, but the usual testing commands by org members will still work. Regular contributors should join the org to skip this step.

Once the patch is verified, the new status will be reflected by the ok-to-test label.

I understand the commands that are listed here.

Instructions for interacting with me using PR comments are available here. If you have questions or suggestions related to my behavior, please file an issue against the kubernetes/test-infra repository.

@openshift-ci openshift-ci bot added the needs-ok-to-test Indicates a PR that requires an org member to verify it is safe to test. label Nov 17, 2021
@hswong3i
Copy link
Author

This PR is functioning with my https://build.opensuse.org/package/show/home:alvistack/kubernetes-client-python-19.15.0 as below:

Manually tested with:

  • Ubuntu 18.04 + Python 3.6.9 + Ansible 2.12.0
  • Ubuntu 20.04 + Python 3.8.10 + Ansible 2.12.0
  • Ubuntu 21.10 + Python 3.9.7 + Ansible 2.12.0

P.S. I didn't test with Python 2 since v18.20.0b1 (see https://github.com/kubernetes-client/python/blob/master/CHANGELOG.md#v18200b1) already drop the support.

@fabianvf
Copy link
Member

/ok-to-test

@openshift-ci openshift-ci bot added ok-to-test Indicates a non-member PR verified by an org member that is safe to test. and removed needs-ok-to-test Indicates a PR that requires an org member to verify it is safe to test. labels Jan 24, 2022
@hswong3i
Copy link
Author

@fabianvf since Python 2.7 already EOL, I also give some simple remove for setup.py and .travis.yml accordingly. CI looks good now ;-)

With master branch we simply pin dependency with `kubernetes`, but now
branch `release-0.12` having a hard limit with `kubernetes ~= 12.0`.

BTW, https://github.com/kubernetes-client/python/releases/tag/v12.0.1
was released on 2020-11-10, where today least release is
https://github.com/kubernetes-client/python/releases/tag/v19.15.0.

This PR remove the upper limit with `kubernetes >= 12.0`.

Signed-off-by: Wong Hoi Sing Edison <hswong3i@pantarei-design.com>
@hswong3i
Copy link
Author

hswong3i commented Jan 29, 2022

After enable all tests for all target supported Python >= 3.5, it turn out not installable for Python 3.5, see:

According to https://endoflife.date/python, Python 3.5 already EOL since 2020-09-13, where following LTS OSs already support Python 3.6:

  • Ubuntu 18.04 LTS
  • CentOS 7
  • openSUSE Leap 15.3

For the latest commit I give a drop for 3.5 :-S

Copy link

@DenverM80 DenverM80 left a comment

Choose a reason for hiding this comment

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

LGTM :)

@openshift-ci
Copy link

openshift-ci bot commented Feb 1, 2022

@DenverM80: changing LGTM is restricted to collaborators

In response to this:

LGTM :)

Instructions for interacting with me using PR comments are available here. If you have questions or suggestions related to my behavior, please file an issue against the kubernetes/test-infra repository.

@hswong3i
Copy link
Author

hswong3i commented Feb 2, 2022

@@ -1,5 +1,5 @@
jinja2
kubernetes ~= 12.0
kubernetes >= 12.0
Copy link
Contributor

@asmacdo asmacdo Feb 2, 2022

Choose a reason for hiding this comment

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

This has gotten really far behind, but I'm wary to automatically upgrade X versions. WDYT about kubernetes ~= 21.7

It looks like they bump the X quite frequently though

Copy link
Author

Choose a reason for hiding this comment

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

That’s why I use >=, when this PR introduced on 2021 Nov it was still 19.x, and now it is already 21.x.

Using ~= is basically a good idea, but seems not for case in here :-(

Copy link
Author

Choose a reason for hiding this comment

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

From the other side, I may able to explain why python-kubernetes update its x. version but not x.y.

  • Kubernetes API coming with a N/N-1 support policy for many years
  • In case python-kubernetes need to sync its support with Kubernetes corresponding API version AND avoid end user incorrectly install a non-compatible version, they bump the x.
  • In case we also hope to sync with python-kubernetes handling, then we should using both >= and < in our requirements AND/OR also having a x. release bump with similar testing policy

Copy link
Contributor

@asmacdo asmacdo left a comment

Choose a reason for hiding this comment

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

/approve

@asmacdo
Copy link
Contributor

asmacdo commented Feb 3, 2022

/lgtm

@openshift-ci openshift-ci bot added the lgtm Indicates that a PR is ready to be merged. label Feb 3, 2022
@fabianvf
Copy link
Member

fabianvf commented Feb 3, 2022

/approve

@fabianvf fabianvf added the approved Indicates a PR has been approved by an approver from all required OWNERS files. label Feb 3, 2022
@openshift-ci
Copy link

openshift-ci bot commented Feb 3, 2022

[APPROVALNOTIFIER] This PR is APPROVED

Approval requirements bypassed by manually added approval.

This pull-request has been approved by: asmacdo, DenverM80, fabianvf, hswong3i

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

@openshift-merge-robot openshift-merge-robot merged commit d7b0020 into openshift:release-0.12 Feb 3, 2022
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. lgtm Indicates that a PR is ready to be merged. ok-to-test Indicates a non-member PR verified by an org member that is safe to test.
Projects
None yet
Development

Successfully merging this pull request may close these issues.

5 participants