Commit Graph

1686 Commits

Author SHA1 Message Date
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
Yu Liao
f29d1086ca update changelog with release notes from master branch 2022-10-20 18:48:18 +00:00
Yu Liao
753fb21425 updated compatibility matrix for 25.3.0b1 2022-10-20 17:35:54 +00:00
Yu Liao
d6fffeb2b9 updated compatibility matrix for 25.2.0b1 2022-10-20 17:35:49 +00:00
Kubernetes Prow Robot
55cba659bc
Merge pull request #1924 from yliaog/master
changelog and README for 1.25 alpha release
2022-10-18 16:57:00 -07:00
Felix Matouschek
2630bfaba7 Add to_dict method to ResourceField
This allows to recursively convert ResourceFields to dicts.

Signed-off-by: Felix Matouschek <fmatouschek@redhat.com>
2022-10-17 09:01:20 +02:00
Kubernetes Prow Robot
0ac8293ed2
Merge pull request #1926 from mans2singh/rollout_ds_desc_update
Updated example description
2022-10-15 20:07:06 -07:00
mans2singh
841c2561bb Updated example description 2022-10-15 21:26:54 -04:00
Kubernetes Prow Robot
e36a91be6b
Merge pull request #1912 from ramvikrams/%1
decoding a not safe url in load_kube_config
2022-10-13 15:21:01 -07:00
Yu Liao
218239c9f3 update changelog 2022-10-13 18:29:02 +00:00
Yu Liao
431e5a1791 updated compatiblity matrix for 1.25 alpha release. 2022-10-13 18:28:53 +00:00
Kubernetes Prow Robot
a4c43ede69
Merge pull request #1922 from yliaog/master
mock.call_args.kwargs was added after python 3.7, switched to the old…
2022-10-13 10:59:01 -07:00
Yu Liao
f8f6d11058 mock.call_args.kwargs was added after python 3.7, switched to the old way to allow 3.7 and below pass 2022-10-13 17:28:54 +00:00
Kubernetes Prow Robot
d1995299dc
Merge pull request #1916 from vgupta3/oidc-idp-ca-cert-file-support
Add support for using oidc  CA certificate file while refreshing token
2022-10-12 17:43:01 -07:00
Kubernetes Prow Robot
3fb24ad6af
Merge pull request #1919 from mans2singh/node_labels_corr
Updated typo in example steps
2022-10-12 17:37:00 -07:00
mans2singh
97f23e0ad0 Updated example steps 2022-10-12 20:21:25 -04:00
Kubernetes Prow Robot
9be097199a
Merge pull request #1917 from kubernetes-client/automated-release-of-25.0.0-snapshot-upstream-master-1665519144
Automated release of 25.0.0 snapshot upstream master 1665519144
2022-10-11 13:24:42 -07:00
Yu Liao
beb98e076f generated client change
Some checks failed
Kubernetes Python Client - Validation / build (3.10) (push) Has been cancelled
Kubernetes Python Client - Validation / build (3.6) (push) Has been cancelled
Kubernetes Python Client - Validation / build (3.7) (push) Has been cancelled
Kubernetes Python Client - Validation / build (3.8) (push) Has been cancelled
Kubernetes Python Client - Validation / build (3.9, coverage) (push) Has been cancelled
2022-10-11 20:12:43 +00:00
Yu Liao
06e8a7216a generated API change 2022-10-11 20:12:42 +00:00
Yu Liao
70b5364aee generated client change for custom_objects 2022-10-11 20:12:42 +00:00
Yu Liao
36c5cd0b7e update changelog 2022-10-11 20:12:25 +00:00
Yu Liao
7631863fbb update version constants for 25.0.0-snapshot release 2022-10-11 20:12:25 +00:00
Vibhor Gupta
f740c634ec add testcases 2022-10-12 00:12:25 +05:30
Kubernetes Prow Robot
c3f4f1b52b
Merge pull request #1913 from yliaog/master
Fixed scripts/rest_client_patch.diff, it is corrupt and cannot be applied
2022-10-11 11:19:02 -07:00
Vibhor Gupta
94dbbf9118 Add support for using oidc CA certificate file while refreshing token 2022-10-11 19:01:26 +05:30
Yu Liao
ecb669ad3a Fixed scripts/rest_client_patch.diff, it is corrupt and cannot be applied. 2022-10-11 04:09:48 +00:00
ram vikram singh
9152c48f0a
decoding a not safe url in load_kube_config
for issue #1911 fixing load_kube_config for decoding unsafe url token
2022-10-11 00:07:09 +05:30
Kubernetes Prow Robot
8cc9f981eb
Merge pull request #1910 from ShoaibKakal/master
added [back to top] button
2022-10-10 10:07:21 -07:00
Kubernetes Prow Robot
d5625ea78d
Merge pull request #1899 from pmareke/feature/add-e2e-test-for-strategic-merge-patch
Add e2e test for strategic merge patch
2022-10-10 10:01:21 -07:00
Kubernetes Prow Robot
5385eb0123
Merge pull request #1903 from shafinhasnat/master
example added for create_from_dict
2022-10-10 09:41:21 -07:00
Shoaib
938f0f1517
added [back to top] button 2022-10-05 18:11:56 +05:00
shafinhasnat
3aa11438e3 example added for create_from_dict 2022-09-28 12:33:57 +06:00
Mostapha Sadeghipour Roudsari
d83ab3e570
Fix small misspelling error
handly -> handle
2022-09-27 19:46:35 -04:00
Pedro Lopez Mareque
f7fc9deb18 remove old assertion and improve tests 2022-09-27 08:54:41 +02:00
Pedro Lopez Mareque
c8d814ddce fix tests 2022-09-27 08:36:56 +02:00
Pedro Lopez Mareque
89730b40d4 Run autopep8 and fix style 2022-09-27 07:38:23 +02:00
Kubernetes Prow Robot
5c2cbffab6
Merge pull request #1895 from kubernetes-client/dependabot/github_actions/helm/kind-action-1.4.0
Bump helm/kind-action from 1.3.0 to 1.4.0
2022-09-26 14:52:15 -07:00