From 4ebfd8d33947f1af26e68f2f8ff4a9f5e9a01b33 Mon Sep 17 00:00:00 2001 From: Juldrixx Date: Wed, 23 Apr 2025 20:56:37 +0200 Subject: [PATCH] Fix patch-example.js content type import --- examples/patch-example.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/examples/patch-example.js b/examples/patch-example.js index d3358c488d..d77df111bd 100644 --- a/examples/patch-example.js +++ b/examples/patch-example.js @@ -20,7 +20,7 @@ try { await k8sApi.patchNamespacedPod( { name: res?.items?.[0]?.metadata?.name ?? '', namespace, body: patch }, - k8s.setHeaderOptions('Content-Type', k8s.JsonPatch), + k8s.setHeaderOptions('Content-Type', k8s.PatchStrategy.JsonPatch), ); console.log('Patched.');