From 4585ba8ef95eeee842f4f86c4604104a2ad5815c Mon Sep 17 00:00:00 2001 From: Trey West Date: Tue, 25 Feb 2025 09:16:45 -0500 Subject: [PATCH] mgmt ibi: fix reinstall config check (#470) --- tests/lca/imagebasedinstall/mgmt/deploy/tests/common.go | 2 +- tests/lca/imagebasedinstall/mgmt/deploy/tests/reinstall-test.go | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/tests/lca/imagebasedinstall/mgmt/deploy/tests/common.go b/tests/lca/imagebasedinstall/mgmt/deploy/tests/common.go index b186cd7a6..ef6c4bf13 100644 --- a/tests/lca/imagebasedinstall/mgmt/deploy/tests/common.go +++ b/tests/lca/imagebasedinstall/mgmt/deploy/tests/common.go @@ -68,7 +68,7 @@ func createSharedResources() { _, err := namespace.NewBuilder(APIClient, MGMTConfig.Cluster.Info.ClusterName).Create() Expect(err).NotTo(HaveOccurred(), "error creating namespace") - if MGMTConfig.Reinstall != nil { + if MGMTConfig.ReinstallConfigFile != "" { By("Recreate admin kubeconfig secret") adminKubeconfig := secret.NewBuilder( diff --git a/tests/lca/imagebasedinstall/mgmt/deploy/tests/reinstall-test.go b/tests/lca/imagebasedinstall/mgmt/deploy/tests/reinstall-test.go index 3a108995b..591b4d2f0 100644 --- a/tests/lca/imagebasedinstall/mgmt/deploy/tests/reinstall-test.go +++ b/tests/lca/imagebasedinstall/mgmt/deploy/tests/reinstall-test.go @@ -49,7 +49,7 @@ var _ = Describe( Skip("Cluster is deployed with siteconfig operator") } - if MGMTConfig.Reinstall == nil { + if MGMTConfig.ReinstallConfigFile == "" { Skip("Reinstall configuration not supplied") }