Skip to content

Commit 39a626f

Browse files
committed
reconciler: Remove NewStatusIndex and WaitForReconciliation
These were never used by Cilium and they are very inefficient way of waiting for objects to be reconciled. Just drop these as we now have [Reconciler.WaitUntilReconciled]. Signed-off-by: Jussi Maki <jussi.maki@isovalent.com>
1 parent 052baef commit 39a626f

File tree

2 files changed

+2
-55
lines changed

2 files changed

+2
-55
lines changed

reconciler/example/types.go

Lines changed: 2 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -71,17 +71,12 @@ var MemoNameIndex = statedb.Index[*Memo, string]{
7171
Unique: true,
7272
}
7373

74-
// MemoStatusIndex indexes memos by their reconciliation status.
75-
// This is mainly used by the reconciler to implement WaitForReconciliation.
76-
var MemoStatusIndex = reconciler.NewStatusIndex((*Memo).GetStatus)
77-
7874
// NewMemoTable creates and registers the memos table.
79-
func NewMemoTable(db *statedb.DB) (statedb.RWTable[*Memo], statedb.Index[*Memo, reconciler.StatusKind], error) {
75+
func NewMemoTable(db *statedb.DB) (statedb.RWTable[*Memo], error) {
8076
tbl, err := statedb.NewTable(
8177
db,
8278
"memos",
8379
MemoNameIndex,
84-
MemoStatusIndex,
8580
)
86-
return tbl, MemoStatusIndex, err
81+
return tbl, err
8782
}

reconciler/index.go

Lines changed: 0 additions & 48 deletions
This file was deleted.

0 commit comments

Comments
 (0)