Skip to content

server side apply support #1801

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 0 additions & 2 deletions .husky/pre-push
Original file line number Diff line number Diff line change
@@ -1,4 +1,2 @@
#!/usr/bin/env sh
. "$(dirname -- "$0")/_/husky.sh"

npm test && npm run lint
5 changes: 5 additions & 0 deletions src/patch.ts
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,9 @@
* Valid Content-Type header values for patch operations. See
* https://kubernetes.io/docs/tasks/run-application/update-api-object-kubectl-patch/
* for details.
*
* Additionally for Server-Side Apply https://kubernetes.io/docs/reference/using-api/server-side-apply/
* and https://kubernetes.io/docs/reference/using-api/server-side-apply/#api-implementation
*/
export enum PatchStrategy {
/** Diff-like JSON format. */
Expand All @@ -10,4 +13,6 @@ export enum PatchStrategy {
MergePatch = 'application/merge-patch+json',
/** Merge with different strategies depending on field metadata. */
StrategicMergePatch = 'application/strategic-merge-patch+json',
/** Server-Side Apply */
ServerSideApply = 'application/apply-patch+yaml',
}
Loading