rbac.yaml 1.9 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253
  1. # Licensed to the Apache Software Foundation (ASF) under one or more
  2. # contributor license agreements. See the NOTICE file distributed with
  3. # this work for additional information regarding copyright ownership.
  4. # The ASF licenses this file to You under the Apache License, Version 2.0
  5. # (the "License"); you may not use this file except in compliance with
  6. # the License. You may obtain a copy of the License at
  7. #
  8. # http://www.apache.org/licenses/LICENSE-2.0
  9. #
  10. # Unless required by applicable law or agreed to in writing, software
  11. # distributed under the License is distributed on an "AS IS" BASIS,
  12. # WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
  13. # See the License for the specific language governing permissions and
  14. # limitations under the License.
  15. apiVersion: v1
  16. kind: ServiceAccount
  17. metadata:
  18. labels:
  19. app: {{ template "dolphinscheduler.fullname" . }}
  20. chart: {{ .Chart.Name }}-{{ .Chart.Version }}
  21. release: {{ .Release.Name }}
  22. name: {{ template "dolphinscheduler.fullname" . }}
  23. ---
  24. kind: Role
  25. apiVersion: rbac.authorization.k8s.io/v1
  26. metadata:
  27. name: {{ template "dolphinscheduler.fullname" . }}
  28. labels:
  29. app: {{ template "dolphinscheduler.fullname" . }}
  30. chart: "{{ .Chart.Name }}-{{ .Chart.Version }}"
  31. release: "{{ .Release.Name }}"
  32. rules:
  33. - apiGroups: [""]
  34. resources: ["configmaps"]
  35. verbs: ["get", "watch", "list"]
  36. ---
  37. apiVersion: rbac.authorization.k8s.io/v1
  38. kind: RoleBinding
  39. metadata:
  40. name: {{ template "dolphinscheduler.fullname" . }}
  41. labels:
  42. app: {{ template "dolphinscheduler.fullname" . }}
  43. chart: "{{ .Chart.Name }}-{{ .Chart.Version }}"
  44. release: "{{ .Release.Name }}"
  45. roleRef:
  46. apiGroup: rbac.authorization.k8s.io
  47. kind: Role
  48. name: {{ template "dolphinscheduler.fullname" . }}
  49. subjects:
  50. - kind: ServiceAccount
  51. name: {{ template "dolphinscheduler.fullname" . }}
  52. namespace: {{ .Release.Namespace }}