Skip to content

Commit

Permalink
Update 02-rbac.yaml
Browse files Browse the repository at this point in the history
update rbac to run in container
  • Loading branch information
aneeshkp authored Feb 7, 2025
1 parent 75c3315 commit e8ec90c
Showing 1 changed file with 19 additions and 13 deletions.
32 changes: 19 additions & 13 deletions deploy/02-rbac.yaml
Original file line number Diff line number Diff line change
@@ -1,22 +1,28 @@
---
apiVersion: rbac.authorization.k8s.io/v1
kind: ClusterRole
kind: Role
metadata:
name: linuxptp-daemon
namespace: openshift-ptp
name: linuxptp-daemon-role
rules:
- apiGroups: ["ptp.openshift.io"]
resources: ["*"]
verbs: ["*"]
- apiGroups: [""]
resources: ["pods"]
verbs: ["get", "list", "watch","patch"]
- apiGroups: [ "" ]
resources: [ "configmaps" ]
verbs: [ "get", "list", "watch","patch", "update"]
---
apiVersion: rbac.authorization.k8s.io/v1
kind: ClusterRoleBinding
kind: RoleBinding
metadata:
name: linuxptp-daemon
name: linuxptp-daemon-rolebinding
namespace: openshift-ptp
subjects:
- kind: ServiceAccount
name: linuxptp-daemon
namespace: openshift-ptp
roleRef:
kind: ClusterRole
name: linuxptp-daemon
kind: Role
name: linuxptp-daemon-role
apiGroup: rbac.authorization.k8s.io
subjects:
- kind: ServiceAccount
name: linuxptp-daemon
namespace: openshift-ptp

0 comments on commit e8ec90c

Please sign in to comment.