clusterrolebinding.yaml 812 B

123456789101112131415161718192021222324
  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: ClusterRoleBinding
  12. metadata:
  13. name: {{ include "materialize-operator.fullname" . }}
  14. roleRef:
  15. apiGroup: rbac.authorization.k8s.io
  16. kind: ClusterRole
  17. name: {{ include "materialize-operator.fullname" . }}
  18. subjects:
  19. - kind: ServiceAccount
  20. name: {{ include "materialize-operator.serviceAccountName" . }}
  21. namespace: {{ .Release.Namespace }}
  22. {{- end }}