Mohammed Naser | e04accd | 2023-01-15 20:07:27 -0500 | [diff] [blame] | 1 | {{- if or .Values.watchNamespace .Values.watchAllNamespaces }} |
| 2 | kind: ClusterRole |
| 3 | {{- else }} |
| 4 | kind: Role |
| 5 | {{- end }} |
| 6 | apiVersion: rbac.authorization.k8s.io/v1 |
| 7 | metadata: |
| 8 | name: {{ include "pxc-operator.fullname" . }} |
| 9 | labels: |
| 10 | {{ include "pxc-operator.labels" . | indent 4 }} |
| 11 | rules: |
| 12 | - apiGroups: |
| 13 | - pxc.percona.com |
| 14 | resources: |
| 15 | - perconaxtradbclusters |
| 16 | - perconaxtradbclusters/status |
| 17 | - perconaxtradbclusterbackups |
| 18 | - perconaxtradbclusterbackups/status |
| 19 | - perconaxtradbclusterrestores |
| 20 | - perconaxtradbclusterrestores/status |
| 21 | verbs: |
| 22 | - get |
| 23 | - list |
| 24 | - watch |
| 25 | - create |
| 26 | - update |
| 27 | - patch |
| 28 | - delete |
| 29 | {{- if or .Values.watchNamespace .Values.watchAllNamespaces }} |
| 30 | - apiGroups: |
| 31 | - admissionregistration.k8s.io |
| 32 | resources: |
| 33 | - validatingwebhookconfigurations |
| 34 | verbs: |
| 35 | - get |
| 36 | - list |
| 37 | - watch |
| 38 | - create |
| 39 | - update |
| 40 | - patch |
| 41 | - delete |
| 42 | {{- end }} |
| 43 | - apiGroups: |
| 44 | - "" |
| 45 | resources: |
| 46 | - pods |
| 47 | - pods/exec |
| 48 | - pods/log |
| 49 | - configmaps |
| 50 | - services |
| 51 | - persistentvolumeclaims |
| 52 | - secrets |
| 53 | verbs: |
| 54 | - get |
| 55 | - list |
| 56 | - watch |
| 57 | - create |
| 58 | - update |
| 59 | - patch |
| 60 | - delete |
| 61 | - apiGroups: |
| 62 | - apps |
| 63 | resources: |
| 64 | - deployments |
| 65 | - replicasets |
| 66 | - statefulsets |
| 67 | verbs: |
| 68 | - get |
| 69 | - list |
| 70 | - watch |
| 71 | - create |
| 72 | - update |
| 73 | - patch |
| 74 | - delete |
| 75 | - apiGroups: |
| 76 | - batch |
| 77 | resources: |
| 78 | - jobs |
| 79 | - cronjobs |
| 80 | verbs: |
| 81 | - get |
| 82 | - list |
| 83 | - watch |
| 84 | - create |
| 85 | - update |
| 86 | - patch |
| 87 | - delete |
| 88 | - apiGroups: |
| 89 | - policy |
| 90 | resources: |
| 91 | - poddisruptionbudgets |
| 92 | verbs: |
| 93 | - get |
| 94 | - list |
| 95 | - watch |
| 96 | - create |
| 97 | - update |
| 98 | - patch |
| 99 | - delete |
| 100 | - apiGroups: |
| 101 | - certmanager.k8s.io |
| 102 | - cert-manager.io |
| 103 | resources: |
| 104 | - issuers |
| 105 | - certificates |
| 106 | verbs: |
| 107 | - get |
| 108 | - list |
| 109 | - watch |
| 110 | - create |
| 111 | - update |
| 112 | - patch |
| 113 | - delete |
| 114 | - deletecollection |