Skip to content

Commit

Permalink
add test data
Browse files Browse the repository at this point in the history
  • Loading branch information
chrischdi committed May 2, 2024
1 parent 8ece085 commit fe6c471
Show file tree
Hide file tree
Showing 2 changed files with 23 additions and 3 deletions.
3 changes: 3 additions & 0 deletions pkg/rbac/testdata/controller.go
Original file line number Diff line number Diff line change
Expand Up @@ -11,3 +11,6 @@ package controller
// +kubebuilder:rbac:groups=batch,resources=jobs/status,verbs=watch;watch
// +kubebuilder:rbac:groups=art,resources=jobs,verbs=get,namespace=park
// +kubebuilder:rbac:groups=batch.io,resources=cronjobs,resourceNames=foo;bar;baz,verbs=get;watch
// +kubebuilder:rbac:groups=deduplicate,resources=some;some/status,verbs=get;list
// +kubebuilder:rbac:groups=deduplicate,resources=some,verbs=get
// +kubebuilder:rbac:groups=deduplicate,resources=some/status,verbs=list
23 changes: 20 additions & 3 deletions pkg/rbac/testdata/role.yaml
Original file line number Diff line number Diff line change
@@ -1,4 +1,3 @@

---
apiVersion: rbac.authorization.k8s.io/v1
kind: ClusterRole
Expand Down Expand Up @@ -52,7 +51,26 @@ rules:
- get
- patch
- update

- apiGroups:
- deduplicate
resources:
- some
verbs:
- get
- apiGroups:
- deduplicate
resources:
- some
- some/status
verbs:
- get
- list
- apiGroups:
- deduplicate
resources:
- some/status
verbs:
- list
---
apiVersion: rbac.authorization.k8s.io/v1
kind: Role
Expand All @@ -66,7 +84,6 @@ rules:
- jobs
verbs:
- get

---
apiVersion: rbac.authorization.k8s.io/v1
kind: Role
Expand Down

0 comments on commit fe6c471

Please sign in to comment.