@@ -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.
9090type 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