Skip to content

Commit 7d1dc9e

Browse files
committed
fix linting issue and broken test
1 parent 8354e3f commit 7d1dc9e

File tree

2 files changed

+3
-2
lines changed

2 files changed

+3
-2
lines changed

internal/config/architecture/config.go

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,4 @@
1+
//nolint:revive
12
package architecture
23

34
import (

internal/controller/core/apiserver/controller_test.go

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -25,9 +25,9 @@ import (
2525

2626
. "github.com/openmcp-project/mcp-operator/test/matchers"
2727

28-
ctrlutils "github.com/openmcp-project/controller-utils/pkg/controller"
2928
"github.com/openmcp-project/controller-utils/pkg/testing"
3029
clustersv1alpha1 "github.com/openmcp-project/openmcp-operator/api/clusters/v1alpha1"
30+
openmcpclusterutils "github.com/openmcp-project/openmcp-operator/lib/utils"
3131

3232
gardenv1beta1 "github.com/openmcp-project/mcp-operator/api/external/gardener/pkg/apis/core/v1beta1"
3333

@@ -350,7 +350,7 @@ var _ = Describe("CO-1153 APIServer Controller", func() {
350350

351351
cr := &clustersv1alpha1.ClusterRequest{}
352352
cr.Name = as.Name
353-
cr.Namespace = fmt.Sprintf("mcp-%s", ctrlutils.K8sNameHash(as.Namespace))
353+
cr.Namespace = openmcpclusterutils.StableRequestNamespace(as.Namespace)
354354
Expect(env.Client(testutils.LaaSCoreCluster).Get(env.Ctx, client.ObjectKeyFromObject(cr), cr)).To(Succeed())
355355

356356
Expect(env.Client(testutils.CrateCluster).Get(env.Ctx, client.ObjectKeyFromObject(as), as)).To(Succeed())

0 commit comments

Comments
 (0)