From 851044ed38510066c1bc33415566e231371163dc Mon Sep 17 00:00:00 2001
From: Sheogorath <sheogorath@shivering-isles.com>
Date: Thu, 6 Oct 2022 11:53:42 +0200
Subject: [PATCH] fix(system-upgrades): Restrict fedora version upgrades

This patch restrict Fedora upgrades to nodes with an explicit label
`upgrade.shivering-isles.com/fedora-35-to-36=true`. This ensures a
controlled transition between versions.
---
 infrastructure/system-upgrades/fedora-system-upgrade.yaml | 4 ++++
 1 file changed, 4 insertions(+)

diff --git a/infrastructure/system-upgrades/fedora-system-upgrade.yaml b/infrastructure/system-upgrades/fedora-system-upgrade.yaml
index fb1a4dfa5..e617202e9 100644
--- a/infrastructure/system-upgrades/fedora-system-upgrade.yaml
+++ b/infrastructure/system-upgrades/fedora-system-upgrade.yaml
@@ -35,6 +35,10 @@ spec:
         values:
           - "35"
           - "36"
+      - key: upgrade.shivering-isles.com/fedora-35-to-36
+        operator: In
+        values:
+          - "true"
   serviceAccountName: system-upgrade
   secrets:
     - name: fedora-35-to-36-system-upgrade
-- 
GitLab