@@ -19,7 +19,6 @@ import (
19
19
20
20
"github.com/percona/percona-backup-mongodb/pbm"
21
21
api "github.com/percona/percona-server-mongodb-operator/pkg/apis/psmdb/v1"
22
- v1 "github.com/percona/percona-server-mongodb-operator/pkg/apis/psmdb/v1"
23
22
"github.com/percona/percona-server-mongodb-operator/pkg/k8s"
24
23
)
25
24
@@ -70,7 +69,7 @@ func (r *ReconcilePerconaServerMongoDB) scheduleEnsureVersion(ctx context.Contex
70
69
return
71
70
}
72
71
73
- if localCr .Status .State != v1 .AppStateReady {
72
+ if localCr .Status .State != api .AppStateReady {
74
73
log .Info ("cluster is not ready" )
75
74
return
76
75
}
@@ -149,7 +148,7 @@ func MajorMinor(ver *v.Version) string {
149
148
}
150
149
151
150
func majorUpgradeRequested (cr * api.PerconaServerMongoDB , fcv string ) (UpgradeRequest , error ) {
152
- if len (cr .Spec .UpgradeOptions .Apply ) == 0 || v1 .OneOfUpgradeStrategy (string (cr .Spec .UpgradeOptions .Apply )) {
151
+ if len (cr .Spec .UpgradeOptions .Apply ) == 0 || api .OneOfUpgradeStrategy (string (cr .Spec .UpgradeOptions .Apply )) {
153
152
return UpgradeRequest {false , "" , "" }, nil
154
153
}
155
154
@@ -335,7 +334,7 @@ func (r *ReconcilePerconaServerMongoDB) ensureVersion(ctx context.Context, cr *a
335
334
return nil
336
335
}
337
336
338
- if cr .Status .State != v1 .AppStateReady && cr .Status .MongoVersion != "" {
337
+ if cr .Status .State != api .AppStateReady && cr .Status .MongoVersion != "" {
339
338
return errors .New ("cluster is not ready" )
340
339
}
341
340
0 commit comments