From b4865ae574c74cc4f2fe764d730abee6281f815e Mon Sep 17 00:00:00 2001 From: Andrei Kvapil Date: Thu, 12 Nov 2026 10:25:24 -0500 Subject: [PATCH] fix(linstor): let the blockstor satellite record events.k8s.io events The satellite's recorder writes events through events.k8s.io, for a LUKS format refused over data, and the role granted only core events. Assisted-by: LLM Signed-off-by: Andrei Kvapil --- packages/system/linstor/templates/blockstor-satellite.yaml | 6 ++++++ packages/system/linstor/tests/blockstor_workloads_test.yaml | 5 ++++- 2 files changed, 10 insertions(+), 1 deletion(-) diff --git a/packages/system/linstor/templates/blockstor-satellite.yaml b/packages/system/linstor/templates/blockstor-satellite.yaml index de1a522e2..2e2f07503 100644 --- a/packages/system/linstor/templates/blockstor-satellite.yaml +++ b/packages/system/linstor/templates/blockstor-satellite.yaml @@ -61,6 +61,12 @@ rules: - apiGroups: [""] resources: [events] verbs: [create, patch] + {{- /* + The same events through events.k8s.io, which the satellite's recorder + writes (a LUKS format refused over data). */}} + - apiGroups: [events.k8s.io] + resources: [events] + verbs: [create, patch] - apiGroups: [""] resources: [nodes] verbs: [get, list, watch] diff --git a/packages/system/linstor/tests/blockstor_workloads_test.yaml b/packages/system/linstor/tests/blockstor_workloads_test.yaml index 98ed86e40..5395afeec 100644 --- a/packages/system/linstor/tests/blockstor_workloads_test.yaml +++ b/packages/system/linstor/tests/blockstor_workloads_test.yaml @@ -56,7 +56,7 @@ tests: verbs: [update, patch] - lengthEqual: path: rules - count: 6 + count: 7 - it: gives the satellite no Secret or Lease access at cluster scope template: templates/blockstor-satellite.yaml @@ -308,6 +308,9 @@ tests: - apiGroups: [''] resources: [events] verbs: [create, patch] + - apiGroups: [events.k8s.io] + resources: [events] + verbs: [create, patch] - apiGroups: [''] resources: [nodes] verbs: [get, list, watch]