operator/config/rbac/role.yaml (192 lines of code) (raw):
# Copyright 2022 Google LLC
#
# 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: ClusterRole
metadata:
creationTimestamp: null
name: manager-role
rules:
- apiGroups:
- ""
resources:
- configmaps
- events
- events
- namespaces
- secrets
- serviceaccounts
- services
verbs:
- create
- delete
- get
- list
- patch
- update
- watch
- apiGroups:
- ""
resources:
- pods
verbs:
- get
- list
- watch
- apiGroups:
- admissionregistration.k8s.io
resources:
- mutatingwebhookconfigurations
- validatingwebhookconfigurations
verbs:
- create
- delete
- get
- list
- patch
- update
- watch
- apiGroups:
- apiextensions.k8s.io
resources:
- customresourcedefinitions
verbs:
- create
- delete
- get
- list
- patch
- update
- watch
- apiGroups:
- apps
resources:
- deployments
verbs:
- create
- delete
- get
- list
- patch
- update
- watch
- apiGroups:
- apps
resources:
- statefulsets
verbs:
- create
- delete
- get
- list
- patch
- update
- watch
- deletecollection
- apiGroups:
- core.cnrm.cloud.google.com
resources:
- configconnectors
- configconnectorcontexts
verbs:
- create
- delete
- get
- list
- patch
- update
- watch
- apiGroups:
- core.cnrm.cloud.google.com
resources:
- configconnectors/status
- configconnectorcontexts/status
verbs:
- get
- patch
- update
- apiGroups:
- core.cnrm.cloud.google.com
resources:
- configconnectors/finalizers
verbs:
- update
- apiGroups:
- customize.core.cnrm.cloud.google.com
resources:
- controllerresources
- namespacedcontrollerresources
- validatingwebhookconfigurationcustomizations
- mutatingwebhookconfigurationcustomizations
- namespacedcontrollerreconcilers
- controllerreconcilers
verbs:
- create
- delete
- get
- list
- patch
- update
- watch
- apiGroups:
- customize.core.cnrm.cloud.google.com
resources:
- controllerresources/status
- namespacedcontrollerresources/status
- validatingwebhookconfigurationcustomizations/status
- mutatingwebhookconfigurationcustomizations/status
- namespacedcontrollerreconcilers/status
- controllerreconcilers/status
verbs:
- get
- patch
- update
- apiGroups:
- rbac.authorization.k8s.io
resources:
- clusterrolebindings
- rolebindings
verbs:
- create
- delete
- get
- list
- patch
- update
- watch
- apiGroups:
- rbac.authorization.k8s.io
resources:
- clusterroles
- roles
verbs:
- create
- delete
- escalate
- get
- list
- patch
- update
- watch
- apiGroups:
- rbac.authorization.k8s.io
resources:
- clusterroles
verbs:
- bind
resourceNames:
- cnrm-admin
- cnrm-manager-cluster-role
- cnrm-manager-ns-role
- cnrm-recorder-role
- cnrm-webhook-role
- apiGroups:
- autoscaling
resources:
- horizontalpodautoscalers
verbs:
- create
- delete
- get
- list
- patch
- update
- watch