feat(rbac): add Role and RoleBinding for coordinator rollout scaler in nowchess and nowchess-staging namespaces

This commit is contained in:
2026-05-02 22:12:20 +02:00
parent d0a7c1ed53
commit ba352e7f2d
4 changed files with 51 additions and 0 deletions
@@ -4,6 +4,7 @@ namespace: nowchess
resources: resources:
- ../base - ../base
- ingress.yaml - ingress.yaml
- rbac-coordinator.yaml
patches: patches:
- patch: |- - patch: |-
apiVersion: v1 apiVersion: v1
@@ -0,0 +1,24 @@
apiVersion: rbac.authorization.k8s.io/v1
kind: Role
metadata:
name: coordinator-rollout-scaler
namespace: nowchess
rules:
- apiGroups: ["argoproj.io"]
resources: ["rollouts", "rollouts/scale"]
verbs: ["get", "update", "patch"]
---
apiVersion: rbac.authorization.k8s.io/v1
kind: RoleBinding
metadata:
name: coordinator-rollout-scaler
namespace: nowchess
subjects:
- kind: ServiceAccount
name: default
namespace: nowchess
roleRef:
apiGroup: rbac.authorization.k8s.io
kind: Role
name: coordinator-rollout-scaler
@@ -4,6 +4,7 @@ namespace: nowchess-staging
resources: resources:
- ../base - ../base
- ingress.yaml - ingress.yaml
- rbac-coordinator.yaml
patches: patches:
- patch: |- - patch: |-
apiVersion: v1 apiVersion: v1
@@ -0,0 +1,25 @@
apiVersion: rbac.authorization.k8s.io/v1
kind: Role
metadata:
name: coordinator-rollout-scaler
namespace: nowchess-staging
rules:
- apiGroups: ["argoproj.io"]
resources: ["rollouts", "rollouts/scale"]
verbs: ["get", "update", "patch"]
---
apiVersion: rbac.authorization.k8s.io/v1
kind: RoleBinding
metadata:
name: coordinator-rollout-scaler
namespace: nowchess-staging
subjects:
- kind: ServiceAccount
name: default
namespace: nowchess-staging
roleRef:
apiGroup: rbac.authorization.k8s.io
kind: Role
name: coordinator-rollout-scaler