Browse Source

Allow metallb:speaker to create events (#6147)

Since MetalLB v0.8[1], metallb:speaker has started publishing an event
nodeAssigned on k8s resource.
To support MetalLB v0.8+, this allows metallb:speaker to create events.

[1]: 5cc6e23776 (diff-60053ad6fecb5a3cfabb6f3d9e720899R246)
pull/6208/head
Kenichi Omichi 4 years ago
committed by GitHub
parent
commit
249b0a2a80
No known key found for this signature in database GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 3 additions and 0 deletions
  1. 3
      contrib/metallb/roles/provision/templates/metallb.yml.j2

3
contrib/metallb/roles/provision/templates/metallb.yml.j2

@ -50,6 +50,9 @@ rules:
- apiGroups: [""]
resources: ["services", "endpoints", "nodes"]
verbs: ["get", "list", "watch"]
- apiGroups: [""]
resources: ["events"]
verbs: ["create"]
{% if podsecuritypolicy_enabled %}
- apiGroups: ["policy"]
resourceNames: ["metallb"]

Loading…
Cancel
Save