Skip to content

Commit

Permalink
move roles
Browse files Browse the repository at this point in the history
  • Loading branch information
henrywhitaker3 committed Nov 24, 2023
1 parent 578b92a commit 39fe0e9
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 2 deletions.
6 changes: 4 additions & 2 deletions argo/cluster/misc/users/chart/clusterrolebindings.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -34,18 +34,20 @@ subjects:
namespace: default
---
apiVersion: rbac.authorization.k8s.io/v1
kind: ClusterRole
kind: Role
metadata:
name: srep-operator:pods
namespace: srep-plays
rules:
- apiGroups: [""]
resources: ["pods"]
verbs: ["get", "create", "delete"]
---
apiVersion: rbac.authorization.k8s.io/v1
kind: ClusterRoleBinding
kind: RoleBinding
metadata:
name: srep-operator:pods
namespace: srep-plays
roleRef:
apiGroup: rbac.authorization.k8s.io
kind: ClusterRole
Expand Down
2 changes: 2 additions & 0 deletions argo/cluster/misc/users/chart/serviceaccounts.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -15,11 +15,13 @@ apiVersion: v1
kind: ServiceAccount
metadata:
name: srep-operator
namespace: srep-plays
---
apiVersion: v1
kind: Secret
metadata:
name: srep-operator-token
namespace: srep-plays
annotations:
kubernetes.io/service-account.name: srep-operator
type: kubernetes.io/service-account-token

0 comments on commit 39fe0e9

Please sign in to comment.