kubeservicecatalog_roles_bindings.yml 4.3 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219
  1. apiVersion: v1
  2. kind: Template
  3. metadata:
  4. name: service-catalog-role-bindings
  5. objects:
  6. - apiVersion: authorization.openshift.io/v1
  7. kind: ClusterRole
  8. metadata:
  9. name: servicecatalog-serviceclass-viewer
  10. rules:
  11. - apiGroups:
  12. - servicecatalog.k8s.io
  13. resources:
  14. - clusterserviceclasses
  15. - clusterserviceplans
  16. verbs:
  17. - list
  18. - watch
  19. - get
  20. - apiVersion: authorization.openshift.io/v1
  21. kind: ClusterRoleBinding
  22. metadata:
  23. name: servicecatalog-serviceclass-viewer-binding
  24. roleRef:
  25. name: servicecatalog-serviceclass-viewer
  26. groupNames:
  27. - system:authenticated
  28. - kind: ServiceAccount
  29. apiVersion: v1
  30. metadata:
  31. name: service-catalog-controller
  32. - kind: ServiceAccount
  33. apiVersion: v1
  34. metadata:
  35. name: service-catalog-apiserver
  36. - apiVersion: authorization.openshift.io/v1
  37. kind: ClusterRole
  38. metadata:
  39. name: sar-creator
  40. rules:
  41. - apiGroups:
  42. - ""
  43. resources:
  44. - subjectaccessreviews.authorization.k8s.io
  45. verbs:
  46. - create
  47. - apiVersion: authorization.openshift.io/v1
  48. kind: ClusterRoleBinding
  49. metadata:
  50. name: service-catalog-sar-creator-binding
  51. roleRef:
  52. name: sar-creator
  53. subjects:
  54. - kind: ServiceAccount
  55. name: service-catalog-apiserver
  56. namespace: kube-service-catalog
  57. - apiVersion: authorization.openshift.io/v1
  58. kind: ClusterRole
  59. metadata:
  60. name: namespace-viewer
  61. rules:
  62. - apiGroups:
  63. - ""
  64. resources:
  65. - namespaces
  66. verbs:
  67. - list
  68. - watch
  69. - get
  70. - apiVersion: authorization.openshift.io/v1
  71. kind: ClusterRoleBinding
  72. metadata:
  73. name: service-catalog-namespace-viewer-binding
  74. roleRef:
  75. name: namespace-viewer
  76. subjects:
  77. - kind: ServiceAccount
  78. name: service-catalog-apiserver
  79. namespace: kube-service-catalog
  80. - apiVersion: authorization.openshift.io/v1
  81. kind: ClusterRoleBinding
  82. metadata:
  83. name: service-catalog-controller-namespace-viewer-binding
  84. roleRef:
  85. name: namespace-viewer
  86. subjects:
  87. - kind: ServiceAccount
  88. name: service-catalog-controller
  89. namespace: kube-service-catalog
  90. - apiVersion: authorization.openshift.io/v1
  91. kind: ClusterRole
  92. metadata:
  93. name: service-catalog-controller
  94. rules:
  95. - apiGroups:
  96. - ""
  97. resources:
  98. - secrets
  99. verbs:
  100. - create
  101. - update
  102. - patch
  103. - delete
  104. - get
  105. - list
  106. - watch
  107. - apiGroups:
  108. - servicecatalog.k8s.io
  109. resources:
  110. - clusterservicebrokers/status
  111. - clusterserviceclasses/status
  112. - clusterserviceplans/status
  113. - serviceinstances/status
  114. - servicebindings/status
  115. - servicebindings/finalizers
  116. - serviceinstances/reference
  117. verbs:
  118. - update
  119. - apiGroups:
  120. - servicecatalog.k8s.io
  121. resources:
  122. - clusterservicebrokers
  123. - serviceinstances
  124. - servicebindings
  125. verbs:
  126. - list
  127. - get
  128. - watch
  129. - apiGroups:
  130. - ""
  131. resources:
  132. - events
  133. verbs:
  134. - patch
  135. - create
  136. - apiGroups:
  137. - servicecatalog.k8s.io
  138. resources:
  139. - clusterserviceclasses
  140. - clusterserviceplans
  141. verbs:
  142. - create
  143. - delete
  144. - update
  145. - patch
  146. - get
  147. - list
  148. - watch
  149. - apiGroups:
  150. - settings.k8s.io
  151. resources:
  152. - podpresets
  153. verbs:
  154. - create
  155. - update
  156. - delete
  157. - get
  158. - list
  159. - watch
  160. - apiVersion: authorization.openshift.io/v1
  161. kind: ClusterRoleBinding
  162. metadata:
  163. name: service-catalog-controller-binding
  164. roleRef:
  165. name: service-catalog-controller
  166. subjects:
  167. - kind: ServiceAccount
  168. name: service-catalog-controller
  169. namespace: kube-service-catalog
  170. - apiVersion: authorization.openshift.io/v1
  171. kind: Role
  172. metadata:
  173. name: endpoint-accessor
  174. rules:
  175. - apiGroups:
  176. - ""
  177. resources:
  178. - endpoints
  179. verbs:
  180. - list
  181. - watch
  182. - get
  183. - create
  184. - update
  185. - apiVersion: authorization.openshift.io/v1
  186. kind: RoleBinding
  187. metadata:
  188. name: endpointer-accessor-binding
  189. roleRef:
  190. name: endpoint-accessor
  191. namespace: kube-service-catalog
  192. subjects:
  193. - kind: ServiceAccount
  194. namespace: kube-service-catalog
  195. name: service-catalog-controller
  196. - apiVersion: authorization.openshift.io/v1
  197. kind: ClusterRoleBinding
  198. metadata:
  199. name: system:auth-delegator-binding
  200. roleRef:
  201. name: system:auth-delegator
  202. subjects:
  203. - kind: ServiceAccount
  204. name: service-catalog-apiserver
  205. namespace: kube-service-catalog