Skip to content

Commit

Permalink
refactoring
Browse files Browse the repository at this point in the history
  • Loading branch information
igor-karpukhin committed Mar 28, 2024
1 parent 90be3e0 commit 5845fb4
Showing 1 changed file with 4 additions and 3 deletions.
7 changes: 4 additions & 3 deletions internal/kubernetes/operator/deployment/deployment.go
Expand Up @@ -17,6 +17,7 @@ package deployment
import (
"fmt"

"github.com/mongodb/mongodb-atlas-cli/atlascli/internal/kubernetes/operator/convert"

Check failure on line 20 in internal/kubernetes/operator/deployment/deployment.go

View workflow job for this annotation

GitHub Actions / docs

no required module provides package github.com/mongodb/mongodb-atlas-cli/atlascli/internal/kubernetes/operator/convert; to add it:

Check failure on line 20 in internal/kubernetes/operator/deployment/deployment.go

View workflow job for this annotation

GitHub Actions / unit-tests (ubuntu-latest)

no required module provides package github.com/mongodb/mongodb-atlas-cli/atlascli/internal/kubernetes/operator/convert; to add it:

Check failure on line 20 in internal/kubernetes/operator/deployment/deployment.go

View workflow job for this annotation

GitHub Actions / unit-tests (ubuntu-latest)

no required module provides package github.com/mongodb/mongodb-atlas-cli/atlascli/internal/kubernetes/operator/convert; to add it:

Check failure on line 20 in internal/kubernetes/operator/deployment/deployment.go

View workflow job for this annotation

GitHub Actions / unit-tests (windows-latest)

no required module provides package github.com/mongodb/mongodb-atlas-cli/atlascli/internal/kubernetes/operator/convert; to add it:

Check failure on line 20 in internal/kubernetes/operator/deployment/deployment.go

View workflow job for this annotation

GitHub Actions / unit-tests (windows-latest)

no required module provides package github.com/mongodb/mongodb-atlas-cli/atlascli/internal/kubernetes/operator/convert; to add it:

Check failure on line 20 in internal/kubernetes/operator/deployment/deployment.go

View workflow job for this annotation

GitHub Actions / unit-tests (macos-latest)

no required module provides package github.com/mongodb/mongodb-atlas-cli/atlascli/internal/kubernetes/operator/convert; to add it:

Check failure on line 20 in internal/kubernetes/operator/deployment/deployment.go

View workflow job for this annotation

GitHub Actions / unit-tests (macos-latest)

no required module provides package github.com/mongodb/mongodb-atlas-cli/atlascli/internal/kubernetes/operator/convert; to add it:
"github.com/mongodb/mongodb-atlas-cli/atlascli/internal/kubernetes/operator/features"
"github.com/mongodb/mongodb-atlas-cli/atlascli/internal/kubernetes/operator/resources"
"github.com/mongodb/mongodb-atlas-cli/atlascli/internal/pointer"
Expand Down Expand Up @@ -389,7 +390,7 @@ func buildReplicationSpec(atlasRepSpec []atlasv2.ReplicationSpec) []*akov2.Advan
var analyticsSpecs *akov2.Specs
if rc.AnalyticsSpecs != nil {
analyticsSpecs = &akov2.Specs{
DiskIOPS: pointer.IntToInt64(rc.AnalyticsSpecs.DiskIOPS),
DiskIOPS: convert.IntToInt64(rc.AnalyticsSpecs.DiskIOPS),
EbsVolumeType: rc.AnalyticsSpecs.GetEbsVolumeType(),
InstanceSize: rc.AnalyticsSpecs.GetInstanceSize(),
NodeCount: rc.AnalyticsSpecs.NodeCount,
Expand All @@ -398,7 +399,7 @@ func buildReplicationSpec(atlasRepSpec []atlasv2.ReplicationSpec) []*akov2.Advan
var electableSpecs *akov2.Specs
if rc.ElectableSpecs != nil {
electableSpecs = &akov2.Specs{
DiskIOPS: pointer.IntToInt64(rc.ElectableSpecs.DiskIOPS),
DiskIOPS: convert.IntToInt64(rc.ElectableSpecs.DiskIOPS),
EbsVolumeType: rc.ElectableSpecs.GetEbsVolumeType(),
InstanceSize: rc.ElectableSpecs.GetInstanceSize(),
NodeCount: rc.ElectableSpecs.NodeCount,
Expand All @@ -408,7 +409,7 @@ func buildReplicationSpec(atlasRepSpec []atlasv2.ReplicationSpec) []*akov2.Advan
var readOnlySpecs *akov2.Specs
if rc.ReadOnlySpecs != nil {
readOnlySpecs = &akov2.Specs{
DiskIOPS: pointer.IntToInt64(rc.ReadOnlySpecs.DiskIOPS),
DiskIOPS: convert.IntToInt64(rc.ReadOnlySpecs.DiskIOPS),
EbsVolumeType: rc.ReadOnlySpecs.GetEbsVolumeType(),
InstanceSize: rc.ReadOnlySpecs.GetInstanceSize(),
NodeCount: rc.ReadOnlySpecs.NodeCount,
Expand Down

0 comments on commit 5845fb4

Please sign in to comment.