From ecfbc59f44086410e1ca542184e63fd21509fb96 Mon Sep 17 00:00:00 2001 From: "Huabing (Robin) Zhao" Date: Tue, 14 Apr 2026 21:56:11 +0800 Subject: [PATCH] fix ContextExtensions merge behavior Signed-off-by: Huabing (Robin) Zhao --- api/v1alpha1/ext_auth_types.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/api/v1alpha1/ext_auth_types.go b/api/v1alpha1/ext_auth_types.go index 7fd4c812e2..09b362c301 100644 --- a/api/v1alpha1/ext_auth_types.go +++ b/api/v1alpha1/ext_auth_types.go @@ -75,7 +75,7 @@ type ExtAuth struct { // +patchStrategy=merge // +listType=map // +listMapKey=name - ContextExtensions []*ContextExtension `json:"contextExtensions,omitempty"` + ContextExtensions []*ContextExtension `json:"contextExtensions,omitempty" patchMergeKey:"name" patchStrategy:"merge"` // Sets the HTTP status that is returned when the authorization service returns an error // or cannot be reached. Defaults to 403 Forbidden.