Skip to content

Commit

Permalink
Merge branch 'w/127.0/bugfix/ensure-default-namespace-exist-in-operat…
Browse files Browse the repository at this point in the history
…or-tests' into tmp/octopus/q/127.0
  • Loading branch information
bert-e committed Jan 3, 2024
2 parents 8fd8998 + 3740161 commit 35d9004
Showing 1 changed file with 5 additions and 1 deletion.
6 changes: 5 additions & 1 deletion operator/pkg/controller/utils/object_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -46,6 +46,11 @@ var _ = Describe("ObjectHandler", func() {
c, err = client.New(cfg, client.Options{})
Expect(err).ToNot(HaveOccurred())

ctx = context.Background()

// Ensure the "default" namespace exists
c.Create(ctx, &corev1.Namespace{ObjectMeta: metav1.ObjectMeta{Name: "default"}})

log = logf.Log.WithName("utils-test-logger")
recorder = record.NewFakeRecorder(10)
componentName = "testcomponentname"
Expand All @@ -56,7 +61,6 @@ var _ = Describe("ObjectHandler", func() {
c, scheme.Scheme, recorder, log,
componentName, appName,
)
ctx = context.Background()
})

AfterEach(func() {
Expand Down

0 comments on commit 35d9004

Please sign in to comment.