Skip to content

Commit

Permalink
dev: use getters
Browse files Browse the repository at this point in the history
  • Loading branch information
sunsingerus committed Oct 24, 2023
1 parent 59e0e38 commit 5dee929
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion pkg/controller/chi/worker.go
Original file line number Diff line number Diff line change
Expand Up @@ -940,7 +940,8 @@ func (w *worker) shouldMigrateTables(host *chiV1.ChiHost, opts ...*migrateTableO
// This host is listed as having tables created already, no need to migrate again
return false

case host.GetCHI().EnsureStatus().HostsCount == host.GetCHI().EnsureStatus().HostsAddedCount:
case host.GetCHI().EnsureStatus().GetHostsCount() == host.GetCHI().EnsureStatus().GetHostsAddedCount():
// TODO there should be better way to detect newly created CHI
// CHI is new, all hosts were added
return false
}
Expand Down

0 comments on commit 5dee929

Please sign in to comment.