use existing cluster-role

This commit is contained in:
2025-10-28 13:07:29 -05:00
parent 5b91b7a45a
commit b2e56487d1
3 changed files with 13 additions and 37 deletions

View File

@@ -0,0 +1,13 @@
---
apiVersion: rbac.authorization.k8s.io/v1
kind: ClusterRoleBinding
metadata:
name: edit-stages-clusterrolebinding
subjects:
- kind: ServiceAccount
name: stage-editor
namespace: stage-maker
roleRef:
kind: ClusterRole
name: ontime-operator-stage-editor-role
apiGroup: rbac.authorization.k8s.io

View File

@@ -1,36 +0,0 @@
apiVersion: rbac.authorization.k8s.io/v1
kind: ClusterRole
metadata:
name: stage-editor-role
rules:
- apiGroups:
- ontime.getontime.no
resources:
- stages
verbs:
- create
- delete
- get
- list
- patch
- update
- watch
- apiGroups:
- ontime.getontime.no
resources:
- stages/status
verbs:
- get
---
apiVersion: rbac.authorization.k8s.io/v1
kind: ClusterRoleBinding
metadata:
name: edit-stages-clusterrolebinding
subjects:
- kind: ServiceAccount
name: stage-editor
namespace: stage-maker
roleRef:
kind: ClusterRole
name: stage-editor-role
apiGroup: rbac.authorization.k8s.io

View File

@@ -4,6 +4,5 @@ resources:
- namespace.yaml
- deployment.yaml
- ingress.yaml
- cluster-role.yaml
- service-account.yaml
- service.yaml