Skip to content

Commit 9ae637a

Browse files
committed
Rename variable, remove JSON export
1 parent 2b0d2be commit 9ae637a

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
@@ -79,8 +79,8 @@ type ReconcileMongoDbReplicaSet struct {
7979
}
8080

8181
type ReplicaSetDeploymentState struct {
82-
LastAchievedSpec *mdbv1.MongoDbSpec `json:"lastAchievedSpec"`
83-
LastReconcileMemberCount int `json:"memberCountBefore"`
82+
LastAchievedSpec *mdbv1.MongoDbSpec
83+
LastReconcileMemberCount int
8484
}
8585

8686
var _ reconcile.Reconciler = &ReconcileMongoDbReplicaSet{}
@@ -122,11 +122,11 @@ func (r *ReplicaSetReconcilerHelper) readState() (*ReplicaSetDeploymentState, er
122122

123123
// Read current member count from Status once at initialization. This provides a stable view throughout
124124
// reconciliation and prepares for eventually storing this in ConfigMap state instead of ephemeral status.
125-
memberCountBefore := r.resource.Status.Members
125+
lastReconcileMemberCount := r.resource.Status.Members
126126

127127
return &ReplicaSetDeploymentState{
128128
LastAchievedSpec: lastAchievedSpec,
129-
LastReconcileMemberCount: memberCountBefore,
129+
LastReconcileMemberCount: lastReconcileMemberCount,
130130
}, nil
131131
}
132132

0 commit comments

Comments
 (0)