Skip to main content

Function: computeRawPatchCount()

function computeRawPatchCount(original: KubeObjectInterface, modified: KubeObjectInterface): number;

Defined in: lib/k8s/patchUtils.ts:88

Returns the total number of raw diff operations between two objects, ignoring /metadata/managedFields diffs (which are produced as a side-effect of EditorDialog's default "Hide Managed Fields" rendering and do not represent user-intent changes).

Used to distinguish "no changes at all" from "all changes were in server-managed fields".

Parameters

ParameterType
originalKubeObjectInterface
modifiedKubeObjectInterface

Returns

number