Skip to content
This repository was archived by the owner on Apr 17, 2025. It is now read-only.

Commit 28c5bfe

Browse files
authored
Merge pull request #1490 from adrianludwin/cr-agg
Allow builtin 'admin' role to manage HNC objects
2 parents aef17d3 + 0fa702a commit 28c5bfe

File tree

2 files changed

+19
-0
lines changed

2 files changed

+19
-0
lines changed
Lines changed: 18 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,18 @@
1+
2+
---
3+
# This role is intended to be used by *humans*, and is aggregated to the
4+
# builtin 'admin' ClusterRole. By default, 'admin' doesn't get permissions
5+
# to custom resources (see issue #1341).
6+
apiVersion: rbac.authorization.k8s.io/v1
7+
kind: ClusterRole
8+
metadata:
9+
name: admin-role
10+
labels:
11+
rbac.authorization.k8s.io/aggregate-to-admin: "true"
12+
rules:
13+
- apiGroups:
14+
- hnc.x-k8s.io
15+
resources:
16+
- '*'
17+
verbs:
18+
- '*'

incubator/hnc/config/rbac/kustomization.yaml

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,7 @@
11
resources:
22
- role.yaml
33
- role_binding.yaml
4+
- hnc_admin.yaml
45
- leader_election_role.yaml
56
- leader_election_role_binding.yaml
67
# Comment the following 3 lines if you want to disable

0 commit comments

Comments
 (0)