Skip to content

Commit 0d9e504

Browse files
authored
fix: change AdmissionResponse.PatchType to an optional value (#537)
This PR changes back the AdmissionResponse.PatchType to an optional value #536 since validation web hooks cannot contain a PatchType. Fixes #536
1 parent 24c3ec1 commit 0d9e504

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/KubeOps/Operator/Webhooks/AdmissionResponse.cs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -19,7 +19,7 @@ internal sealed class AdmissionResponse
1919
public string[] Warnings { get; init; } = Array.Empty<string>();
2020

2121
[JsonPropertyName("patchType")]
22-
public string PatchType { get; set; } = JsonPatch;
22+
public string? PatchType { get; set; }
2323

2424
[JsonPropertyName("patch")]
2525
public string? Patch { get; set; }

0 commit comments

Comments
 (0)