-
Notifications
You must be signed in to change notification settings - Fork 3.3k
Release v18.17.0a1 #1411
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
Release v18.17.0a1 #1411
Conversation
…architecture independent
…ed 'kubernetes.leaderelection' error To reproduce: Make sure to create a file outside of checked out python repo directory. $ cat hello_k8s.py import kubernetes kubernetes.config.load_kube_config() k8s = kubernetes.client.CoreV1Api() print("Listing pods with their IPs:") ret = k8s.list_pod_for_all_namespaces(watch=False) for i in ret.items: print("%s\t%s\t%s" % (i.status.pod_ip, i.metadata.namespace, i.metadata.name)) python hello_k8s.py Traceback (most recent call last): File "hello_k8s.py", line 1, in <module> import kubernetes File "<frozen zipimport>", line 259, in load_module File "anaconda3/lib/python3.8/site-packages/kubernetes-17.0.0_snapshot-py3.8.egg/kubernetes/__init__.py", line 25, in <module> ModuleNotFoundError: No module named 'kubernetes.leaderelection'
- move regex compilation to the top of the module to enable caching.
Use get_default_copy() API with configuration.
kubernetes 1.18 is no longer maintained. 1.18.17 was the last patch release.
[APPROVALNOTIFIER] This PR is APPROVED This pull-request has been approved by: 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 |
@@ -42,6 +42,9 @@ SETTING_FILE="${TEMP_FOLDER}/settings" | |||
echo "export KUBERNETES_BRANCH=\"$(python ${SCRIPT_ROOT}/constants.py KUBERNETES_BRANCH)\"" > $SETTING_FILE | |||
echo "export CLIENT_VERSION=\"$(python ${SCRIPT_ROOT}/constants.py CLIENT_VERSION)\"" >> $SETTING_FILE | |||
echo "export PACKAGE_NAME=\"client\"" >> $SETTING_FILE | |||
# Workaround for https://github.com/kubernetes-client/gen/pull/183. | |||
# The env is required by not used by python client. | |||
echo "export LIBRARY=\"undefined\"" >> $SETTING_FILE |
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.
should this be added to 'master' branch?
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.
hopefully not once kubernetes-client/gen#187 is merged. I filed #1412 to track documenting the issue.
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.
s/The env is required by not used by python client/The env is required but not used by python client/
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.
done
v17 and v18 snapshots are in different branches, why would that cause conflicts when pulling from master into release branch? |
I think it's because the 18.0 snapshot is not in the master branch, and the master branch has the 17.0 snapshot. Pulling master from
An example conflict:
git thinks a lot of files are modified by both branches:
|
the current release process does not support multiple parallel releasing well, better to document your release process for v18, so v19 and v20 can follow the same steps. |
/lgtm |
Filed #1414 to track documenting the release process. I will try getting to it today or tomorrow. |
the env is not used by the python client.
removed the generated test directory following the hot issue (https://github.com/kubernetes-client/python/blob/master/devel/release.md#hot-issues): 4. Remove the tests directory
Reference: - [kubernetes-client#866](kubernetes-client#866) - [kubernetes-client#959](kubernetes-client#959) Signed-off-by: Nabarun Pal <[email protected]>
Reference: kubernetes-client#974 Signed-off-by: Nabarun Pal <[email protected]>
/lgtm |
/hold cancel the documentation tasks don't block this PR |
I found it quite hard to resolve the conflicts when pulling master into the release branch. The conflict was caused by we generating v17 and v18 snapshots in parallel. As a workaround I cherrypicked important changes in the master branch into the release branch.