Skip to content

Commit

Permalink
[test][int][multikueue] Ignore error on config namespace multiple cre…
Browse files Browse the repository at this point in the history
…ation. (#3146)

* [test][int][multikueue] Ignore error on config namespace multiple creation.

* Check the ns existence before attempting to create it.

* Create the namespace in BeforeSuite
  • Loading branch information
trasc authored Sep 27, 2024
1 parent 4042844 commit 425ece1
Showing 1 changed file with 7 additions and 7 deletions.
14 changes: 7 additions & 7 deletions test/integration/multikueue/suite_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -208,13 +208,6 @@ func managerSetup(ctx context.Context, mgr manager.Manager) {
func managerAndMultiKueueSetup(ctx context.Context, mgr manager.Manager, gcInterval time.Duration) {
managerSetup(ctx, mgr)

managersConfigNamespace = &corev1.Namespace{
ObjectMeta: metav1.ObjectMeta{
Name: "kueue-system",
},
}
gomega.Expect(mgr.GetClient().Create(ctx, managersConfigNamespace)).To(gomega.Succeed())

err := multikueue.SetupIndexer(ctx, mgr.GetFieldIndexer(), managersConfigNamespace.Name)
gomega.Expect(err).NotTo(gomega.HaveOccurred())

Expand Down Expand Up @@ -242,6 +235,13 @@ var _ = ginkgo.BeforeSuite(func() {
gomega.Expect(err).NotTo(gomega.HaveOccurred())
managerK8sVersion, err = kubeversion.FetchServerVersion(discoveryClient)
gomega.Expect(err).NotTo(gomega.HaveOccurred())

managersConfigNamespace = &corev1.Namespace{
ObjectMeta: metav1.ObjectMeta{
Name: "kueue-system",
},
}
gomega.Expect(managerTestCluster.client.Create(managerTestCluster.ctx, managersConfigNamespace)).To(gomega.Succeed())
})

var _ = ginkgo.AfterSuite(func() {
Expand Down

0 comments on commit 425ece1

Please sign in to comment.