From ca7391efefa610db9510d67ebd898780a9b2e8a2 Mon Sep 17 00:00:00 2001
From: Sheogorath <sheogorath@shivering-isles.com>
Date: Sat, 16 Sep 2023 01:47:46 +0200
Subject: [PATCH] fix(longhorn): Add missing flux-reconciler ServiceAccount

---
 infrastructure/longhorn/namespace.yaml | 21 +++++++++++++++++++++
 1 file changed, 21 insertions(+)

diff --git a/infrastructure/longhorn/namespace.yaml b/infrastructure/longhorn/namespace.yaml
index 5bb9da6b0..2f9dcb649 100644
--- a/infrastructure/longhorn/namespace.yaml
+++ b/infrastructure/longhorn/namespace.yaml
@@ -12,3 +12,24 @@ metadata:
     pod-security.kubernetes.io/audit-version: v1.26
     pod-security.kubernetes.io/enforce-version: v1.23
     pod-security.kubernetes.io/warn-version: v1.26
+---
+apiVersion: v1
+kind: ServiceAccount
+metadata:
+  name: flux-reconciler
+  namespace: longhorn-system
+---
+apiVersion: rbac.authorization.k8s.io/v1
+kind: RoleBinding
+metadata:
+  name: flux-reconciler
+  namespace: longhorn-system
+roleRef:
+  apiGroup: rbac.authorization.k8s.io
+  kind: ClusterRole
+  name: admin
+subjects:
+  - kind: ServiceAccount
+    name: flux-reconciler
+    namespace: longhorn-system
+
-- 
GitLab