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>
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.
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.