Commit Graph

1621 Commits

Author SHA1 Message Date
Tomasz Prus
299a67845d Update root .gitignore 2023-02-19 19:26:03 +01:00
Tomasz Prus
04aba3d0a1 [doc] update Sphinx configuration 2023-02-19 19:16:48 +01:00
Kubernetes Prow Robot
055fa706b8
Merge pull request #2008 from yliaog/master
1.26.1 beta README and CHANGELOG
2023-02-13 09:41:29 -08:00
Kubernetes Prow Robot
84f5fea2a3
Merge pull request #2007 from yliaog/master
added release 1.26 e2e
2023-01-31 14:48:50 -08:00
Yu Liao
8bd9ff9307 update changelog with release notes from master branch 2023-01-31 21:24:53 +00:00
Yu Liao
67572e710b updated compatibility matrix and maintenance status 2023-01-31 21:24:17 +00:00
Yu Liao
5cbce2442d added release 1.26 e2e 2023-01-31 21:20:09 +00:00
Kubernetes Prow Robot
8e102fa428
Merge pull request #2003 from yliaog/master
added 3.11 to the tests
2023-01-31 11:26:50 -08:00
Yu Liao
a62a271aa4
Merge pull request #1902 from mostaphaRoudsari/patch-1
Fix small misspelling error
2023-01-30 21:05:45 -08:00
Kubernetes Prow Robot
f81c7281cf
Merge pull request #1976 from t-yrka/inconsistent-timeout
Convert timeout to milliseconds when using poll method
2023-01-30 15:16:49 -08:00
Yu Liao
cec66a1b55 added 3.11 to the tests 2023-01-30 22:59:35 +00:00
Kubernetes Prow Robot
806fb623e1
Merge pull request #1996 from yliaog/master
update README and CHANGELOG
2023-01-30 09:38:50 -08:00
Yu Liao
6a7cc398b8
Merge pull request #1971 from chandsharma/patch-1
added newline at the end of code.
2023-01-28 21:12:12 -08:00
Yu Liao
872643ca52
Merge pull request #1980 from ghinks/examples/pod_exec
doc: comment pod_exec.py for multiple containers
2023-01-28 21:11:12 -08:00
Yu Liao
a1a36b1d73
Merge pull request #1997 from venukarnati92/master
Dynamic Client Request Timeout Example
2023-01-28 21:09:13 -08:00
Venu Karnati
655b78c491 Creating Configmap with Request Timeout Setting
Updating README With Request Timeout Example

Updating Copyrights to 2023

Update timeout-settings.md
2023-01-27 14:53:57 -08:00
Yu Liao
6cc224ecb8 uploading to codecov failure does not fail the CI.
https://github.com/yliaog/client-python/actions/runs/4010290284/jobs/6886629356
2023-01-25 22:06:34 +00:00
Yu Liao
752e26e054 updated compatibility matrix and maintenance status in README 2023-01-25 21:57:42 +00:00
Yu Liao
e09f13ba78 update changelog 2023-01-25 21:57:42 +00:00
Yu Liao
ca8a5b1432 Fixed issue: pass_env values cannot contain whitespace, use comma to have multiple
values in a single line

https://github.com/kubernetes-client/python/actions/runs/4001147429/jobs/6867090020
2023-01-25 21:57:42 +00:00
Yu Liao
13988e4612
Merge pull request #1993 from yliaog/master
Removed 3.6 python version
2023-01-24 14:45:42 -08:00
Yu Liao
21124e831c Removed 3.6 python version
https://github.com/kubernetes-client/python/actions/runs/3999583001/jobs/6863664535
2023-01-24 22:27:29 +00:00
Yu Liao
d67bc8c2bd
Merge pull request #1990 from yliaog/automated-release-of-26.0.0-snapshot-upstream-master-1674525870
Automated release of 26.0.0 snapshot upstream master 1674525870
2023-01-24 11:09:15 -08:00
Yu Liao
a0c63cf55e
Merge pull request #1991 from yliaog/master
updated kind action version, kind version, and node image version.
2023-01-24 10:51:53 -08:00
Yu Liao
095b47f628 updated kind action version, kind version, and node image version and
python versions.

Fix
https://github.com/kubernetes-client/python/actions/runs/3992341088/jobs/6848101335
2023-01-24 05:32:17 +00:00
Yu Liao
356208a0f6 generated client change 2023-01-24 02:04:54 +00:00
Yu Liao
5f8455ae05 generated API change 2023-01-24 02:04:53 +00:00
Yu Liao
5b99d287de generated client change for custom_objects 2023-01-24 02:04:53 +00:00
Yu Liao
71791c3835 update changelog 2023-01-24 02:04:30 +00:00
Yu Liao
8b263d1bea update version constants for 26.0.0-snapshot release 2023-01-24 02:04:30 +00:00
Kubernetes Prow Robot
2a27133f7e
Merge pull request #1949 from arrikto/feature-in-cluster-token-refresh
Improve the refreshing of tokens from inside the cluster
2023-01-17 09:06:33 -08:00
Kubernetes Prow Robot
8f80cf444e
Merge pull request #1947 from arrikto/feature-out-of-cluster-token-refresh
Fix the refreshing of tokens from outside the cluster
2023-01-16 11:28:09 -08:00
Kubernetes Prow Robot
8c8c15bd30
Merge pull request #1935 from Ark-kun/patch-1
Fixed double module imports
2023-01-16 11:18:10 -08:00
Glenn Hinks
e8954f7a5b doc: comment pod_exec.py for multiple containers
The behavior in kubectl is to run the exec command
against the default container. However, this needs to
be specified with the client call.

Add a comment in the example for this.
2023-01-01 08:31:24 -05:00
Tomasz Spyrka
fd13fc8c71 Convert timeout to ms when using poll method 2022-12-23 23:41:44 +01:00
Chandan Sharma
d1d084943d
added newline at the end of code.
For better readability
2022-12-17 13:42:59 +05:30
Kubernetes Prow Robot
5a96bbcbe2
Merge pull request #1956 from bentastic27/patch-1
duplicate configuration.host lines in example
2022-11-29 10:57:23 -08:00
Kubernetes Prow Robot
d0df4694be
Merge pull request #1955 from fabianvf/dynamic-usedforsecurity
Only use `usedforsecurity` if supported
2022-11-22 11:04:15 -08:00
Ben Healey
b25ead9390
duplicate configuration.host lines in example 2022-11-22 13:58:40 -05:00
Fabian von Feilitzsch
1ac54eff7b Only use usedforsecurity if supported
Fixes #1944

This was only added in Python 3.9, will fall back to the old behavior if
`usedforsecurity` is not available.
2022-11-22 09:55:19 -05:00
Kubernetes Prow Robot
2d586a158e
Merge pull request #1951 from chrisgzf/fix-url-typo-timeout-settings
Fix typo in timeout-settings docs URL
2022-11-11 13:45:55 -08:00
Christopher Goh
86dcb55cbc Fix typo in timeout-settings docs URL 2022-11-12 02:15:31 +08:00
Alexis Zamanis
392a8c1d07 Improve the refreshing of tokens from inside the cluster
Requests from inside the cluster misuse the API to refresh tokens.

Signed-off-by: Alexis Zamanis <alexiszam@arrikto.com>
2022-11-10 11:48:31 +02:00
Alexis Zamanis
a07531b932 Fix the refreshing of tokens from outside the cluster
Requests from outside the cluster may have stale tokens and fail with
status code `401`.

Signed-off-by: Alexis Zamanis <alexiszam@arrikto.com>
2022-11-08 17:13:24 +02:00
Kubernetes Prow Robot
9df5fa7666
Merge pull request #1938 from yliaog/master
25.3 GA release changelog and README comptability matrix
2022-10-25 16:56:35 -07:00
Yu Liao
b1b621af9e updated 25.3 release support matrix 2022-10-25 23:50:00 +00:00
Yu Liao
85a1226744 update changelog with release notes from master branch 2022-10-25 23:49:31 +00:00
Alexey Volkov
a4189ccf4e
Fixed double module imports
In Python, when you write `import foo.bar.baz` this means that the modules would be imported and the name `foo` will be bound locally and becomes available in the module. https://docs.python.org/3/reference/simple_stmts.html#import

So, doing `import kubernetes.client` leads to name `kubernetes` (not `client`) being added to the `kubernetes` module leading to a weird duplicate nesting. See:
```
>>> import kubernetes
>>> kubernetes
<module 'kubernetes' from 'C:\\Users\\Ark\\AppData\\Local\\Programs\\Python\\Python310\\lib\\site-packages\\kubernetes\\__init__.py'>
>>> kubernetes.kubernetes
<module 'kubernetes' from 'C:\\Users\\Ark\\AppData\\Local\\Programs\\Python\\Python310\\lib\\site-packages\\kubernetes\\__init__.py'>
```

We can solve this issues by using the `import ... from ...` syntax: Replace `import kubernetes.client` with `from kubernetes import client`.

I see that most modules already use relative imports, so I'm using relative imports here as well: `from . import client`.
2022-10-23 17:50:50 -07:00
Kubernetes Prow Robot
4dddad8dc4
Merge pull request #1932 from yliaog/master
update changelog and readme
2022-10-20 13:11:22 -07:00
Yu Liao
0a3bdddf0a update changelog with release notes from master branch 2022-10-20 18:48:31 +00:00