move stage-editor stuff to ontime-operator

This commit is contained in:
2025-10-28 17:07:38 -05:00
parent b9a69a7d5d
commit d5d4d51756
7 changed files with 7 additions and 32 deletions

View File

@@ -0,0 +1,34 @@
apiVersion: rbac.authorization.k8s.io/v1
kind: ClusterRole
metadata:
name: edit-namespaces
rules:
- apiGroups: [""]
resources: ["namespaces"]
verbs: ["create", "get", "list", "watch", "update", "patch", "delete"]
---
apiVersion: rbac.authorization.k8s.io/v1
kind: ClusterRoleBinding
metadata:
name: edit-stages-clusterrolebinding
subjects:
- kind: ServiceAccount
name: stage-editor
namespace: ontime-operator-system
roleRef:
kind: ClusterRole
name: ontime-operator-stage-editor-role
apiGroup: rbac.authorization.k8s.io
---
apiVersion: rbac.authorization.k8s.io/v1
kind: ClusterRoleBinding
metadata:
name: edit-namespaces-clusterrolebinding
subjects:
- kind: ServiceAccount
name: stage-editor
namespace: ontime-operator-system
roleRef:
kind: ClusterRole
name: edit-namespaces
apiGroup: rbac.authorization.k8s.io