Commit Graph

352 Commits

Author SHA1 Message Date
yliao
c7f09fe9b1 generated client change 2024-01-08 18:01:48 +00:00
yliao
b83b93f14b generated API change 2024-01-08 18:01:48 +00:00
yliao
699740f8b5 generated client change for custom_objects 2024-01-08 18:01:48 +00:00
yliao
b697f01c31 generated client change 2023-12-28 17:53:22 +00:00
David E
061c257701 Handled UTF-8 edge cases in Watch 2023-12-28 17:53:22 +00:00
yliao
88600bd7be generated client change 2023-12-18 21:52:12 +00:00
yliao
c7be3fc235 generated client change 2023-12-18 19:33:52 +00:00
yliao
ab097519b8 generated API change 2023-12-18 19:33:51 +00:00
yliao
e3ada8b8d9 generated client change for custom_objects 2023-12-18 19:33:51 +00:00
gopal
51944266f3 Return empty list when there is no matching resource instsnce items to return 2023-11-28 14:02:58 +05:30
Ananya Nayak
54ee9e13cf test: add more assertions 2023-09-28 04:49:22 +00:00
Yu Liao
f494b8de33 generated client change 2023-08-31 01:36:47 +00:00
Yu Liao
a0e401e364 generated API change 2023-08-31 01:36:47 +00:00
Yu Liao
8642188b60 generated client change for custom_objects 2023-08-31 01:36:46 +00:00
Kubernetes Prow Robot
76ec6f5ce5
Merge pull request #2095 from dbasunag/master
fix split call to handle apis of the format a/b/c
2023-07-31 11:00:38 -07:00
dbasunag
6875510e78 fix split call to handle apis of the format a/b/c 2023-07-31 09:44:38 -04:00
Tiago Silva
68fe8eea41
Adds support for custom Server Name Indication (SNI) 2023-06-27 14:26:50 +01:00
Yu Liao
42d6156b27 generated client change 2023-05-31 21:09:36 +00:00
Yu Liao
b490a11a7a generated API change 2023-05-31 21:09:35 +00:00
Yu Liao
ea66f65f4f generated client change for custom_objects 2023-05-31 21:09:35 +00:00
Kubernetes Prow Robot
9a2d5e4290
Merge pull request #2049 from juergenhoetzel/disable_equal_scalar_resolv
Prevent ConstructorError when parsing YAML containing '=' scalars
2023-05-24 12:42:50 -07:00
Peter Horsley
b5b39b378e Fix exception in ExecProvider when no console is attached. 2023-05-08 08:11:56 +10:00
Jürgen Hötzel
1729f35c7e Prevent ConstructorError when parsing YAML containing '=' scalars
pyyaml assignes '=' to tag:yaml.org,2002:value even though there's
no constructor for it. Removing the implicit resolver for '=' fixes
the issue.
2023-04-30 18:07:39 +02:00
Kubernetes Prow Robot
2f546b9dcb
Merge pull request #1966 from blackstorm/lee/fix-load-config
Fix load_kube_config unexpected `kube_config_path` keyword argument
2023-04-10 12:57:15 -07:00
Tomasz Prus
cdfd750727 Fix snapshot version to be compliant with PEP440. 2023-02-26 12:01:40 +01:00
Yu Liao
854672a93a
Merge pull request #1998 from kianmeng/fix-typos
Fix typos
2023-02-24 20:36:00 -08:00
Kubernetes Prow Robot
0c6714abef
Merge pull request #1886 from 0xFelix/resource-field-to-dict
Add to_dict method to ResourceField
2023-02-24 18:06:05 -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
Kian-Meng Ang
2d299b7a57 Fix typos
Found via `codespell -S CHANGELOG.md,*.json,*.unprocessed -L querys,couldn`
2023-01-27 11:10:29 +08: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
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
Tomasz Spyrka
fd13fc8c71 Convert timeout to ms when using poll method 2022-12-23 23:41:44 +01:00
6764e8d7dd keep config_file value 2022-12-21 06:58:51 +00:00
ab478a309f remove config_file arg check 2022-12-12 06:59:59 +00:00
6da7447d3a separte weak relate condtions 2022-12-12 06:54:17 +00:00
b648cb918e fix load_config unexpected keyword argument 2022-12-12 06:41:57 +00:00
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
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
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
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
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
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
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