From 249b0a2a8038e5214d2caca2a2177ea1a208fba2 Mon Sep 17 00:00:00 2001 From: Kenichi Omichi Date: Fri, 29 May 2020 04:17:16 -0700 Subject: [PATCH] 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]: https://github.com/metallb/metallb/commit/5cc6e237766d742fccde1a8a325baba2608024df#diff-60053ad6fecb5a3cfabb6f3d9e720899R246 --- contrib/metallb/roles/provision/templates/metallb.yml.j2 | 3 +++ 1 file changed, 3 insertions(+) diff --git a/contrib/metallb/roles/provision/templates/metallb.yml.j2 b/contrib/metallb/roles/provision/templates/metallb.yml.j2 index 56186db87..4758c0b8e 100644 --- a/contrib/metallb/roles/provision/templates/metallb.yml.j2 +++ b/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"]