rbac-helm/charts/rbac/templates/clusterrolebinding-admins.yaml
Mohammed Naser f9900bebd2 Added basic RBAC
Depends-On: https://review.opendev.org/721365
Depends-On: https://review.opendev.org/721369
Change-Id: Id7a01e39d9cd2bbecdb77bd5285b98e92eecf7c2
2020-04-20 21:11:45 -04:00

30 lines
880 B
YAML

---
# Copyright 2020 VEXXHOST, Inc.
#
# Licensed under the Apache License, Version 2.0 (the "License");
# you may not use this file except in compliance with the License.
# You may obtain a copy of the License at
#
# http://www.apache.org/licenses/LICENSE-2.0
#
# Unless required by applicable law or agreed to in writing, software
# distributed under the License is distributed on an "AS IS" BASIS,
# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
# See the License for the specific language governing permissions and
# limitations under the License.
apiVersion: rbac.authorization.k8s.io/v1
kind: ClusterRoleBinding
metadata:
name: rbac-admins
roleRef:
apiGroup: rbac.authorization.k8s.io
kind: ClusterRole
name: cluster-admin
subjects:
{{- range .Values.admins }}
- apiGroup: rbac.authorization.k8s.io
kind: User
name: {{ . }}
{{- end }}