@@ -149,7 +149,7 @@ func (s *KcpsetupTestSuite) Test_getCABundleInventory() {
149149
150150 // Test case 2: Secret not found
151151 // Create a new instance to clear the cache
152- s .testObj = subroutines .NewKcpsetupSubroutine (s .clientMock , s .helperMock , ManifestStructureTest , "" )
152+ s .testObj = subroutines .NewKcpsetupSubroutine (s .clientMock , s .helperMock , & config. OperatorConfig {}, ManifestStructureTest , "" )
153153
154154 // Mock the mutating webhook secret lookup to return error
155155 s .clientMock .EXPECT ().
@@ -224,7 +224,7 @@ func (s *KcpsetupTestSuite) SetupTest() {
224224 s .clientMock = new (mocks.Client )
225225 s .helperMock = new (mocks.KcpHelper )
226226 s .log , _ = logger .New (logger .DefaultConfig ())
227- s .testObj = subroutines .NewKcpsetupSubroutine (s .clientMock , s .helperMock , ManifestStructureTest , "https://kcp.example.com" )
227+ s .testObj = subroutines .NewKcpsetupSubroutine (s .clientMock , s .helperMock , & config. OperatorConfig {}, ManifestStructureTest , "https://kcp.example.com" )
228228}
229229
230230func (s * KcpsetupTestSuite ) TearDownTest () {
@@ -430,15 +430,15 @@ func (s *KcpsetupTestSuite) TestProcess() {
430430 s .Assert ().Equal (ctrl.Result {}, result )
431431
432432 // Test error case - create a new instance to clear the cache
433- s .testObj = subroutines .NewKcpsetupSubroutine (s .clientMock , s .helperMock , ManifestStructureTest , "https://kcp.example.com" )
433+ s .testObj = subroutines .NewKcpsetupSubroutine (s .clientMock , s .helperMock , & config. OperatorConfig {}, ManifestStructureTest , "https://kcp.example.com" )
434434}
435435
436436func (s * KcpsetupTestSuite ) Test_getAPIExportHashInventory () {
437437 // mocks
438438 mockKcpClient := new (mocks.Client )
439439 mockedKcpHelper := new (mocks.KcpHelper )
440440 mockedKcpHelper .EXPECT ().NewKcpClient (mock .Anything , mock .Anything ).Return (mockKcpClient , nil ).Times (3 )
441- s .testObj = subroutines .NewKcpsetupSubroutine (s .clientMock , mockedKcpHelper , ManifestStructureTest , "" )
441+ s .testObj = subroutines .NewKcpsetupSubroutine (s .clientMock , mockedKcpHelper , & config. OperatorConfig {}, ManifestStructureTest , "" )
442442
443443 apiexport := & kcpapiv1alpha.APIExport {
444444 Status : kcpapiv1alpha.APIExportStatus {
@@ -515,7 +515,7 @@ func (s *KcpsetupTestSuite) Test_Constructor() {
515515 helper := & subroutines.Helper {}
516516
517517 // create new test object
518- s .testObj = subroutines .NewKcpsetupSubroutine (s .clientMock , helper , ManifestStructureTest , "" )
518+ s .testObj = subroutines .NewKcpsetupSubroutine (s .clientMock , helper , & config. OperatorConfig {}, ManifestStructureTest , "" )
519519}
520520
521521func (s * KcpsetupTestSuite ) TestFinalizers () {
@@ -581,7 +581,7 @@ func (s *KcpsetupTestSuite) TestCreateWorkspaces() {
581581 // test err1 - expect error when NewKcpClient fails
582582 mockedKcpHelper := new (mocks.KcpHelper )
583583 mockedKcpHelper .EXPECT ().NewKcpClient (mock .Anything , mock .Anything ).Return (nil , errors .New ("failed to create client" ))
584- s .testObj = subroutines .NewKcpsetupSubroutine (s .clientMock , mockedKcpHelper , ManifestStructureTest , "" )
584+ s .testObj = subroutines .NewKcpsetupSubroutine (s .clientMock , mockedKcpHelper , & config. OperatorConfig {}, ManifestStructureTest , "" )
585585
586586 err := s .testObj .CreateKcpResources (context .Background (), & rest.Config {}, ManifestStructureTest , & corev1alpha1.PlatformMesh {})
587587 s .Assert ().Error (err )
@@ -592,7 +592,7 @@ func (s *KcpsetupTestSuite) TestCreateWorkspaces() {
592592 mockKcpClient := new (mocks.Client )
593593 mockedKcpHelper = new (mocks.KcpHelper )
594594 mockedKcpHelper .EXPECT ().NewKcpClient (mock .Anything , mock .Anything ).Return (mockKcpClient , nil )
595- s .testObj = subroutines .NewKcpsetupSubroutine (mockedK8sClient , mockedKcpHelper , ManifestStructureTest , "" )
595+ s .testObj = subroutines .NewKcpsetupSubroutine (mockedK8sClient , mockedKcpHelper , & config. OperatorConfig {}, ManifestStructureTest , "" )
596596
597597 // Mock both webhook secret lookups for CA bundle inventory
598598 webhookConfig := subroutines .DEFAULT_WEBHOOK_CONFIGURATION
@@ -671,7 +671,7 @@ func (s *KcpsetupTestSuite) TestCreateWorkspaces() {
671671 mockKcpClient = new (mocks.Client )
672672 mockedKcpHelper = new (mocks.KcpHelper )
673673 mockedKcpHelper .EXPECT ().NewKcpClient (mock .Anything , mock .Anything ).Return (mockKcpClient , nil )
674- s .testObj = subroutines .NewKcpsetupSubroutine (mockedK8sClient , mockedKcpHelper , ManifestStructureTest , "" )
674+ s .testObj = subroutines .NewKcpsetupSubroutine (mockedK8sClient , mockedKcpHelper , & config. OperatorConfig {}, ManifestStructureTest , "" )
675675
676676 // Mock both secret lookups again (they should be cached from previous call)
677677 // Since we're creating a new instance, the cache is cleared, so we need to mock again
0 commit comments