Skip to content

Commit

Permalink
enable migrator to access any resource
Browse files Browse the repository at this point in the history
  • Loading branch information
sanchezl committed Jan 29, 2020
1 parent d8a6bb1 commit b591ce1
Show file tree
Hide file tree
Showing 2 changed files with 20 additions and 0 deletions.
1 change: 1 addition & 0 deletions manifests/migrator.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -15,6 +15,7 @@ spec:
labels:
app: migrator
spec:
serviceAccountName: storage-version-migration-migrator-sa
containers:
- name: migrator
image: REGISTRY/storage-version-migration-migrator:VERSION
Expand Down
19 changes: 19 additions & 0 deletions manifests/namespace-rbac.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -96,3 +96,22 @@ roleRef:
kind: ClusterRole
name: storage-version-migration-initializer
apiGroup: rbac.authorization.k8s.io
---
kind: ServiceAccount
apiVersion: v1
metadata:
namespace: NAMESPACE
name: storage-version-migration-migrator-sa
---
kind: ClusterRoleBinding
apiVersion: rbac.authorization.k8s.io/v1
metadata:
name: storage-version-migration-migrator-sa
subjects:
- kind: ServiceAccount
name: storage-version-migration-migrator-sa
namespace: NAMESPACE
roleRef:
kind: ClusterRole
name: cluster-admin
apiGroup: rbac.authorization.k8s.io

0 comments on commit b591ce1

Please sign in to comment.