From 2702f7e854534139e73e0c37a1c098f1a9a401e0 Mon Sep 17 00:00:00 2001
From: Sheogorath <sheogorath@shivering-isles.com>
Date: Sat, 24 Feb 2024 18:23:29 +0100
Subject: [PATCH] fix(infrastructure): Fix relative references

---
 infrastructure/base/cert-manager/kustomization.yaml    | 6 +++---
 infrastructure/base/dashboard/kustomization.yaml       | 6 +++---
 infrastructure/base/drivers/kustomization.yaml         | 2 +-
 infrastructure/base/kube-system/kustomization.yaml     | 2 +-
 infrastructure/base/longhorn/kustomization.yaml        | 4 ++--
 infrastructure/base/metallb/kustomization.yaml         | 6 +++---
 infrastructure/base/monitoring/kustomization.yaml      | 4 ++--
 infrastructure/base/system-upgrades/kustomization.yaml | 2 +-
 infrastructure/base/vpa/kustomization.yaml             | 2 +-
 9 files changed, 17 insertions(+), 17 deletions(-)

diff --git a/infrastructure/base/cert-manager/kustomization.yaml b/infrastructure/base/cert-manager/kustomization.yaml
index 4d1b1f4fa..1daf014e3 100644
--- a/infrastructure/base/cert-manager/kustomization.yaml
+++ b/infrastructure/base/cert-manager/kustomization.yaml
@@ -8,9 +8,9 @@ resources:
   - networkpolicy.yaml
   - alerts.yaml
   - self-signed.yaml
-  - ../../shared/networkpolicies/allow-from-monitoring.yaml
-  - ../../shared/networkpolicies/allow-from-same-namespace.yaml
-  - ../../shared/networkpolicies/allow-from-all-namespaces.yaml
+  - ../../../shared/networkpolicies/allow-from-monitoring.yaml
+  - ../../../shared/networkpolicies/allow-from-same-namespace.yaml
+  - ../../../shared/networkpolicies/allow-from-all-namespaces.yaml
 patchesStrategicMerge:
   - networkpolicy-patch.yaml
 configMapGenerator:
diff --git a/infrastructure/base/dashboard/kustomization.yaml b/infrastructure/base/dashboard/kustomization.yaml
index f7f41fab4..db4644c03 100644
--- a/infrastructure/base/dashboard/kustomization.yaml
+++ b/infrastructure/base/dashboard/kustomization.yaml
@@ -4,9 +4,9 @@ namespace: dashboard-system
 resources:
   - namespace.yaml
   - kubernetes-dashboard.yaml
-  - ../../shared/networkpolicies/deny-by-default-ingress.yaml
-  - ../../shared/networkpolicies/allow-from-same-namespace.yaml
-  - ../../shared/networkpolicies/allow-from-ingress.yaml
+  - ../../../shared/networkpolicies/deny-by-default-ingress.yaml
+  - ../../../shared/networkpolicies/allow-from-same-namespace.yaml
+  - ../../../shared/networkpolicies/allow-from-ingress.yaml
   
 commonLabels:
   app.kubernetes.io/instance: kubernetes-dashboard
\ No newline at end of file
diff --git a/infrastructure/base/drivers/kustomization.yaml b/infrastructure/base/drivers/kustomization.yaml
index a38892b4e..afad949e3 100644
--- a/infrastructure/base/drivers/kustomization.yaml
+++ b/infrastructure/base/drivers/kustomization.yaml
@@ -4,4 +4,4 @@ namespace: drivers-system
 resources:
   - namespace.yaml
   - amd-gpu.yaml
-  - ../../shared/networkpolicies/deny-by-default-ingress.yaml
+  - ../../../shared/networkpolicies/deny-by-default-ingress.yaml
diff --git a/infrastructure/base/kube-system/kustomization.yaml b/infrastructure/base/kube-system/kustomization.yaml
index 6032f0c6f..b029da165 100644
--- a/infrastructure/base/kube-system/kustomization.yaml
+++ b/infrastructure/base/kube-system/kustomization.yaml
@@ -7,4 +7,4 @@ resources:
   - descheduler.yaml
   - metrics-server.yaml
   - snapshot-controller.yaml
-  - ../../shared/networkpolicies/allow-from-all-namespaces.yaml
+  - ../../../shared/networkpolicies/allow-from-all-namespaces.yaml
diff --git a/infrastructure/base/longhorn/kustomization.yaml b/infrastructure/base/longhorn/kustomization.yaml
index c20723e2c..2954a6fa6 100644
--- a/infrastructure/base/longhorn/kustomization.yaml
+++ b/infrastructure/base/longhorn/kustomization.yaml
@@ -9,8 +9,8 @@ resources:
   - snapshot.yaml
   - hotfix-7183.yaml
   # Add network policies
-  - ../../shared/networkpolicies/allow-from-ingress.yaml
-  - ../../shared/networkpolicies/allow-from-monitoring.yaml
+  - ../../../shared/networkpolicies/allow-from-ingress.yaml
+  - ../../../shared/networkpolicies/allow-from-monitoring.yaml
 patchesStrategicMerge:
   - networkpolicy.yaml
 configMapGenerator:
diff --git a/infrastructure/base/metallb/kustomization.yaml b/infrastructure/base/metallb/kustomization.yaml
index cefbaf423..225937bfd 100644
--- a/infrastructure/base/metallb/kustomization.yaml
+++ b/infrastructure/base/metallb/kustomization.yaml
@@ -5,9 +5,9 @@ resources:
   - namespace.yaml
   - repository.yaml
   - release.yaml
-  - ../../shared/networkpolicies/allow-from-same-namespace.yaml
-  - ../../shared/networkpolicies/allow-from-monitoring.yaml
-  - ../../shared/networkpolicies/allow-from-all-namespaces.yaml
+  - ../../../shared/networkpolicies/allow-from-same-namespace.yaml
+  - ../../../shared/networkpolicies/allow-from-monitoring.yaml
+  - ../../../shared/networkpolicies/allow-from-all-namespaces.yaml
 patchesStrategicMerge:
   - networkpolicy.yaml
 configMapGenerator:
diff --git a/infrastructure/base/monitoring/kustomization.yaml b/infrastructure/base/monitoring/kustomization.yaml
index 369f64a2c..1d780a5e3 100644
--- a/infrastructure/base/monitoring/kustomization.yaml
+++ b/infrastructure/base/monitoring/kustomization.yaml
@@ -7,8 +7,8 @@ resources:
   - release.yaml
   - sloth.yaml
   - json-exporter-monitor.yaml
-  - ../../shared/networkpolicies/allow-from-same-namespace.yaml
-  - ../../shared/networkpolicies/allow-from-ingress.yaml
+  - ../../../shared/networkpolicies/allow-from-same-namespace.yaml
+  - ../../../shared/networkpolicies/allow-from-ingress.yaml
   - calico-networkpolicy.yaml
 patchesStrategicMerge:
   - networkpolicy.yaml
diff --git a/infrastructure/base/system-upgrades/kustomization.yaml b/infrastructure/base/system-upgrades/kustomization.yaml
index e693c8c02..5fccabf6c 100644
--- a/infrastructure/base/system-upgrades/kustomization.yaml
+++ b/infrastructure/base/system-upgrades/kustomization.yaml
@@ -9,7 +9,7 @@ resources:
   - kubelet.yaml
   - longhorn-lvm.yaml
   - longhorn-setup.yaml
-  - ../../shared/networkpolicies/allow-from-same-namespace.yaml
+  - ../../../shared/networkpolicies/allow-from-same-namespace.yaml
 
 components:
   - fedora
\ No newline at end of file
diff --git a/infrastructure/base/vpa/kustomization.yaml b/infrastructure/base/vpa/kustomization.yaml
index 5b8c97753..a9f68c84e 100644
--- a/infrastructure/base/vpa/kustomization.yaml
+++ b/infrastructure/base/vpa/kustomization.yaml
@@ -26,4 +26,4 @@ patches:
       name: vpa-admission-controller
 
 components:
-  - ../../shared/components/namespace-restricted
+  - ../../../shared/components/namespace-restricted
-- 
GitLab