-
Kubernetes Submit Queue authored
Automatic merge from submit-queue add rules not allow message when authorize failed old result: ``` # ./cluster/kubectl.sh --token=/test get po Error from server (Forbidden): User "" cannot list pods in the namespace "default".: "<nil>" (get pods) ``` new result: ``` # ./cluster/kubectl.sh --token=/test get po Error from server (Forbidden): User "" cannot list pods in the namespace "default".: "rules not allow" (get pods) ``` test.yaml ``` kind: Role apiVersion: rbac.authorization.k8s.io/v1alpha1 metadata: name: test rules: - apiGroups: ["*"] verbs: ["create"] resources: ["*"] --- kind: RoleBinding apiVersion: rbac.authorization.k8s.io/v1alpha1 metadata: name: admin-resource-binding subjects: - kind: Group name: test roleRef: kind: Role name: test ```dedec2d1