Browse Source

Calico: 3.20.0 policy update to allow access to endpointslices (#7899)

pull/7912/head
Cristian Calin 3 years ago
committed by GitHub
parent
commit
1c3d33e146
No known key found for this signature in database GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 10 additions and 0 deletions
  1. 10
      roles/network_plugin/calico/templates/calico-cr.yml.j2

10
roles/network_plugin/calico/templates/calico-cr.yml.j2

@ -13,6 +13,16 @@ rules:
- configmaps
verbs:
- get
{% if calico_version is version("v3.20.0", ">=") %}
# EndpointSlices are used for Service-based network policy rule
# enforcement.
- apiGroups: ["discovery.k8s.io"]
resources:
- endpointslices
verbs:
- watch
- list
{% endif %}
- apiGroups: [""]
resources:
- endpoints

Loading…
Cancel
Save