Skip to content

Commit fa2406f

Browse files
authored
Merge pull request #1801 from davidgamero/davidgamero/server-side-apply
server side apply support
2 parents 3b87e29 + ad48dc3 commit fa2406f

File tree

2 files changed

+5
-2
lines changed

2 files changed

+5
-2
lines changed

.husky/pre-push

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,2 @@
1-
#!/usr/bin/env sh
2-
. "$(dirname -- "$0")/_/husky.sh"
31

42
npm test && npm run lint

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)