Skip to content

Commit c884c24

Browse files
authored
docs: update example with correct parameters
1 parent a77cda8 commit c884c24

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

examples/patch-example.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -17,7 +17,7 @@ k8sApi.listNamespacedPod('default')
1717
}
1818
];
1919
const options = { "headers": { "Content-type": k8s.PatchUtils.PATCH_FORMAT_JSON_PATCH}};
20-
k8sApi.patchNamespacedPod(res.body.items[0].metadata.name, 'default', patch, undefined, undefined, undefined, undefined, options)
20+
k8sApi.patchNamespacedPod(res.body.items[0].metadata.name, 'default', patch, undefined, undefined, undefined, undefined, undefined, options)
2121
.then(() => { console.log("Patched.")})
2222
.catch((err) => { console.log("Error: "); console.log(err)});
2323
});

0 commit comments

Comments
 (0)