RBAC cluster/rolebinding
created without subjects and SA
namespace check
#129265
Labels
kind/bug
Categorizes issue or PR as related to a bug.
needs-triage
Indicates an issue or PR lacks a `triage/foo` label and requires one.
sig/auth
Categorizes an issue or PR as relevant to SIG Auth.
What happened?
When creating RBAC
rolebinding
andclusterrolebinding
with subjectsServiceAccount
, there is no subjects empty check and namespace empty check.What did you expect to happen?
Shoud check both subjects empty and namespace empty.
How can we reproduce it (as minimally and precisely as possible)?
rolebinding-test.yaml
clusterrolebinding-test.yaml
kubectl apply -f xxx.yaml
will reproduce this issue.Anything else we need to know?
Issue tested in 1.31.
Kubernetes version
1.31
The text was updated successfully, but these errors were encountered: