...

Text file src/github.com/GoogleCloudPlatform/k8s-config-connector/config/installbundle/releases/scopes/namespaced/per-namespace-components/rolebindings.yaml

Documentation: github.com/GoogleCloudPlatform/k8s-config-connector/config/installbundle/releases/scopes/namespaced/per-namespace-components

     1# Copyright 2022 Google LLC
     2#
     3# Licensed under the Apache License, Version 2.0 (the "License");
     4# you may not use this file except in compliance with the License.
     5# You may obtain a copy of the License at
     6#
     7#      http://www.apache.org/licenses/LICENSE-2.0
     8#
     9# Unless required by applicable law or agreed to in writing, software
    10# distributed under the License is distributed on an "AS IS" BASIS,
    11# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
    12# See the License for the specific language governing permissions and
    13# limitations under the License.
    14
    15apiVersion: rbac.authorization.k8s.io/v1
    16kind: RoleBinding
    17metadata:
    18  name: manager-ns-binding
    19  namespace: ${NAMESPACE?}
    20roleRef:
    21  apiGroup: rbac.authorization.k8s.io
    22  kind: ClusterRole
    23  name: cnrm-manager-ns-role
    24subjects:
    25- kind: ServiceAccount
    26  name: cnrm-controller-manager-mynamespace
    27  namespace: cnrm-system
    28---
    29apiVersion: rbac.authorization.k8s.io/v1
    30kind: RoleBinding
    31metadata:
    32  name: admin-binding
    33  namespace: ${NAMESPACE?}
    34roleRef:
    35  apiGroup: rbac.authorization.k8s.io
    36  kind: ClusterRole
    37  name: cnrm-admin
    38subjects:
    39  - kind: ServiceAccount
    40    name: cnrm-controller-manager-mynamespace
    41    namespace: cnrm-system
    42---
    43apiVersion: rbac.authorization.k8s.io/v1
    44kind: RoleBinding
    45metadata:
    46  name: manager-ns-binding
    47  namespace: cnrm-system
    48roleRef:
    49  apiGroup: rbac.authorization.k8s.io
    50  kind: ClusterRole
    51  name: cnrm-manager-ns-role
    52subjects:
    53  - kind: ServiceAccount
    54    name: cnrm-controller-manager-mynamespace
    55    namespace: cnrm-system

View as plain text