Thanks to visit codestin.com
Credit goes to github.com

Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
1013 commits
Select commit Hold shift + click to select a range
a6d44ff
Merge pull request #2127 from yliaog/master
k8s-ci-robot Sep 18, 2023
54ee9e1
test: add more assertions
Ananya2001-an Sep 22, 2023
af68284
Drop urllib3 upper bound
hauntsaninja Oct 4, 2023
d5d835a
Merge pull request #2131 from hauntsaninja/patch-1
k8s-ci-robot Oct 4, 2023
c6acb1f
Merge pull request #2125 from kubernetes-client/dependabot/github_act…
k8s-ci-robot Oct 9, 2023
3358429
Merge branch 'kubernetes-client:master' into test-add-asserts
Ananya2001-an Oct 10, 2023
20c9ca5
ci: update codecov action version to v3
Ananya2001-an Oct 10, 2023
36cfbe6
Merge pull request #2128 from Ananya2001-an/test-add-asserts
k8s-ci-robot Oct 16, 2023
50f9dd4
remove deprecated IOError
Nov 26, 2023
5194426
Return empty list when there is no matching resource instsnce items …
dirrao Nov 28, 2023
1992802
Merge pull request #2155 from dirrao/2142-dynamic-client-empty-result…
k8s-ci-robot Nov 29, 2023
f6c65df
Avoid shadowing important built-ins
rafrafek Dec 1, 2023
116deb4
Bump actions/setup-python from 4 to 5
dependabot[bot] Dec 7, 2023
6e1c955
update version constants for 29.0.0+snapshot release
yliaog Dec 18, 2023
79f9423
update changelog
yliaog Dec 18, 2023
e3ada8b
generated client change for custom_objects
yliaog Dec 18, 2023
ab09751
generated API change
yliaog Dec 18, 2023
c7be3fc
generated client change
yliaog Dec 18, 2023
fcb41d7
Merge pull request #2164 from yliaog/automated-release-of-29.0.0+snap…
k8s-ci-robot Dec 18, 2023
67d28fd
update changelog
yliaog Dec 18, 2023
b65f760
updated compatibility matrix and maintenance status
yliaog Dec 18, 2023
2270ff9
Merge pull request #2166 from yliaog/master
k8s-ci-robot Dec 18, 2023
72c830d
Merge pull request #2159 from kubernetes-client/dependabot/github_act…
k8s-ci-robot Dec 20, 2023
1193741
Merge pull request #2100 from davidopic/master
k8s-ci-robot Dec 20, 2023
e1cc5e2
update changelog with release notes from master branch
yliaog Dec 28, 2023
ecdbed0
Merge pull request #2173 from yliaog/master
k8s-ci-robot Jan 2, 2024
c9326f2
update changelog with release notes from master branch
yliaog Jan 8, 2024
29dafbb
updated compatibility matrix and maintenance status
yliaog Jan 8, 2024
f6fe74a
Merge pull request #2177 from yliaog/master
k8s-ci-robot Jan 8, 2024
647d5d1
Provides a patch to stop using urllib3 deprecated APIs until the upgr…
arcivanov Jan 2, 2024
df43d15
Merge pull request #2175 from arcivanov/issue_2169
k8s-ci-robot Jan 8, 2024
346e28a
Replace deprecated assertEquals call
bnavigator Jan 13, 2024
69cfcda
Fix merging current-context in kube-configs
tomplus Jan 31, 2024
72de627
Bump codecov/codecov-action from 3 to 4
dependabot[bot] Feb 1, 2024
3b89a71
remove ipaddress from requirements.txt
tomplus Feb 4, 2024
c1f1a47
Merge pull request #2189 from tomplus/chore/remove-ipaddress
k8s-ci-robot Feb 7, 2024
eda1923
Bump helm/kind-action from 1.8.0 to 1.9.0
dependabot[bot] Feb 12, 2024
4c9c058
Merge pull request #2153 from jxdv/update-ioerror
k8s-ci-robot Feb 12, 2024
09bab99
Merge pull request #2178 from bnavigator/patch-1
k8s-ci-robot Feb 12, 2024
87d8e74
Merge pull request #2188 from kubernetes-client/dependabot/github_act…
k8s-ci-robot Feb 12, 2024
a43cda5
Merge pull request #2190 from kubernetes-client/dependabot/github_act…
k8s-ci-robot Feb 12, 2024
7712421
Merge pull request #2187 from tomplus/fix/mergin-current-context
k8s-ci-robot Feb 12, 2024
d36ec43
Merge pull request #1968 from FlorianJDF/custom_client_config_new_client
k8s-ci-robot Feb 19, 2024
eb9e4d0
Added the Pod_log.py file in example
Harshu1441 Feb 24, 2024
488518d
Enable binary support for WSClient
meln5674 Feb 14, 2024
851dc2a
Merge pull request #2194 from meln5674/feature/binary-wsclient
k8s-ci-robot Feb 29, 2024
1e47204
replace utcnow with now, due to utcnow will be deprecated
showjason Mar 30, 2024
07c94fb
fix time format
showjason Mar 30, 2024
e0234d3
Merge pull request #2215 from showjason/replace-utcnow-with-now
k8s-ci-robot Apr 2, 2024
76ffd71
Adding utils.format_quantity
rkschamer Apr 4, 2024
d1deeeb
adding format_quantity tests
rkschamer Apr 5, 2024
0f3f8ec
add test_parse_quantity
rkschamer Apr 5, 2024
9f9bec2
Merge pull request #2076 from bobh66/watch_named_object
k8s-ci-robot Apr 23, 2024
926c725
Bump helm/kind-action from 1.9.0 to 1.10.0
dependabot[bot] Apr 24, 2024
94e4211
Merge pull request #2220 from kubernetes-client/dependabot/github_act…
k8s-ci-robot Apr 25, 2024
f9c38c5
commented out rest_urllib_headers.diff as it caused AttributeError:
yliaog May 21, 2024
e1fce8d
Merge pull request #2234 from yliaog/master
k8s-ci-robot May 21, 2024
dd01438
update version constants for 30.0.0+snapshot release
yliaog May 21, 2024
6305fa8
update changelog
yliaog May 21, 2024
744f0eb
generated client change for custom_objects
yliaog May 21, 2024
2aa427d
generated API change
yliaog May 21, 2024
109fe00
generated client change
yliaog May 21, 2024
5c45f0b
Merge pull request #2235 from yliaog/automated-release-of-30.0.0+snap…
k8s-ci-robot May 22, 2024
43e5a48
update changelog
yliaog May 22, 2024
c31a5bf
updated compatibility matrix and maintenance status in README
yliaog May 22, 2024
cfc677e
Merge pull request #2237 from yliaog/master
k8s-ci-robot May 22, 2024
e3e210d
update changelog
yliaog May 28, 2024
174bf03
updated compatibility matrix in README
yliaog May 28, 2024
139dc0c
Merge pull request #2242 from yliaog/master
k8s-ci-robot May 30, 2024
a6a0b92
update changelog
yliaog Jun 5, 2024
ace4882
updated compatibility matrix and maintenance status
yliaog Jun 5, 2024
b40eaf2
Add ability to use server_side_apply to utils.create_from_yaml
dcmcand Jun 27, 2024
7a278c7
Merge pull request #2245 from yliaog/master
k8s-ci-robot Jul 3, 2024
babfc75
add .readthedocs.yaml config file
aapjeisbaas Jul 16, 2024
9d620ad
Add utility functions to parse and format GEP-2257 Duration strings f…
kflynn Aug 10, 2024
90d4fef
Merge pull request #2261 from kflynn/flynn/dev/gep-2257
k8s-ci-robot Aug 12, 2024
862f48a
Clean up range checking in format_duration.
kflynn Aug 16, 2024
40aaae5
Doctests!
kflynn Aug 16, 2024
8e3d9c4
Formatting.
kflynn Aug 16, 2024
1bc5b5e
Merge pull request #2266 from kflynn/flynn/dev/gep-2257-tweaks
k8s-ci-robot Aug 16, 2024
6a5e7e9
Don't rely on durationpy for formatting; just do it manually.
kflynn Aug 21, 2024
3b4121e
Have an example program too.
kflynn Aug 21, 2024
f05c642
Review feedback
kflynn Aug 21, 2024
b3d4b57
Merge pull request #2269 from kflynn/flynn/dev/gep-2257-tweaks
k8s-ci-robot Aug 23, 2024
dac8a5c
Update kube_config_test.py
kavishdahekar Aug 27, 2024
51d65de
Merge branch 'kubernetes-client:master' into patch-1
rafrafek Aug 29, 2024
f27644d
update version constants for 31.0.0+snapshot release
yliaog Aug 29, 2024
b9ef244
update changelog
yliaog Aug 29, 2024
57c5182
generated client change for custom_objects
yliaog Aug 29, 2024
35fb14e
generated API change
yliaog Aug 29, 2024
9c66346
generated client change
yliaog Aug 29, 2024
35e5630
Merge pull request #2273 from yliaog/automated-release-of-31.0.0+snap…
k8s-ci-robot Aug 29, 2024
dcc00cc
update changelog
yliaog Aug 29, 2024
c7be67c
updated compatibility matrix and maintenance status in the README
yliaog Aug 29, 2024
9b3c83c
Merge pull request #2275 from yliaog/master
k8s-ci-robot Aug 29, 2024
d8f35c7
Merge pull request #2272 from kavishdahekar/kavishdahekar-patch-1
k8s-ci-robot Aug 30, 2024
5331a4e
update changelog
yliaog Sep 6, 2024
ec6041b
updated compatibility matrix and maintenance status
yliaog Sep 6, 2024
0411039
Merge pull request #2278 from yliaog/master
k8s-ci-robot Sep 7, 2024
51a0480
Update the compatibility matrix and maintenance status in the README …
yliaog Sep 13, 2024
03225b6
update changelog
yliaog Sep 13, 2024
18fe668
Merge pull request #2252 from dcmcand/master
k8s-ci-robot Sep 16, 2024
6d33389
Fixed CHANGELOG, the API version should be 1.31.0, the release tooling
yliaog Sep 18, 2024
eeeb43c
Merge pull request #2282 from yliaog/master
k8s-ci-robot Sep 18, 2024
10ced92
Remove mock from test-requirements.txt
jmontleon Sep 22, 2024
b7ccf17
Merge pull request #2285 from jmontleon/remove-mock-dep
k8s-ci-robot Sep 24, 2024
5939b73
Remove py from test-requirements.txt
jelly Sep 26, 2024
2dfa782
Added Shell=True for windows flow. Fixes file not found error while r…
PranoyD Oct 5, 2024
b77b53a
google-auth Made as optional dependency
shivanand007 Oct 8, 2024
cc9ab0e
google-auth Made as optional dependency
shivanand007 Oct 8, 2024
4522098
Made google_auth Depedent Code Block Optional, It will execute only i…
shivanand007 Oct 9, 2024
f414832
Merge pull request #2289 from PranoyD/master
k8s-ci-robot Oct 9, 2024
331848f
Add patch_namespaced_config_map example
broken-dream Oct 24, 2024
4da83df
Merge pull request #2301 from broken-dream/master
k8s-ci-robot Oct 24, 2024
8c60fe9
Support providing cluster info to the exec provider
brendandburns Oct 30, 2024
542d948
Merge pull request #2303 from kubernetes-client/exec_cluster
k8s-ci-robot Nov 6, 2024
07fb11f
Merge pull request #2288 from jelly/drop-py-test-dep
k8s-ci-robot Nov 10, 2024
b2f8420
Bump codecov/codecov-action from 4 to 5
dependabot[bot] Nov 15, 2024
3ae5fbb
Merge pull request #2306 from kubernetes-client/dependabot/github_act…
k8s-ci-robot Nov 20, 2024
ee5b9e2
Merge branch 'kubernetes-client:master' into patch-1
rafrafek Nov 27, 2024
98a5be8
Merge pull request #2157 from rafrafek/patch-1
k8s-ci-robot Nov 27, 2024
e970c1c
Bump helm/kind-action from 1.10.0 to 1.11.0
dependabot[bot] Dec 17, 2024
e104702
Merge pull request #2312 from kubernetes-client/dependabot/github_act…
k8s-ci-robot Dec 17, 2024
90bc4b9
update version constants for 32.0.0+snapshot release
yliaog Dec 17, 2024
bb6af0b
update changelog
yliaog Dec 17, 2024
d21b108
generated client change for custom_objects
yliaog Dec 17, 2024
5342870
generated API change
yliaog Dec 17, 2024
d99d780
generated client change
yliaog Dec 17, 2024
5354790
Bump helm/kind-action from 1.11.0 to 1.12.0
dependabot[bot] Dec 24, 2024
3b58df2
Close the Python sockets when the Websocket closes
anvilpete Jan 6, 2025
16ffec4
Add support for allowWatchBookmarks to the dynamic client
anvilpete Jan 7, 2025
4a9f4fa
Merge branch 'kubernetes-client:master' into fixthedocs
aapjeisbaas Jan 8, 2025
bf1d581
Merge pull request #2313 from yliaog/automated-release-of-32.0.0+snap…
k8s-ci-robot Jan 13, 2025
94b22b8
update changelog
yliaog Jan 13, 2025
2a23e76
updated compatibility matrix and maintenance status.
yliaog Jan 13, 2025
f7701ac
replaced python 3.7 version, it is no longer supported by ubuntu 24.04.
yliaog Jan 13, 2025
01de10d
Merge pull request #2319 from yliaog/master
k8s-ci-robot Jan 14, 2025
c8ff872
Merge pull request #2315 from kubernetes-client/dependabot/github_act…
k8s-ci-robot Jan 15, 2025
9cb6ee1
updated compatibility matrix and maintenance status
yliaog Jan 16, 2025
56fda55
update changelog
yliaog Jan 16, 2025
0219799
Merge pull request #2324 from yliaog/master
k8s-ci-robot Jan 17, 2025
e93f240
Merge pull request #2316 from anvil-works/handle-ws-close
k8s-ci-robot Jan 18, 2025
fef0987
Add introduction to Kubernetes patch types
h-ema-r Jan 18, 2025
50617b0
update changelog with release notes from master branch
yliaog Jan 23, 2025
7294f56
updated compatibility matrix and maintenance status
yliaog Jan 23, 2025
a5c3373
Merge pull request #2332 from yliaog/master
k8s-ci-robot Jan 23, 2025
e852ac7
mark shell=False in ExecProvider for linux/darwin platforms
akhilputhiry Jan 29, 2025
df1b0c1
Tweak test to fail like the production code does
tomasaschan Jan 29, 2025
f64be15
fix: Extract value from ConfigNode before storing it
tomasaschan Jan 29, 2025
9775a12
Merge pull request #2216 from rkschamer/master
k8s-ci-robot Jan 29, 2025
065a968
Merge pull request #2338 from akhilputhiry/2333
k8s-ci-robot Jan 31, 2025
234a493
Merge pull request #2327 from h-ema-r/master
k8s-ci-robot Feb 2, 2025
eb34f98
Update pod_logs.py
Harshu1441 Feb 9, 2025
a588f51
Address review feedback
tomasaschan Feb 14, 2025
de280fb
Merge pull request #2340 from tomasaschan/fix-exec-provider
k8s-ci-robot Feb 14, 2025
6073b9e
Update the compatibility matrix and maintenance status
yliaog Feb 14, 2025
47a5d2a
update changelog with release notes from master branch
yliaog Feb 14, 2025
b41b955
Update pod_logs.py
Harshu1441 Feb 16, 2025
230925f
Merge pull request #2200 from Harshu1441/master
k8s-ci-robot Feb 17, 2025
d80165d
Merge pull request #2349 from yliaog/master
k8s-ci-robot Feb 18, 2025
d1adc8a
Changes for issue 2358
p172913 Mar 8, 2025
b2f9755
Create test_pod_logs.py
p172913 Mar 13, 2025
3cee537
Update watch_test.py
p172913 Mar 18, 2025
14a2554
Delete kubernetes/test/test_pod_logs.py
p172913 Mar 18, 2025
f0a73c8
Update watch.py
p172913 Mar 19, 2025
1268769
Update watch_test.py
p172913 Mar 19, 2025
1e093d0
Update watch_test.py
p172913 Mar 19, 2025
f4d0842
Update watch.py
p172913 Mar 20, 2025
d451d2f
Update watch_test.py
p172913 Mar 20, 2025
bd32360
Merge pull request #2372 from p172913/master
k8s-ci-robot Mar 21, 2025
b1b3e3a
Update README.md
dalongxia2017 Apr 7, 2025
11b9733
Add instructions for enabling debug logging in the Kubernetes Python …
ViduminiKulathunga Apr 9, 2025
2eca99a
Merge pull request #2383 from dalongxia2017/patch-1
k8s-ci-robot Apr 9, 2025
50771fd
Merge pull request #2384 from ViduminiKulathunga/enable-debug-logging…
k8s-ci-robot Apr 10, 2025
0945c8b
Add an example of watch recovery using resource_version and bookmarks
anvilpete Apr 24, 2025
d010f2e
Merge pull request #2317 from anvil-works/allow_watch_bookmarks
k8s-ci-robot Apr 24, 2025
b387479
Add debug logging doc and example
umutdz Jan 23, 2025
83f460a
Merge pull request #2330 from umutdz/add-debug-logging-doc
k8s-ci-robot Apr 30, 2025
c9db1a3
Merge pull request #2254 from aapjeisbaas/fixthedocs
k8s-ci-robot May 14, 2025
9579f3e
update version constants for 33.0.0+snapshot release
yliaog May 26, 2025
c8ae995
update changelog
yliaog May 26, 2025
9732548
generated client change for custom_objects
yliaog May 26, 2025
1cc7ca5
generated API change
yliaog May 26, 2025
3fa4610
generated client change
yliaog May 26, 2025
ee35f6b
feat: populate cluster config from client.authentication.k8s.io/exec …
ma-ts May 27, 2025
09146ba
Merge pull request #2398 from yliaog/master
k8s-ci-robot May 27, 2025
4dd0b3e
updated compatibility matrix and maintenance status
yliaog May 27, 2025
7c22fc1
Merge pull request #2401 from yliaog/master
k8s-ci-robot May 27, 2025
d88d61b
feat: add switch control when watching events whether deserialization…
Kevinz857 May 31, 2025
9c96ab5
updated compatibility matrix
yliaog Jun 2, 2025
ba728cc
Merge pull request #2409 from yliaog/master
k8s-ci-robot Jun 2, 2025
7b75914
updated compatibility matrix and maintenance status
yliaog Jun 9, 2025
3e6cc58
Merge pull request #2413 from yliaog/master
k8s-ci-robot Jun 9, 2025
e3b373f
Added proxy variable to read values from environment
p172913 Apr 28, 2025
945de4e
Merge branch 'kubernetes-client:master' into master
p172913 Jun 10, 2025
51f4db5
Merge pull request #2390 from p172913/master
k8s-ci-robot Jun 24, 2025
c330b84
Merge pull request #2406 from Kevinz857/feat-deserialize-control-v2
k8s-ci-robot Jun 24, 2025
ec65195
fix: only do this when extensions is defined
ma-ts Jul 28, 2025
d0cfad3
Handle JSONDecodeError in dynamic client discovery
tamilhce Aug 7, 2025
e62dc53
Bump actions/checkout from 4 to 5
dependabot[bot] Aug 12, 2025
158dc70
Remove oauthlib pin from requirements.txt
danigm Aug 14, 2025
1ae6adc
Fixed the watch_test.py indentation error, commented out the test, it
yliaog Aug 14, 2025
06fd307
Merge pull request #2437 from yliaog/master
k8s-ci-robot Aug 18, 2025
1084ba3
Merge pull request #2434 from danigm/oauthlib-dep
k8s-ci-robot Aug 18, 2025
405fc9e
Merge pull request #2433 from kubernetes-client/dependabot/github_act…
yliaog Aug 18, 2025
ab318a5
Merge pull request #2431 from tamilhce/master
k8s-ci-robot Aug 18, 2025
0c56ef1
Merge pull request #2399 from ma-ts/master
k8s-ci-robot Aug 20, 2025
b647e9a
Set an upper limit on the urllib3 dependency
Tenzer Jul 8, 2025
6e7c539
Merge pull request #2417 from Tenzer/urllib3-upper-limit
k8s-ci-robot Aug 26, 2025
ce901f3
fix: Try to recreate cached file if tmp file is not exist
mazanax Sep 1, 2025
592c2f5
Bump actions/setup-python from 5 to 6
dependabot[bot] Sep 5, 2025
ef10586
made script insert_proxy_config.sh executable
yliaog Sep 11, 2025
7cebc2b
Merge pull request #2445 from yliaog/master
k8s-ci-robot Sep 12, 2025
905438d
fixed the CONFIG_PATH
yliaog Sep 12, 2025
68549c1
Merge pull request #2446 from yliaog/master
k8s-ci-robot Sep 15, 2025
e0fbe10
update version constants for 34.0.0+snapshot release
yliaog Sep 15, 2025
4efe7bc
update changelog
yliaog Sep 15, 2025
8e485e1
generated client change for custom_objects
yliaog Sep 15, 2025
4f585b3
generated API change
yliaog Sep 15, 2025
c8dbc4b
generated client change
yliaog Sep 15, 2025
bbc5253
Merge pull request #2447 from yliaog/automated-release-of-34.0.0+snap…
k8s-ci-robot Sep 15, 2025
f5e3065
updated compatibility matrix and maintenance status
yliaog Sep 15, 2025
547193a
update changelog
yliaog Sep 15, 2025
74638a2
update changelog
yliaog Sep 22, 2025
8afc6ea
Merge pull request #2449 from yliaog/master
k8s-ci-robot Sep 22, 2025
7da95eb
Updated the compatibility matrix and maintenance status
yliaog Sep 29, 2025
543bce6
Merge pull request #2456 from yliaog/master
k8s-ci-robot Sep 29, 2025
5f6cdb2
Merge pull request #2443 from kubernetes-client/dependabot/github_act…
k8s-ci-robot Sep 30, 2025
a486091
Merge pull request #2294 from shivanand007/add-optional-google-auth
k8s-ci-robot Oct 10, 2025
b01d03d
feat: Remove the urllib3 pinning
ZPascal Oct 14, 2025
fe1a331
Merge pull request #2461 from ZPascal/patch-1
k8s-ci-robot Oct 28, 2025
c3b7325
Bump helm/kind-action from 1.12.0 to 1.13.0
dependabot[bot] Nov 4, 2025
25f5c73
Add test case for cached file recreation
NicoPolazzi Nov 19, 2025
4ecaa15
Merge pull request #2468 from kubernetes-client/dependabot/github_act…
k8s-ci-robot Nov 20, 2025
1d6c076
Merge pull request #2471 from NicoPolazzi/fix/recreate-deleted-temp-f…
k8s-ci-robot Nov 20, 2025
be4ac3c
Bump actions/checkout from 5 to 6
dependabot[bot] Nov 21, 2025
aee29c0
Chaging which python version is supported
etiennnr Dec 1, 2025
31ced98
Fix: Improve RFC3339 date parsing validation (Issue #2418)
Naman-cell Dec 2, 2025
96f1812
Merge pull request #2472 from kubernetes-client/dependabot/github_act…
k8s-ci-robot Dec 4, 2025
a49d85d
Merge pull request #2476 from Naman-cell/fix/issue-2418-parse-rfc3339…
k8s-ci-robot Dec 5, 2025
17978f9
readding old versions
etiennnr Dec 5, 2025
be4072f
Use named logger for leader election
sesmi123 Dec 14, 2025
46c7c5f
Fix(typos) : fixing the spelling errors for the words kubernetes in …
NagurDiwakar Dec 15, 2025
a89716b
Fix indentation in code snippets
KartikVerma0 Dec 18, 2025
1aacf4a
Merge pull request #2490 from KartikVerma0/master
k8s-ci-robot Dec 22, 2025
9ed06a0
Merge pull request #2485 from sesmi123/2364
k8s-ci-robot Dec 30, 2025
3dd2d6f
Merge pull request #2475 from etiennnr/master
k8s-ci-robot Dec 30, 2025
91ea0cc
Merge pull request #2487 from NagurDiwakar/fix-typos
k8s-ci-robot Dec 30, 2025
b63b496
feat: Avoid urllib3 2.6.0
sathieu Dec 30, 2025
65a8c61
Merge pull request #2491 from sathieu/avoid-urllib3-2.6.0
k8s-ci-robot Dec 30, 2025
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
The table of contents is too big for display.
Diff view
Diff view
  •  
  •  
  •  
The diff you're trying to view is too large. We only load the first 3000 changed files.
37 changes: 37 additions & 0 deletions .github/workflows/deploy-wiki.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,37 @@
name: Deploy Wiki

on:
push:
paths:
- 'kubernetes/docs/**'
branches:
- master

jobs:
deploy-wiki:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v6
with:
submodules: true
- name: Install rsync
run: |
sudo apt install rsync grsync
- name: Clone Wiki
run: |
git config --global --add safe.directory "/github/workspace"
git config --global --add safe.directory "/github/workspace/wiki"
git clone https://github.com/kubernetes-client/python.wiki.git wiki
message=$(git log -1 --format=%B)
- name: Copy to wiki repository
run: |
rsync -av --delete kubernetes/docs/ wiki/ --exclude .git
- name: Push wiki
run: |
cd wiki
git config user.name github-actions
git config user.email [email protected]
git add .
git commit -m "$message"
git push

12 changes: 6 additions & 6 deletions .github/workflows/e2e-master.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -13,24 +13,24 @@ jobs:
runs-on: ubuntu-latest
strategy:
matrix:
python-version: [3.6, 3.7, 3.8, 3.9]
python-version: ["3.8", "3.9", "3.10"]
steps:
- uses: actions/checkout@v2
- uses: actions/checkout@v6
with:
submodules: true
- name: Create Kind Cluster
uses: helm/kind-action@v1.1.0
uses: helm/kind-action@v1.13.0
with:
cluster_name: kubernetes-python-e2e-master-${{ matrix.python-version }}
# The kind version to be used to spin the cluster up
# this needs to be updated whenever a new Kind version is released
version: v0.11.1
version: v0.17.0
# Update the config here whenever a new client snapshot is performed
# This would eventually point to cluster with the latest Kubernetes version
# as we sync with Kubernetes upstream
config: .github/workflows/kind-configs/cluster-1.18.yaml
config: .github/workflows/kind-configs/cluster-1.25.yaml
- name: Set up Python ${{ matrix.python-version }}
uses: actions/setup-python@v2.2.2
uses: actions/setup-python@v6
with:
python-version: ${{ matrix.python-version }}
- name: Install dependencies
Expand Down
6 changes: 3 additions & 3 deletions .github/workflows/e2e-release-11.0.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -15,11 +15,11 @@ jobs:
matrix:
python-version: [2.7, 3.5, 3.6, 3.7, 3.8]
steps:
- uses: actions/checkout@v2
- uses: actions/checkout@v6
with:
submodules: true
- name: Create Kind Cluster
uses: helm/kind-action@v1.1.0
uses: helm/kind-action@v1.13.0
with:
cluster_name: kubernetes-python-e2e-release-11.0-${{ matrix.python-version }}
# The kind version to be used to spin the cluster up
Expand All @@ -30,7 +30,7 @@ jobs:
# as we sync with Kubernetes upstream
config: .github/workflows/kind-configs/cluster-1.15.yaml
- name: Set up Python ${{ matrix.python-version }}
uses: actions/setup-python@v2.2.2
uses: actions/setup-python@v6
with:
python-version: ${{ matrix.python-version }}
- name: Install dependencies
Expand Down
6 changes: 3 additions & 3 deletions .github/workflows/e2e-release-12.0.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -15,11 +15,11 @@ jobs:
matrix:
python-version: [2.7, 3.5, 3.6, 3.7, 3.8]
steps:
- uses: actions/checkout@v2
- uses: actions/checkout@v6
with:
submodules: true
- name: Create Kind Cluster
uses: helm/kind-action@v1.1.0
uses: helm/kind-action@v1.13.0
with:
cluster_name: kubernetes-python-e2e-release-12.0-${{ matrix.python-version }}
# The kind version to be used to spin the cluster up
Expand All @@ -30,7 +30,7 @@ jobs:
# as we sync with Kubernetes upstream
config: .github/workflows/kind-configs/cluster-1.16.yaml
- name: Set up Python ${{ matrix.python-version }}
uses: actions/setup-python@v2.2.2
uses: actions/setup-python@v6
with:
python-version: ${{ matrix.python-version }}
- name: Install dependencies
Expand Down
6 changes: 3 additions & 3 deletions .github/workflows/e2e-release-17.0.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -15,11 +15,11 @@ jobs:
matrix:
python-version: [2.7, 3.5, 3.6, 3.7, 3.8]
steps:
- uses: actions/checkout@v2
- uses: actions/checkout@v6
with:
submodules: true
- name: Create Kind Cluster
uses: helm/kind-action@v1.1.0
uses: helm/kind-action@v1.13.0
with:
cluster_name: kubernetes-python-e2e-release-17.0-${{ matrix.python-version }}
# The kind version to be used to spin the cluster up
Expand All @@ -30,7 +30,7 @@ jobs:
# as we sync with Kubernetes upstream
config: .github/workflows/kind-configs/cluster-1.17.yaml
- name: Set up Python ${{ matrix.python-version }}
uses: actions/setup-python@v2.2.2
uses: actions/setup-python@v6
with:
python-version: ${{ matrix.python-version }}
- name: Install dependencies
Expand Down
6 changes: 3 additions & 3 deletions .github/workflows/e2e-release-18.0.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -15,11 +15,11 @@ jobs:
matrix:
python-version: [3.6, 3.7, 3.8, 3.9]
steps:
- uses: actions/checkout@v2
- uses: actions/checkout@v6
with:
submodules: true
- name: Create Kind Cluster
uses: helm/kind-action@v1.1.0
uses: helm/kind-action@v1.13.0
with:
cluster_name: kubernetes-python-e2e-release-18.0-${{ matrix.python-version }}
# The kind version to be used to spin the cluster up
Expand All @@ -30,7 +30,7 @@ jobs:
# as we sync with Kubernetes upstream
config: .github/workflows/kind-configs/cluster-1.18.yaml
- name: Set up Python ${{ matrix.python-version }}
uses: actions/setup-python@v2.2.2
uses: actions/setup-python@v6
with:
python-version: ${{ matrix.python-version }}
- name: Install dependencies
Expand Down
44 changes: 44 additions & 0 deletions .github/workflows/e2e-release-26.0.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,44 @@
name: End to End Tests - release-26.0

on:
push:
branches:
- release-26.0
pull_request:
branches:
- release-26.0

jobs:
build:
runs-on: ubuntu-latest
strategy:
matrix:
python-version: [3.7, 3.8, 3.9]
steps:
- uses: actions/checkout@v6
with:
submodules: true
- name: Create Kind Cluster
uses: helm/[email protected]
with:
cluster_name: kubernetes-python-e2e-release-26.0-${{ matrix.python-version }}
# The kind version to be used to spin the cluster up
# this needs to be updated whenever a new Kind version is released
version: v0.17.0
# Update the config here whenever a new client snapshot is performed
# This would eventually point to cluster with the latest Kubernetes version
# as we sync with Kubernetes upstream
config: .github/workflows/kind-configs/cluster-1.26.yaml
- name: Set up Python ${{ matrix.python-version }}
uses: actions/setup-python@v6
with:
python-version: ${{ matrix.python-version }}
- name: Install dependencies
run: |
python -m pip install --upgrade pip
python -m pip install -r requirements.txt
python -m pip install -r test-requirements.txt
- name: Install package
run: python -m pip install -e .
- name: Run End to End tests
run: pytest -vvv -s kubernetes/e2e_test
7 changes: 7 additions & 0 deletions .github/workflows/kind-configs/cluster-1.25.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,7 @@
kind: Cluster
apiVersion: kind.x-k8s.io/v1alpha4
nodes:
- role: control-plane
image: kindest/node:v1.25.3@sha256:f1de3b0670462f43280114eccceab8bf1b9576d2afe0582f8f74529da6fd0365
- role: worker
image: kindest/node:v1.25.3@sha256:f1de3b0670462f43280114eccceab8bf1b9576d2afe0582f8f74529da6fd0365
7 changes: 7 additions & 0 deletions .github/workflows/kind-configs/cluster-1.26.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,7 @@
kind: Cluster
apiVersion: kind.x-k8s.io/v1alpha4
nodes:
- role: control-plane
image: kindest/node:v1.26.0@sha256:3264cbae4b80c241743d12644b2506fff13dce07fcadf29079c1d06a47b399dd
- role: worker
image: kindest/node:v1.26.0@sha256:3264cbae4b80c241743d12644b2506fff13dce07fcadf29079c1d06a47b399dd
25 changes: 20 additions & 5 deletions .github/workflows/test.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -4,18 +4,20 @@ on: [ push, pull_request ]

jobs:
build:

runs-on: ubuntu-latest
strategy:
matrix:
python-version: [3.6, 3.7, 3.8, 3.9]
python-version: ["3.8", "3.10", "3.11", "3.12"]
include:
- python-version: "3.9"
use_coverage: 'coverage'

steps:
- uses: actions/checkout@v2
- uses: actions/checkout@v6
with:
submodules: true
- name: Set up Python ${{ matrix.python-version }}
uses: actions/setup-python@v2.2.2
uses: actions/setup-python@v6
with:
python-version: ${{ matrix.python-version }}
- name: Install dependencies
Expand All @@ -31,5 +33,18 @@ jobs:
flake8 . --count --exit-zero --max-complexity=10 --max-line-length=127 --statistics
- name: Install Tox and any other packages
run: pip install tox
- name: Run Tox

- name: Test without coverage
if: "! matrix.use_coverage"
run: tox -e py # Run tox using the version of Python in `PATH`

- name: Test with coverage
if: "matrix.use_coverage"
run: tox -e py-coverage

- name: Upload coverage to Codecov
if: "matrix.use_coverage"
uses: codecov/codecov-action@v5
with:
fail_ci_if_error: false
verbose: true
4 changes: 0 additions & 4 deletions .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -67,7 +67,3 @@ target/
.idea/*
*.iml
.vscode

# created by sphinx documentation build
doc/source/README.md
doc/_build
3 changes: 0 additions & 3 deletions .gitmodules

This file was deleted.

53 changes: 53 additions & 0 deletions .readthedocs.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,53 @@
# Read the Docs configuration file for Sphinx projects
# See https://docs.readthedocs.io/en/stable/config-file/v2.html for details

# Required
version: 2

# Set the OS, Python version and other tools you might need
build:
os: ubuntu-22.04
tools:
python: "3.12"
# You can also specify other tool versions:
# nodejs: "20"
# rust: "1.70"
# golang: "1.20"

# Build documentation in the "docs/" directory with Sphinx
sphinx:
configuration: doc/source/conf.py
# You can configure Sphinx to use a different builder, for instance use the dirhtml builder for simpler URLs
# builder: "dirhtml"
# Fail on all warnings to avoid broken references
# fail_on_warning: true

# Optionally build your docs in additional formats such as PDF and ePub
# formats:
# - pdf
# - epub

# Optional but recommended, declare the Python requirements required
# to build your documentation
# See https://docs.readthedocs.io/en/stable/guides/reproducible-builds.html
python:
install:
- requirements: doc/requirements-docs.txt
- requirements: test-requirements.txt


# git clone --depth 1 https://github.com/kubernetes-client/python .
# git fetch origin --force --prune --prune-tags --depth 50 refs/heads/master:refs/remotes/origin/master
# git checkout --force origin/master
# git clean -d -f -f
# python3.7 -mvirtualenv $READTHEDOCS_VIRTUALENV_PATH
# python -m pip install --upgrade --no-cache-dir pip setuptools
# python -m pip install --upgrade --no-cache-dir pillow mock==1.0.1 alabaster>=0.7,<0.8,!=0.7.5 commonmark==0.9.1 recommonmark==0.5.0 sphinx<2 sphinx-rtd-theme<0.5 readthedocs-sphinx-ext<2.3 jinja2<3.1.0

# cat doc/source/conf.py
# python -m sphinx -T -E -b html -d _build/doctrees -D language=en . $READTHEDOCS_OUTPUT/html
# python -m sphinx -T -E -b readthedocssinglehtmllocalmedia -d _build/doctrees -D language=en . $READTHEDOCS_OUTPUT/htmlzip
# python -m sphinx -T -E -b latex -d _build/doctrees -D language=en . $READTHEDOCS_OUTPUT/pdf
# cat latexmkrc
# latexmk -r latexmkrc -pdf -f -dvi- -ps- -jobname=kubernetes -interaction=nonstopmode
# python -m sphinx -T -E -b epub -d _build/doctrees -D language=en . $READTHEDOCS_OUTPUT/epub
Loading