clusterrole.yaml 2.1 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124
  1. {{- if .Values.rbac.create -}}
  2. # Copyright Materialize, Inc. and contributors. All rights reserved.
  3. #
  4. # Use of this software is governed by the Business Source License
  5. # included in the LICENSE file at the root of this repository.
  6. #
  7. # As of the Change Date specified in that file, in accordance with
  8. # the Business Source License, use of this software will be governed
  9. # by the Apache License, Version 2.0.
  10. apiVersion: rbac.authorization.k8s.io/v1
  11. kind: ClusterRole
  12. metadata:
  13. name: {{ include "materialize-operator.fullname" . }}
  14. rules:
  15. - apiGroups: [""]
  16. resources:
  17. - configmaps
  18. - persistentvolumeclaims
  19. - pods
  20. - namespaces
  21. - secrets
  22. - serviceaccounts
  23. - services
  24. verbs:
  25. - create
  26. - update
  27. - patch
  28. - delete
  29. - get
  30. - list
  31. - watch
  32. - apiGroups: ["networking.k8s.io"]
  33. resources:
  34. - networkpolicies
  35. verbs:
  36. - create
  37. - update
  38. - patch
  39. - delete
  40. - get
  41. - list
  42. - watch
  43. - apiGroups: ["rbac.authorization.k8s.io"]
  44. resources:
  45. - roles
  46. - rolebindings
  47. - clusterrolebindings
  48. verbs:
  49. - create
  50. - update
  51. - patch
  52. - delete
  53. - get
  54. - list
  55. - watch
  56. - apiGroups: ["rbac.authorization.k8s.io"]
  57. resources:
  58. - clusterroles
  59. verbs:
  60. - bind
  61. resourceNames:
  62. - environmentd
  63. - apiGroups: ["apps"]
  64. resources:
  65. - deployments
  66. - statefulsets
  67. verbs:
  68. - create
  69. - update
  70. - patch
  71. - delete
  72. - get
  73. - list
  74. - watch
  75. - apiGroups: ["apiextensions.k8s.io"]
  76. resources:
  77. - customresourcedefinitions
  78. verbs:
  79. - create
  80. - update
  81. - patch
  82. - delete
  83. - get
  84. - list
  85. - watch
  86. - apiGroups: ["materialize.cloud"]
  87. resources:
  88. - materializes
  89. - materializes/status
  90. - vpcendpoints
  91. verbs:
  92. - create
  93. - update
  94. - patch
  95. - delete
  96. - get
  97. - list
  98. - watch
  99. - apiGroups: ["custom.metrics.k8s.io"]
  100. resources:
  101. - persistentvolumeclaims/kubelet_volume_stats_capacity_bytes
  102. - persistentvolumeclaims/kubelet_volume_stats_used_bytes
  103. verbs:
  104. - get
  105. - apiGroups: ["metrics.k8s.io"]
  106. resources:
  107. - pods
  108. verbs:
  109. - get
  110. - list
  111. - apiGroups: ["cert-manager.io"]
  112. resources:
  113. - certificates
  114. verbs:
  115. - create
  116. - update
  117. - patch
  118. - delete
  119. - get
  120. - list
  121. - watch
  122. {{- end }}