Skip to content

Commit 0cb7802

Browse files
authored
Merge pull request #2388 from juldrixx/fix/patch_example_content_type
Fix patch-example.js content type import
2 parents 88184dc + 4ebfd8d commit 0cb7802

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

examples/patch-example.js

+1-1
Original file line numberDiff line numberDiff line change
@@ -20,7 +20,7 @@ try {
2020

2121
await k8sApi.patchNamespacedPod(
2222
{ name: res?.items?.[0]?.metadata?.name ?? '', namespace, body: patch },
23-
k8s.setHeaderOptions('Content-Type', k8s.JsonPatch),
23+
k8s.setHeaderOptions('Content-Type', k8s.PatchStrategy.JsonPatch),
2424
);
2525

2626
console.log('Patched.');

0 commit comments

Comments
 (0)