From e1539c682d0d1e90476dbc18d1ce94977cc85b8a Mon Sep 17 00:00:00 2001
From: Kjeld Schouten <info@kjeldschouten.nl>
Date: Thu, 24 Oct 2024 22:16:45 +0200
Subject: [PATCH] fix(clustertool): correct kubernetes path for loaded
 manifests

---
 clustertool/pkg/helper/vars.go | 7 ++++---
 1 file changed, 4 insertions(+), 3 deletions(-)

diff --git a/clustertool/pkg/helper/vars.go b/clustertool/pkg/helper/vars.go
index fa7157bf7bd2b..784ea405cf631 100644
--- a/clustertool/pkg/helper/vars.go
+++ b/clustertool/pkg/helper/vars.go
@@ -19,6 +19,7 @@ var (
     ClusterEnvFile  = filepath.Join(ClusterPath, "/clusterenv.yaml")
     TalConfigFile   = filepath.Join(ClusterPath, "/talos", "talconfig.yaml")
     TalosPath       = filepath.Join(ClusterPath, "/talos")
+    KubernetesPath  = filepath.Join(ClusterPath, "/kubernetes")
     TalosGenerated  = filepath.Join(TalosPath, "/generated")
     TalosConfigFile = filepath.Join(TalosGenerated, "talosconfig")
     TalSecretFile   = filepath.Join(TalosGenerated, "talsecret.yaml")
@@ -26,9 +27,9 @@ var (
     ControlPlaneIPs = []string{}
     WorkerIPs       = []string{}
     ManifestPaths   = []string{
-        filepath.Join(ClusterPath, "flux-system", "flux", "sopssecret.secret.yaml"),
-        filepath.Join(ClusterPath, "flux-system", "flux", "deploykey.secret.yaml"),
-        filepath.Join(ClusterPath, "flux-system", "flux", "clustersettings.secret.yaml"),
+        filepath.Join(KubernetesPath, "flux-system", "flux", "sopssecret.secret.yaml"),
+        filepath.Join(KubernetesPath, "flux-system", "flux", "deploykey.secret.yaml"),
+        filepath.Join(KubernetesPath, "flux-system", "flux", "clustersettings.secret.yaml"),
     }
 
     KubeFilterStr = []string{