Skip to content

Commit beb9fec

Browse files
authored
fix: ContextExtensions merge behavior (#8747)
fix ContextExtensions merge behavior Signed-off-by: Huabing (Robin) Zhao <zhaohuabing@gmail.com>
1 parent 8e813bd commit beb9fec

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

api/v1alpha1/ext_auth_types.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -75,7 +75,7 @@ type ExtAuth struct {
7575
// +patchStrategy=merge
7676
// +listType=map
7777
// +listMapKey=name
78-
ContextExtensions []*ContextExtension `json:"contextExtensions,omitempty"`
78+
ContextExtensions []*ContextExtension `json:"contextExtensions,omitempty" patchMergeKey:"name" patchStrategy:"merge"`
7979

8080
// Sets the HTTP status that is returned when the authorization service returns an error
8181
// or cannot be reached. Defaults to 403 Forbidden.

0 commit comments

Comments
 (0)