-
Notifications
You must be signed in to change notification settings - Fork 3.4k
Description
What happened (please include outputs or screenshots):
The kubectl CLI uses a StrategicMergePatch type in the underlying API request for apply
.
The Python client should be able to do the same by letting us pass a Content-Type of 'application/strategic-merge-patch+json' into the headers dict, but this odd little piece of generated code precludes us from doing so
python/kubernetes/client/api/apps_v1_api.py
Line 3889 in ccd3ce4
header_params['Content-Type'] = self.api_client.select_header_content_type( # noqa: E501 |
I would like to leverage the Python client as much as possible without resorting to kubectl
. Is there a way to get around this for the time being?
Thanks in advance!
Environment:
-
Kubernetes version (
kubectl version
): -
OS (e.g., MacOS 10.13.6):
10.15.1 -
Python version (
python --version
)
3.8.0 -
Python client version (
pip list | grep kubernetes
)
10.0.1