Skip to content

Commit 23add7f

Browse files
committed
Don't export deployment state struct
1 parent 370e67b commit 23add7f

File tree

1 file changed

+4
-4
lines changed

1 file changed

+4
-4
lines changed

controllers/operator/mongodbreplicaset_controller.go

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -78,7 +78,7 @@ type ReconcileMongoDbReplicaSet struct {
7878
databaseNonStaticImageVersion string
7979
}
8080

81-
type ReplicaSetDeploymentState struct {
81+
type replicaSetDeploymentState struct {
8282
LastAchievedSpec *mdbv1.MongoDbSpec
8383
LastReconcileMemberCount int
8484
}
@@ -89,7 +89,7 @@ var _ reconcile.Reconciler = &ReconcileMongoDbReplicaSet{}
8989
// This object is NOT shared between reconcile invocations.
9090
type ReplicaSetReconcilerHelper struct {
9191
resource *mdbv1.MongoDB
92-
deploymentState *ReplicaSetDeploymentState
92+
deploymentState *replicaSetDeploymentState
9393
reconciler *ReconcileMongoDbReplicaSet
9494
log *zap.SugaredLogger
9595
}
@@ -113,7 +113,7 @@ func (r *ReconcileMongoDbReplicaSet) newReconcilerHelper(
113113
}
114114

115115
// readState abstract reading the state of the resource that we store on the cluster between reconciliations.
116-
func (r *ReplicaSetReconcilerHelper) readState() (*ReplicaSetDeploymentState, error) {
116+
func (r *ReplicaSetReconcilerHelper) readState() (*replicaSetDeploymentState, error) {
117117
// Try to get the last achieved spec from annotations and store it in state
118118
lastAchievedSpec, err := r.resource.GetLastSpec()
119119
if err != nil {
@@ -124,7 +124,7 @@ func (r *ReplicaSetReconcilerHelper) readState() (*ReplicaSetDeploymentState, er
124124
// reconciliation and prepares for eventually storing this in ConfigMap state instead of ephemeral status.
125125
lastReconcileMemberCount := r.resource.Status.Members
126126

127-
return &ReplicaSetDeploymentState{
127+
return &replicaSetDeploymentState{
128128
LastAchievedSpec: lastAchievedSpec,
129129
LastReconcileMemberCount: lastReconcileMemberCount,
130130
}, nil

0 commit comments

Comments
 (0)