split infrastructure by cluster

This commit is contained in:
2025-11-07 13:56:32 -06:00
parent 3dce69bb4b
commit 827e417129
19 changed files with 608 additions and 2 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
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
roleRef:
kind: ClusterRole
name: edit-namespaces
apiGroup: rbac.authorization.k8s.io