You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
/// <param name="from">The source entity to compare from.</param>
34
83
/// <param name="to">The target entity to compare to.</param>
84
+
/// <param name="operationsFilter">An optional filter action that filters the <see cref="PatchOperation"/>s that are contained in the <see cref="JsonPatch"/>.</param>
35
85
/// <returns>A <see cref="JsonNode"/> representing the JSON Patch diff between the two entities.</returns>
36
86
/// <exception cref="InvalidOperationException">Thrown if the diff could not be created.</exception>
/// Patch a given entity on the Kubernetes API by calculating the diff between the current entity and the provided entity.
331
331
/// This method fetches the current entity from the API, computes the patch, and applies it.
332
+
/// The patch does return the same object if there were no changes detected.
333
+
/// If no operationsFilter is provided, the default filter (<see cref="JsonPatchExtensions.DefaultOperationsFilter"/> is applied.
332
334
/// </summary>
333
335
/// <typeparam name="TEntity">The type of the Kubernetes entity.</typeparam>
334
336
/// <param name="entity">The entity containing the desired updates.</param>
337
+
/// <param name="operationsFilter">The filter that is applied to the <see cref="PatchOperation"/>s in the <see cref="JsonPatch"/> to determine if changes are present.</param>
335
338
/// <param name="cancellationToken">Cancellation token to monitor for cancellation requests.</param>
336
339
/// <returns>The patched entity.</returns>
337
340
/// <exception cref="InvalidOperationException">Thrown if the entity to be patched does not exist on the API.</exception>
/// <param name="to">The updated entity with desired changes.</param>
370
+
/// <param name="operationsFilter">The filter that is applied to the <see cref="PatchOperation"/>s in the <see cref="JsonPatch"/> to determine if changes are present.</param>
360
371
/// <param name="cancellationToken">Cancellation token to monitor for cancellation requests.</param>
0 commit comments