Skip to content

Commit dbcf380

Browse files
authored
⚠ fake client: use correct RBAC apiGroup name when deciding if to allow unconditional updates (#2412)
* update fake client rbac group for unconditionalUpdate Signed-off-by: Jaideep Rao <jaideep.r97@gmail.com> * add old group name back for backward compatibility Signed-off-by: Jaideep Rao <jaideep.r97@gmail.com> * drop old rbac group name Signed-off-by: Jaideep Rao <jaideep.r97@gmail.com> --------- Signed-off-by: Jaideep Rao <jaideep.r97@gmail.com>
1 parent bc27961 commit dbcf380

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

pkg/client/fake/client.go

+1-1
Original file line numberDiff line numberDiff line change
@@ -1165,7 +1165,7 @@ func allowsUnconditionalUpdate(gvk schema.GroupVersionKind) bool {
11651165
case "PodSecurityPolicy":
11661166
return true
11671167
}
1168-
case "rbac":
1168+
case "rbac.authorization.k8s.io":
11691169
switch gvk.Kind {
11701170
case "ClusterRole", "ClusterRoleBinding", "Role", "RoleBinding":
11711171
return true

0 commit comments

Comments
 (0)