Skip to content

Commit 9841484

Browse files
authored
Merge pull request #872 from dominykas/patch-1
Update example with correct parameters
2 parents a77cda8 + c884c24 commit 9841484

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)