operator/config/rbac/role.yaml (153 lines of code) (raw):

# Licensed to Apache Software Foundation (ASF) under one or more contributor # license agreements. See the NOTICE file distributed with # this work for additional information regarding copyright # ownership. Apache Software Foundation (ASF) licenses this file to you 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: name: manager-role rules: - apiGroups: - "" resources: - configmaps - persistentvolumeclaims - secrets - serviceaccounts - services verbs: - create - delete - get - list - patch - update - watch - apiGroups: - "" resources: - events verbs: - create - patch - apiGroups: - "" resources: - pods verbs: - create - get - list - patch - update - watch - apiGroups: - apps resources: - deployments - statefulsets verbs: - create - delete - get - list - patch - update - watch - apiGroups: - certificates.k8s.io resources: - certificatesigningrequests verbs: - create - delete - get - list - watch - apiGroups: - certificates.k8s.io resources: - certificatesigningrequests/approval verbs: - update - apiGroups: - coordination.k8s.io resources: - leases verbs: - create - get - update - apiGroups: - networking.k8s.io resources: - ingresses verbs: - create - delete - get - list - patch - update - watch - apiGroups: - operator.skywalking.apache.org resources: - banyandbs - eventexporters - fetchers - javaagents - oapserverconfigs - oapserverdynamicconfigs - oapservers - satellites - storages - swagents - uis verbs: - create - delete - get - list - patch - update - watch - apiGroups: - operator.skywalking.apache.org resources: - banyandbs/finalizers - eventexporters/finalizers - satellites/finalizers - swagents/finalizers verbs: - update - apiGroups: - operator.skywalking.apache.org resources: - banyandbs/status - eventexporters/status - fetchers/status - oapserverconfigs/status - oapserverdynamicconfigs/status - oapservers/status - satellites/status - storages/status - swagents/status - uis/status verbs: - get - patch - update - apiGroups: - operator.skywalking.apache.org resources: - javaagents/status verbs: - delete - get - patch - update - apiGroups: - rbac.authorization.k8s.io resources: - clusterrolebindings - clusterroles verbs: - '*'