@kubernetes/client-node
Version:
NodeJS client for kubernetes
20 lines (19 loc) • 902 B
TypeScript
/**
* 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 declare const PatchStrategy: {
/** Diff-like JSON format. */
readonly JsonPatch: "application/json-patch+json";
/** Simple merge. */
readonly MergePatch: "application/merge-patch+json";
/** Merge with different strategies depending on field metadata. */
readonly StrategicMergePatch: "application/strategic-merge-patch+json";
/** Server-Side Apply */
readonly ServerSideApply: "application/apply-patch+yaml";
};
export type PatchStrategy = (typeof PatchStrategy)[keyof typeof PatchStrategy];