@@ -175,7 +175,6 @@ const hardwareDetails = `
175175var _ = Describe ("External Inspection" , Label ("required" , "external-inspection" ), func () {
176176 var (
177177 specName = "external-inspection"
178- secretName = "bmc-credentials"
179178 namespace * corev1.Namespace
180179 cancelWatches context.CancelFunc
181180 )
@@ -195,12 +194,12 @@ var _ = Describe("External Inspection", Label("required", "external-inspection")
195194 "username" : bmc .User ,
196195 "password" : bmc .Password ,
197196 }
198- CreateSecret (ctx , clusterProxy .GetClient (), namespace .Name , secretName , bmcCredentialsData )
197+ CreateSecret (ctx , clusterProxy .GetClient (), namespace .Name , "bmc-credentials-annotation" , bmcCredentialsData )
199198
200199 By ("creating a BMH with inspection disabled and hardware details added" )
201200 bmh := metal3api.BareMetalHost {
202201 ObjectMeta : metav1.ObjectMeta {
203- Name : specName + "-inspect " ,
202+ Name : specName + "-annotation " ,
204203 Namespace : namespace .Name ,
205204 Annotations : map [string ]string {
206205 metal3api .InspectAnnotationPrefix : "disabled" ,
@@ -210,7 +209,7 @@ var _ = Describe("External Inspection", Label("required", "external-inspection")
210209 Spec : metal3api.BareMetalHostSpec {
211210 BMC : metal3api.BMCDetails {
212211 Address : bmc .Address ,
213- CredentialsName : "bmc-credentials" ,
212+ CredentialsName : "bmc-credentials-annotation " ,
214213 DisableCertificateVerification : bmc .DisableCertificateVerification ,
215214 },
216215 BootMode : metal3api .BootMode (e2eConfig .GetVariable ("BOOT_MODE" )),
@@ -255,12 +254,12 @@ var _ = Describe("External Inspection", Label("required", "external-inspection")
255254 "username" : bmc .User ,
256255 "password" : bmc .Password ,
257256 }
258- CreateSecret (ctx , clusterProxy .GetClient (), namespace .Name , secretName , bmcCredentialsData )
257+ CreateSecret (ctx , clusterProxy .GetClient (), namespace .Name , "bmc-credentials-hardware-data" , bmcCredentialsData )
259258
260259 By ("pre-creating a hardware data" )
261260 hwdata := metal3api.HardwareData {
262261 ObjectMeta : metav1.ObjectMeta {
263- Name : specName + "-inspect " ,
262+ Name : specName + "-hardware-data " ,
264263 Namespace : namespace .Name ,
265264 },
266265 Spec : metal3api.HardwareDataSpec {
@@ -275,13 +274,13 @@ var _ = Describe("External Inspection", Label("required", "external-inspection")
275274 By ("creating a BMH with inspection disabled and hardware details added" )
276275 bmh := metal3api.BareMetalHost {
277276 ObjectMeta : metav1.ObjectMeta {
278- Name : specName + "-inspect " ,
277+ Name : specName + "-hardware-data " ,
279278 Namespace : namespace .Name ,
280279 },
281280 Spec : metal3api.BareMetalHostSpec {
282281 BMC : metal3api.BMCDetails {
283282 Address : bmc .Address ,
284- CredentialsName : "bmc-credentials" ,
283+ CredentialsName : "bmc-credentials-hardware-data " ,
285284 DisableCertificateVerification : bmc .DisableCertificateVerification ,
286285 },
287286 BootMode : metal3api .BootMode (e2eConfig .GetVariable ("BOOT_MODE" )),
0 commit comments