Commit Graph

7 Commits

Author SHA1 Message Date
Alex Kalenyuk
3af3fee84b Add base_resource_lookup to ResourceList to avoid logging error
As seen in https://github.com/openshift/openshift-restclient-python/issues/430
We are hitting a bunch of these logging errors:
```bash
load cache error: __init__() got an unexpected keyword argument 'base_resource_lookup'
```
Which seem like they could be fixed by expecting this arg.

We might be off here so would appreciate any pointers,
but kept it simple at this point without adding the actual client request support.

Signed-off-by: Alex Kalenyuk <akalenyu@redhat.com>
2022-07-18 14:05:27 +03:00
Erich Fussi
51badbcdbb Add 'usedforsecurity=False' parameter to md5 call
This allows to execute in a restricted environment, like a FIPS-enabled
Kubernetes cluster.
See https://docs.python.org/3/library/hashlib.html#hash-algorithms:
> False indicates that the hashing algorithm is [used] as a
> non-cryptographic one-way compression function.
2022-07-07 21:25:03 +00:00
Mitsuru Kariya
5529dedcb3
Fix DynamicClient.server_side_apply
DynamicClient.server_side_apply is designed to accept a dict or a
ResourceInstance as body.  However, if a dict or a ResourceInstance is
passed actually, an error occurs because RESTClientObject.rest cannot
interpret the Content-Type application/apply-patch+yaml.

So, modify RESTClientObject.rest to treat application/apply-patch+yaml
as other json-based Content-Types.
2022-07-06 01:16:57 +09:00
Philipp Sontag
943b0e7444
Support setting the _request_timeout parameter for the dynamic client 2022-04-20 10:23:16 +02:00
abikouo
3117c533b3 ResourceField class should allow defining any keyword
add unit tests
2022-03-07 10:00:03 +01:00
Venu Karnati
70ae7a8da8 Async fix for Dynamic Client 2022-02-09 15:52:02 -08:00
Yu Liao
9d176918a9 removed submodule 2022-01-07 16:17:39 -08:00