Skip to content

Commit

Permalink
feat: add cluster role and role binding (#14138)
Browse files Browse the repository at this point in the history
  • Loading branch information
keyihuang committed Sep 26, 2024
1 parent ebbd873 commit ead22e9
Showing 1 changed file with 22 additions and 0 deletions.
22 changes: 22 additions & 0 deletions charts/airbyte/templates/serviceaccount.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -47,5 +47,27 @@ roleRef:
subjects:
- kind: ServiceAccount
name: {{ include "airbyte.serviceAccountName" . }}
---
apiVersion: rbac.authorization.k8s.io/v1
kind: ClusterRole
metadata:
name: node-viewer
rules:
- apiGroups: [""]
resources: ["nodes"]
verbs: ["get", "list", "watch"]
---
apiVersion: rbac.authorization.k8s.io/v1
kind: ClusterRoleBinding
metadata:
name: {{ include "airbyte.serviceAccountName" . }}-admin-node-viewer
subjects:
- kind: ServiceAccount
name: {{ include "airbyte.serviceAccountName" . }}
namespace: ab
roleRef:
kind: ClusterRole
name: node-viewer
apiGroup: rbac.authorization.k8s.io
{{- end }}
{{- end }}

0 comments on commit ead22e9

Please sign in to comment.