{{/* Copyright 2020 NVIDIA 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: {{ include "network-operator.fullname" . }} rules: - apiGroups: - "" resources: - configmaps - events - persistentvolumeclaims - secrets verbs: - create - delete - get - list - patch - update - watch - apiGroups: - "" resources: - endpoints - namespaces - pods - pods/status - serviceaccounts - services - services/finalizers verbs: - create - delete - get - list - patch - update - watch - apiGroups: - "" resources: - nodes verbs: - get - list - patch - update - watch - apiGroups: - "" resources: - pods verbs: - list - apiGroups: - "" resources: - pods/eviction verbs: - create - delete - get - list - patch - update - watch - apiGroups: - admissionregistration.k8s.io resources: - 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: - controllerrevisions - daemonsets - deployments - replicasets - statefulsets verbs: - create - delete - get - list - patch - update - watch - apiGroups: - apps resources: - daemonsets - deployments - replicasets - statefulsets verbs: - create - delete - get - list - patch - update - watch - apiGroups: - apps resources: - deployments/finalizers verbs: - update - apiGroups: - batch resources: - cronjobs verbs: - create - delete - get - list - patch - update - watch - apiGroups: - cert-manager.io resources: - certificates - issuers verbs: - create - delete - get - list - patch - update - watch - apiGroups: - config.openshift.io resources: - clusterversions - proxies verbs: - get - list - watch - apiGroups: - coordination.k8s.io resources: - leases verbs: - create - delete - get - list - patch - update - watch - apiGroups: - events.k8s.io resources: - events verbs: - create - get - patch - update - apiGroups: - image.openshift.io resources: - imagestreams verbs: - get - list - watch - apiGroups: - k8s.cni.cncf.io resources: - network-attachment-definitions verbs: - create - delete - get - list - patch - update - watch - apiGroups: - mellanox.com resources: - hostdevicenetworks verbs: - create - delete - get - list - patch - update - watch - apiGroups: - mellanox.com resources: - hostdevicenetworks/finalizers verbs: - update - apiGroups: - mellanox.com resources: - hostdevicenetworks/status verbs: - get - patch - update - apiGroups: - mellanox.com resources: - ipoibnetworks verbs: - create - delete - get - list - patch - update - watch - apiGroups: - mellanox.com resources: - ipoibnetworks/finalizers verbs: - update - apiGroups: - mellanox.com resources: - ipoibnetworks/status verbs: - get - patch - update - apiGroups: - mellanox.com resources: - macvlannetworks verbs: - create - delete - get - list - patch - update - watch - apiGroups: - mellanox.com resources: - macvlannetworks/finalizers verbs: - update - apiGroups: - mellanox.com resources: - macvlannetworks/status verbs: - get - patch - update - apiGroups: - mellanox.com resources: - nicclusterpolicies - nicclusterpolicies/status verbs: - create - delete - get - list - patch - update - watch - apiGroups: - mellanox.com resources: - nicclusterpolicies/finalizers verbs: - update - apiGroups: - monitoring.coreos.com resources: - servicemonitors verbs: - create - get - list - watch - apiGroups: - nv-ipam.nvidia.com resources: - ippools - cidrpools verbs: - create - get - list - watch - apiGroups: - nv-ipam.nvidia.com resources: - ippools/status - cidrpools/status verbs: - get - patch - update - apiGroups: - rbac.authorization.k8s.io resources: - clusterrolebindings - clusterroles - rolebindings - roles verbs: - create - delete - get - list - patch - update - watch - apiGroups: - security.openshift.io resourceNames: - privileged resources: - securitycontextconstraints verbs: - use - apiGroups: - whereabouts.cni.cncf.io resources: - ippools verbs: - create - delete - get - list - patch - update - watch - apiGroups: - whereabouts.cni.cncf.io resources: - overlappingrangeipreservations verbs: - create - delete - get - list - patch - update - watch