From 4a3dc3d76b01e2e6cf1037274ebaa25564201c06 Mon Sep 17 00:00:00 2001
From: Sheogorath <sheogorath@shivering-isles.com>
Date: Sat, 18 Mar 2023 21:22:42 +0100
Subject: [PATCH] fix(system-upgrade): fix kustomization patch

---
 bootstrap/system-upgrades/kustomization.yaml | 7 ++-----
 1 file changed, 2 insertions(+), 5 deletions(-)

diff --git a/bootstrap/system-upgrades/kustomization.yaml b/bootstrap/system-upgrades/kustomization.yaml
index f94154d27..b47809282 100644
--- a/bootstrap/system-upgrades/kustomization.yaml
+++ b/bootstrap/system-upgrades/kustomization.yaml
@@ -7,11 +7,8 @@ resources:
 patches:
   - patch: |
         - op: replace
-          path: /spec/template/spec/affinity/nodeAffinity/requiredDuringSchedulingIgnoredDuringExecution/nodeSelectorTerms/0/
-          value:
-            matchExpressions:
-                - {key: "node-role.kubernetes.io/control-plane", operator: Exists}
-     
+          path: /spec/template/spec/affinity/nodeAffinity/requiredDuringSchedulingIgnoredDuringExecution/nodeSelectorTerms/0/matchExpressions/0/key
+          value: node-role.kubernetes.io/control-plane
     target:
       kind: Deployment
       name: system-upgrade-controller
-- 
GitLab