Skip to content

Commit 209dec9

Browse files
committed
server-side apply
1 parent 02ee97c commit 209dec9

File tree

1 file changed

+5
-0
lines changed

1 file changed

+5
-0
lines changed

src/patch.ts

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -2,6 +2,9 @@
22
* Valid Content-Type header values for patch operations. See
33
* https://kubernetes.io/docs/tasks/run-application/update-api-object-kubectl-patch/
44
* for details.
5+
*
6+
* Additionally for Server-Side Apply https://kubernetes.io/docs/reference/using-api/server-side-apply/
7+
* and https://kubernetes.io/docs/reference/using-api/server-side-apply/#api-implementation
58
*/
69
export enum PatchStrategy {
710
/** Diff-like JSON format. */
@@ -10,4 +13,6 @@ export enum PatchStrategy {
1013
MergePatch = 'application/merge-patch+json',
1114
/** Merge with different strategies depending on field metadata. */
1215
StrategicMergePatch = 'application/strategic-merge-patch+json',
16+
/** Server-Side Apply */
17+
ServerSideApply = 'application/apply-patch+yaml'
1318
}

0 commit comments

Comments
 (0)