diff --git a/bindata/manifests/operator-webhook/002-rbac.yaml b/bindata/manifests/operator-webhook/002-rbac.yaml index 35158ad94..7396c3ca4 100644 --- a/bindata/manifests/operator-webhook/002-rbac.yaml +++ b/bindata/manifests/operator-webhook/002-rbac.yaml @@ -10,48 +10,23 @@ kind: ClusterRole metadata: name: operator-webhook rules: -- apiGroups: [""] - resources: ["nodes"] - verbs: ["get", "list", "watch"] -- apiGroups: - - certificates.k8s.io - resources: - - certificatesigningrequests - - certificatesigningrequests/approval - verbs: - - '*' -- apiGroups: - - "" - resources: - - secrets - verbs: - - '*' - apiGroups: - "" resources: + - nodes - configmaps verbs: - get - - update + - list + - watch - apiGroups: - - admissionregistration.k8s.io + - "sriovnetwork.openshift.io" resources: - - mutatingwebhookconfigurations - - validatingwebhookconfigurations + - "*" verbs: - - '*' -- apiGroups: - - "" - resources: - - services - verbs: - - '*' -- apiGroups: - - "sriovnetwork.openshift.io" - resources: - - "*" - verbs: - - "*" + - get + - list + - watch --- apiVersion: rbac.authorization.k8s.io/v1 kind: ClusterRoleBinding diff --git a/bindata/manifests/webhook/002-rbac.yaml b/bindata/manifests/webhook/002-rbac.yaml index 0c33e3a08..77b2d95d7 100644 --- a/bindata/manifests/webhook/002-rbac.yaml +++ b/bindata/manifests/webhook/002-rbac.yaml @@ -11,46 +11,21 @@ metadata: name: network-resources-injector rules: - apiGroups: - - "" - - k8s.cni.cncf.io - - extensions - - apps + - k8s.cni.cncf.io resources: - - pods - - network-attachment-definitions - - replicationcontrollers - - replicasets - - daemonsets - - statefulsets - - configmaps + - network-attachment-definitions verbs: - - '*' + - 'watch' + - 'list' + - 'get' - apiGroups: - - certificates.k8s.io + - "" resources: - - certificatesigningrequests - - certificatesigningrequests/approval + - configmap verbs: - - '*' -- apiGroups: - - "" - resources: - - secrets - verbs: - - '*' -- apiGroups: - - admissionregistration.k8s.io - resources: - - mutatingwebhookconfigurations - - validatingwebhookconfigurations - verbs: - - '*' -- apiGroups: - - "" - resources: - - services - verbs: - - '*' + - 'watch' + - 'list' + - 'get' --- apiVersion: rbac.authorization.k8s.io/v1 kind: ClusterRoleBinding