Skip to content
Snippets Groups Projects
Unverified Commit 9ce34be2 authored by Sebastian's avatar Sebastian Committed by GitHub
Browse files

Added missing permissions for operator. (#6683)

parent 79226d08
No related branches found
No related tags found
No related merge requests found
...@@ -69,6 +69,25 @@ rules: ...@@ -69,6 +69,25 @@ rules:
- get - get
- list - list
- watch - watch
{% if cilium_version | regex_replace('v') is version('1.8', '>=') %}
# For cilium-operator running in HA mode.
#
# Cilium operator running in HA mode requires the use of ResourceLock for Leader Election
# between mulitple running instances.
# The preferred way of doing this is to use LeasesResourceLock as edits to Leases are less
# common and fewer objects in the cluster watch "all Leases".
# The support for leases was introduced in coordination.k8s.io/v1 during Kubernetes 1.14 release.
# In Cilium we currently don't support HA mode for K8s version < 1.14. This condition make sure
# that we only authorize access to leases resources in supported K8s versions.
- apiGroups:
- coordination.k8s.io
resources:
- leases
verbs:
- create
- get
- update
{% endif %}
--- ---
apiVersion: rbac.authorization.k8s.io/v1 apiVersion: rbac.authorization.k8s.io/v1
kind: ClusterRole kind: ClusterRole
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment