Skip to content

Commit

Permalink
Use framework's create namespace logic
Browse files Browse the repository at this point in the history
Signed-off-by: Surya Seetharaman <[email protected]>
  • Loading branch information
tssurya committed Feb 3, 2025
1 parent d8e21e6 commit 65a9d50
Showing 1 changed file with 1 addition and 6 deletions.
7 changes: 1 addition & 6 deletions test/extended/networking/network_segmentation.go
Original file line number Diff line number Diff line change
Expand Up @@ -501,12 +501,7 @@ var _ = Describe("[sig-network][OCPFeatureGate:NetworkSegmentation][Feature:User

for _, namespace := range []string{namespaceRed, namespaceBlue} {
By("Creating namespace " + namespace)
_, err := cs.CoreV1().Namespaces().Create(context.Background(), &v1.Namespace{
ObjectMeta: metav1.ObjectMeta{
Name: namespace,
Labels: l,
},
}, metav1.CreateOptions{})
_, err := f.CreateNamespace(context.TODO(), namespace, l)
Expect(err).NotTo(HaveOccurred())
defer func() {
By("Removing namespace " + namespace)
Expand Down

0 comments on commit 65a9d50

Please sign in to comment.