Skip to content

Commit

Permalink
feat: add a lot of new generic conditions for generic tracker
Browse files Browse the repository at this point in the history
Signed-off-by: Ilya Lesikov <ilya@lesikov.com>
  • Loading branch information
ilya-lesikov committed Dec 18, 2023
1 parent 7373f0d commit 8c44e5d
Showing 1 changed file with 23 additions and 0 deletions.
23 changes: 23 additions & 0 deletions pkg/tracker/generic/resource_state_json_paths.go
Original file line number Diff line number Diff line change
Expand Up @@ -47,20 +47,43 @@ func buildUniversalConditions() {
"complete",
"completed",
"finished",
"finalized",
"done",
"available",
"running",
"ok",
"active",
"live",
"healthy",
"started",
"initialized",
"approved",
}

pendingValuesByPriority := []string{
"creating",
"updating",
"waiting",
"pending",
"finishing",
"starting",
"readying",
"progressing",
"initializing",
"approving",
"unknown",
}

failedValuesByPriority := []string{
"failure",
"failed",
"abort",
"aborted",
"terminated",
"error",
"errored",
"rejection",
"rejected",
}

for _, readyValue := range readyValuesByPriority {
Expand Down

0 comments on commit 8c44e5d

Please sign in to comment.