Skip to content

Commit d92a8fd

Browse files
committed
Create namespaces explicitly
1 parent 8227c23 commit d92a8fd

File tree

1 file changed

+4
-4
lines changed

1 file changed

+4
-4
lines changed

controllers/suite_test.go

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -134,7 +134,10 @@ var _ = BeforeSuite(func(done Done) {
134134
svcClusterClient = svcClusterMgr.GetClient()
135135
Expect(svcClusterClient).ToNot(BeNil())
136136

137-
createNamespace(svcClusterClient, "firewall")
137+
// Available in production, but not here
138+
createNamespace(ctrlClusterClient, "metal-extension-cloud")
139+
createNamespace(svcClusterClient, firewall.ClusterwideNetworkPolicyNamespace)
140+
138141
createPostgresTestInstance(createBackupSecret())
139142
createConfigMapSidecarConfig()
140143
createCredentialSecrets()
@@ -156,9 +159,6 @@ func createBackupSecret() *core.Secret {
156159
Expect(err).ToNot(HaveOccurred())
157160
Expect(yaml.Unmarshal(bytes, backupSecret)).Should(Succeed())
158161

159-
// Available in production, but not here
160-
createNamespace(ctrlClusterClient, backupSecret.Namespace)
161-
162162
Expect(ctrlClusterClient.Create(newCtx(), backupSecret)).Should(Succeed())
163163

164164
return backupSecret

0 commit comments

Comments
 (0)