Skip to content

Commit

Permalink
Example uses spec.userReference for permissions crd
Browse files Browse the repository at this point in the history
  • Loading branch information
ChunyiLyu committed Jul 1, 2021
1 parent 44d6c54 commit 025435c
Showing 1 changed file with 14 additions and 0 deletions.
14 changes: 14 additions & 0 deletions docs/examples/permissions/permission-user-reference.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,14 @@
apiVersion: rabbitmq.com/v1beta1
kind: Permission
metadata:
name: example-permission
spec:
vhost: "/" # name of a vhost
userReference:
name: "example-user" # name of a user.rabbitmq.com in the same namespace; must specify either spec.userReference or spec.user
permissions:
write: ".*"
configure: ".*"
read: ".*"
rabbitmqClusterReference:
name: sample

0 comments on commit 025435c

Please sign in to comment.