From 2d79e2928b19da55b3b0966bb7b4031d007abc2c Mon Sep 17 00:00:00 2001
From: Sheogorath <sheogorath@shivering-isles.com>
Date: Sat, 15 Jan 2022 22:11:17 +0100
Subject: [PATCH] Revert "fix(longhorn): Fix post-render kustomization"

This reverts commit ca87376a127af8563cc98cc4da623a95b20888f3.
---
 infrastructure/longhorn/release.yaml | 20 ++++++++++++++++++++
 1 file changed, 20 insertions(+)

diff --git a/infrastructure/longhorn/release.yaml b/infrastructure/longhorn/release.yaml
index dd1e83c0b..ce640d2df 100644
--- a/infrastructure/longhorn/release.yaml
+++ b/infrastructure/longhorn/release.yaml
@@ -17,8 +17,28 @@ spec:
     persistence:
       defaultClassReplicaCount: 2
   postRenderers:
+    # Instruct helm-controller to use built-in "kustomize" post renderer.
     - kustomize:
+        # Array of inline strategic merge patch definitions as YAML object.
+        # Note, this is a YAML object and not a string, to avoid syntax
+        # indention errors.
         patchesStrategicMerge:
+          - kind: Deployment
+            apiVersion: apps/v1
+            metadata:
+              name: longhorn-driver-deployer
+            spec:
+              template:
+                spec:
+                  affinity:
+                    nodeAffinity:
+                      requiredDuringSchedulingIgnoredDuringExecution:
+                        nodeSelectorTerms:
+                        - matchExpressions:
+                          - key: plan.upgrade.cattle.io/longhorn-setup
+                            operator: Exists
+                          - key: plan.upgrade.cattle.io/longhorn-lvm
+                            operator: Exists
           - kind: DaemonSet
             apiVersion: apps/v1
             metadata:
-- 
GitLab