Skip to content

Commit 05c099c

Browse files
Fixed leftovers after merge
1 parent 0e77f25 commit 05c099c

File tree

2 files changed

+7
-7
lines changed

2 files changed

+7
-7
lines changed

internal/controller/atlasproject/integrations.go

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -252,7 +252,7 @@ func (ir IntegrationReconciler) reconcile(ctx *workflow.Context) workflow.Deprec
252252
if _, found := ir.integrationsInAKO["PROMETHEUS"]; found {
253253
ctx.EnsureStatusOption(status.AtlasProjectPrometheusOption(&status.Prometheus{
254254
Scheme: "https",
255-
DiscoveryURL: fmt.Sprintf("https://%s/prometheus/v1.0/groups/%s/discovery", ctx.SdkClientSet.SdkClient20250312002.GetConfig().Host, ir.project.ID()),
255+
DiscoveryURL: fmt.Sprintf("https://%s/prometheus/v1.0/groups/%s/discovery", ctx.SdkClientSet.SdkClient20250312006.GetConfig().Host, ir.project.ID()),
256256
}))
257257
} else {
258258
ctx.EnsureStatusOption(status.AtlasProjectPrometheusOption(nil))
@@ -271,7 +271,7 @@ func NewIntegrationReconciler(
271271
project: project,
272272
integrationsInAKO: mapIntegrationsPerType(integrations),
273273
lasAppliedIntegrationsTypes: lastAppliedIntegrationsTypes,
274-
service: integration.NewThirdPartyIntegrationService(ctx.SdkClientSet.SdkClient20250312002.ThirdPartyIntegrationsApi),
274+
service: integration.NewThirdPartyIntegrationService(ctx.SdkClientSet.SdkClient20250312006.ThirdPartyIntegrationsApi),
275275
}
276276
}
277277

internal/controller/atlasproject/integrations_test.go

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -23,8 +23,8 @@ import (
2323
"github.com/google/go-cmp/cmp/cmpopts"
2424
"github.com/stretchr/testify/assert"
2525
"github.com/stretchr/testify/mock"
26-
"go.mongodb.org/atlas-sdk/v20250312002/admin"
27-
"go.mongodb.org/atlas-sdk/v20250312002/mockadmin"
26+
"go.mongodb.org/atlas-sdk/v20250312006/admin"
27+
"go.mongodb.org/atlas-sdk/v20250312006/mockadmin"
2828
"go.uber.org/zap/zaptest"
2929
corev1 "k8s.io/api/core/v1"
3030
metav1 "k8s.io/apimachinery/pkg/apis/meta/v1"
@@ -543,10 +543,10 @@ func TestEnsureIntegration(t *testing.T) {
543543
Context: context.Background(),
544544
Log: zaptest.NewLogger(t).Sugar(),
545545
SdkClientSet: &atlas.ClientSet{
546-
SdkClient20250312002: admin.NewAPIClient(&admin.Configuration{Host: "cloud-qa.mongodb.com"}),
546+
SdkClient20250312006: admin.NewAPIClient(&admin.Configuration{Host: "cloud-qa.mongodb.com"}),
547547
},
548548
}
549-
workflowCtx.SdkClientSet.SdkClient20250312002.ThirdPartyIntegrationsApi = tt.apiMock()
549+
workflowCtx.SdkClientSet.SdkClient20250312006.ThirdPartyIntegrationsApi = tt.apiMock()
550550
reconciler := &AtlasProjectReconciler{
551551
Client: fake.NewClientBuilder().
552552
WithScheme(testScheme).
@@ -773,7 +773,7 @@ func TestIntegrationReconcile(t *testing.T) {
773773
Context: context.Background(),
774774
Log: zaptest.NewLogger(t).Sugar(),
775775
SdkClientSet: &atlas.ClientSet{
776-
SdkClient20250312002: admin.NewAPIClient(&admin.Configuration{Host: "cloud-qa.mongodb.com"}),
776+
SdkClient20250312006: admin.NewAPIClient(&admin.Configuration{Host: "cloud-qa.mongodb.com"}),
777777
},
778778
}
779779
reconciler := IntegrationReconciler{

0 commit comments

Comments
 (0)