Closed as not planned
Closed as not planned
Description
Describe the bug
When trying to use patchNamespacedSecret
method on release-1.x branch the following error is raised:
Error: None of the given media types are supported: application/json-patch+json, application/merge-patch+json, application/strategic-merge-patch+json, application/apply-patch+yaml
at ObjectSerializer.getPreferredMediaType (ObjectSerializer.js:1760:1)
at CoreV1ApiRequestFactory.patchNamespacedSecret (CoreV1Api.js:8653:1)
at ObservableCoreV1Api.patchNamespacedSecret (ObservableAPI.js:9211:1)
at ObjectCoreV1Api.patchNamespacedSecret (ObjectParamAPI.js:2661:1)
//...
** Client Version **
release-1.x
** Server Version **
1.24.3
To Reproduce
Sample code triggering the error:
const coreV1 = new CoreV1Api(config);
coreV1.patchNamespacedSecret(
{
namespace: "default",
name: "my-secret",
body: {"tls.crt": "newValue"},
}
)
Also kind of related to this issue, I think we are missing a way to instruct patchNamespacedSecret
which patch strategy we expect it to use. For example in the above example I expect it to use application/merge-patch+json
but have no way right now to provide the patch strategy.