Skip to content

Commit

Permalink
correct privileges set
Browse files Browse the repository at this point in the history
Signed-off-by: Batuhan Apaydın <batuhan.apaydin@trendyol.com>
  • Loading branch information
developer-guy committed Dec 3, 2020
1 parent 62f298b commit a3331fb
Show file tree
Hide file tree
Showing 4 changed files with 86 additions and 201 deletions.
2 changes: 1 addition & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -158,7 +158,7 @@ Now create a `ClusterPullSecret` YAML file, and populate the `secretRef` with th
apiVersion: ops.alexellis.io/v1
kind: ClusterPullSecret
metadata:
name: Docker Registry
name: docker-registry
spec:
secretRef:
name: registry-creds-secret
Expand Down
38 changes: 11 additions & 27 deletions config/rbac/leader_election_role.yaml
Original file line number Diff line number Diff line change
@@ -1,32 +1,16 @@
# permissions to do leader election.
apiVersion: rbac.authorization.k8s.io/v1
kind: Role
metadata:
name: leader-election-role
rules:
- apiGroups:
- ""
resources:
- configmaps
verbs:
- get
- list
- watch
- create
- update
- patch
- delete
- apiGroups:
- ""
resources:
- configmaps/status
verbs:
- get
- update
- patch
- apiGroups:
- ""
resources:
- events
verbs:
- create
- apiGroups:
- ""
resources:
- configmaps
resourceNames:
- 8bdecb1a.alexellis.io
verbs:
- get
- create
- update
- patch
113 changes: 35 additions & 78 deletions config/rbac/role.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -6,81 +6,38 @@ metadata:
creationTimestamp: null
name: registry-creds-role
rules:
- apiGroups:
- ""
resources:
- namespaces
verbs:
- create
- delete
- get
- list
- patch
- update
- watch
- apiGroups:
- ""
resources:
- namespaces/status
verbs:
- get
- patch
- update
- apiGroups:
- ""
resources:
- secrets
verbs:
- create
- delete
- get
- list
- patch
- update
- watch
- apiGroups:
- ""
resources:
- secrets/status
verbs:
- get
- patch
- update
- apiGroups:
- ""
resources:
- serviceaccounts
verbs:
- get
- list
- patch
- update
- watch
- apiGroups:
- ""
resources:
- serviceaccounts/status
verbs:
- get
- patch
- update
- apiGroups:
- ops.alexellis.io
resources:
- clusterpullsecrets
verbs:
- create
- delete
- get
- list
- patch
- update
- watch
- apiGroups:
- ops.alexellis.io
resources:
- clusterpullsecrets/status
verbs:
- get
- patch
- update
- apiGroups:
- ""
resources:
- namespaces
verbs:
- get
- list
- watch
- apiGroups:
- ""
resources:
- secrets
verbs:
- create
- get
- list
- watch
- apiGroups:
- ""
resources:
- serviceaccounts
verbs:
- get
- list
- patch
- update
- watch
- apiGroups:
- ops.alexellis.io
resources:
- clusterpullsecrets
verbs:
- get
- list
- watch
134 changes: 39 additions & 95 deletions manifest.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -72,113 +72,57 @@ rules:
- ""
resources:
- configmaps
resourceNames:
- 8bdecb1a.alexellis.io
verbs:
- get
- list
- watch
- create
- update
- patch
- delete
- apiGroups:
- ""
resources:
- configmaps/status
verbs:
- get
- update
- patch
- apiGroups:
- ""
resources:
- events
verbs:
- create
---

---
apiVersion: rbac.authorization.k8s.io/v1
kind: ClusterRole
metadata:
creationTimestamp: null
name: registry-creds-registry-creds-role
rules:
- apiGroups:
- ""
resources:
- namespaces
verbs:
- create
- delete
- get
- list
- patch
- update
- watch
- apiGroups:
- ""
resources:
- namespaces/status
verbs:
- get
- patch
- update
- apiGroups:
- ""
resources:
- secrets
verbs:
- create
- delete
- get
- list
- patch
- update
- watch
- apiGroups:
- ""
resources:
- secrets/status
verbs:
- get
- patch
- update
- apiGroups:
- ""
resources:
- serviceaccounts
verbs:
- get
- list
- patch
- update
- watch
- apiGroups:
- ""
resources:
- serviceaccounts/status
verbs:
- get
- patch
- update
- apiGroups:
- ops.alexellis.io
resources:
- clusterpullsecrets
verbs:
- create
- delete
- get
- list
- patch
- update
- watch
- apiGroups:
- ops.alexellis.io
resources:
- clusterpullsecrets/status
verbs:
- get
- patch
- update
- apiGroups:
- ""
resources:
- namespaces
verbs:
- get
- list
- watch
- apiGroups:
- ""
resources:
- secrets
verbs:
- create
- get
- list
- watch
- apiGroups:
- ""
resources:
- serviceaccounts
verbs:
- get
- list
- patch
- update
- watch
- apiGroups:
- ops.alexellis.io
resources:
- clusterpullsecrets
verbs:
- get
- list
- watch
---
apiVersion: rbac.authorization.k8s.io/v1
kind: RoleBinding
Expand Down

0 comments on commit a3331fb

Please sign in to comment.