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"]
  - apiGroups: [""]
    resources: ["pods"]
    verbs: ["get", "list", "delete"]
---
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


