We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
2 parents c142034 + e4e6812 commit 574e0f7Copy full SHA for 574e0f7
examples/typescript/apply/apply-example.ts
@@ -31,6 +31,11 @@ export async function apply(specPath: string): Promise<k8s.KubernetesObject[]> {
31
// block.
32
await client.read(spec);
33
// 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
39
const response = await client.patch(spec);
40
created.push(response.body);
41
} catch (e) {
0 commit comments