Skip to content

Commit

Permalink
code review
Browse files Browse the repository at this point in the history
  • Loading branch information
sanchezl committed Mar 17, 2020
1 parent fc26389 commit b038ea8
Show file tree
Hide file tree
Showing 2 changed files with 1 addition and 33 deletions.
1 change: 0 additions & 1 deletion manifests/migrator.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,6 @@ spec:
labels:
app: migrator
spec:
serviceAccountName: storage-version-migration-migrator-sa
containers:
- name: migrator
image: REGISTRY/storage-version-migration-migrator:VERSION
Expand Down
33 changes: 1 addition & 32 deletions manifests/namespace-rbac.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -17,18 +17,6 @@ rules:
---
kind: ClusterRole
apiVersion: rbac.authorization.k8s.io/v1
metadata:
name: storage-version-migration-migrator
rules:
- apiGroups: ["*"]
resources: ["*"]
verbs: ["get", "list", "update"]
- apiGroups: ["migration.k8s.io"]
resources: ["storageversionmigrations"]
verbs: ["watch"]
---
kind: ClusterRole
apiVersion: rbac.authorization.k8s.io/v1
metadata:
name: storage-version-migration-crd-creator
rules:
Expand All @@ -55,7 +43,7 @@ subjects:
namespace: NAMESPACE
roleRef:
kind: ClusterRole
name: storage-version-migration-migrator
name: cluster-admin
apiGroup: rbac.authorization.k8s.io
---
kind: ClusterRoleBinding
Expand Down Expand Up @@ -96,22 +84,3 @@ 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 b038ea8

Please sign in to comment.