add list nodes rules to cilium-operator clusterrole (#9178)

This commit is contained in:
Thearas 2022-08-18 16:02:36 +08:00 committed by GitHub
parent 68653c31c0
commit ea29cd0890
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -51,12 +51,10 @@ rules:
- apiGroups: - apiGroups:
- "" - ""
resources: resources:
{% if cilium_version | regex_replace('v') is version('1.8', '<') %}
# to automatically read from k8s and import the node's pod CIDR to cilium's # to automatically read from k8s and import the node's pod CIDR to cilium's
# etcd so all nodes know how to reach another pod running in in a different # etcd so all nodes know how to reach another pod running in in a different
# node. # node.
- nodes - nodes
{% endif %}
# to perform the translation of a CNP that contains `ToGroup` to its endpoints # to perform the translation of a CNP that contains `ToGroup` to its endpoints
- services - services
- endpoints - endpoints