Skip to content

Commit 574e0f7

Browse files
authored
Merge pull request #840 from dominic-p/patch-1
Add comment about patching custom resources on apply example
2 parents c142034 + e4e6812 commit 574e0f7

File tree

1 file changed

+5
-0
lines changed

1 file changed

+5
-0
lines changed

examples/typescript/apply/apply-example.ts

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -31,6 +31,11 @@ export async function apply(specPath: string): Promise<k8s.KubernetesObject[]> {
3131
// block.
3232
await client.read(spec);
3333
// we got the resource, so it exists, so patch it
34+
//
35+
// Note that this could fail if the spec refers to a custom resource. For custom resources you may need
36+
// to specify a different patch merge strategy in the content-type header.
37+
//
38+
// See: https://github.com/kubernetes/kubernetes/issues/97423
3439
const response = await client.patch(spec);
3540
created.push(response.body);
3641
} catch (e) {

0 commit comments

Comments
 (0)