From 2fe3672023189a98df0462ab837cdbd305c36c8b Mon Sep 17 00:00:00 2001
From: Sheogorath <sheogorath@shivering-isles.com>
Date: Fri, 14 Jan 2022 02:24:19 +0100
Subject: [PATCH] fix(system-upgrades): Workaround dependency issue with CRDs

---
 bootstrap/README.md                               | 4 ++++
 bootstrap/kustomization.yaml                      | 1 +
 bootstrap/system-upgrades/kustomization.yaml      | 5 +++++
 infrastructure/system-upgrades/kustomization.yaml | 1 -
 4 files changed, 10 insertions(+), 1 deletion(-)
 create mode 100644 bootstrap/README.md
 create mode 100644 bootstrap/system-upgrades/kustomization.yaml

diff --git a/bootstrap/README.md b/bootstrap/README.md
new file mode 100644
index 000000000..ce5afe6ec
--- /dev/null
+++ b/bootstrap/README.md
@@ -0,0 +1,4 @@
+Bootstrap
+===
+
+Kubernetes resources that are required before **anything else** is deployed on the cluster.
diff --git a/bootstrap/kustomization.yaml b/bootstrap/kustomization.yaml
index 473377f9e..4ca6025e1 100644
--- a/bootstrap/kustomization.yaml
+++ b/bootstrap/kustomization.yaml
@@ -3,3 +3,4 @@ kind: Kustomization
 resources:
   - calico
   - kyverno
+  - system-upgrades
diff --git a/bootstrap/system-upgrades/kustomization.yaml b/bootstrap/system-upgrades/kustomization.yaml
new file mode 100644
index 000000000..077cfb2bb
--- /dev/null
+++ b/bootstrap/system-upgrades/kustomization.yaml
@@ -0,0 +1,5 @@
+apiVersion: kustomize.config.k8s.io/v1beta1
+kind: Kustomization
+namespace: system-upgrade
+resources:
+  - https://git.shivering-isles.com/github-mirror/rancher/system-upgrade-controller/-/raw/v0.8.1/manifests/system-upgrade-controller.yaml
diff --git a/infrastructure/system-upgrades/kustomization.yaml b/infrastructure/system-upgrades/kustomization.yaml
index aa21fe819..66c6eb563 100644
--- a/infrastructure/system-upgrades/kustomization.yaml
+++ b/infrastructure/system-upgrades/kustomization.yaml
@@ -2,6 +2,5 @@ apiVersion: kustomize.config.k8s.io/v1beta1
 kind: Kustomization
 namespace: system-upgrade
 resources:
-  - https://git.shivering-isles.com/github-mirror/rancher/system-upgrade-controller/-/raw/v0.8.1/manifests/system-upgrade-controller.yaml
   - fedora.yaml
   - calver-server.yaml
-- 
GitLab