Skip to content

Commit

Permalink
refactor: Remove used code in cell sync
Browse files Browse the repository at this point in the history
  • Loading branch information
mumoshu committed Jan 2, 2022
1 parent 701fce6 commit d7ea8d6
Showing 1 changed file with 0 additions and 18 deletions.
18 changes: 0 additions & 18 deletions pkg/cell/cell.go
Original file line number Diff line number Diff line change
Expand Up @@ -349,24 +349,6 @@ func Sync(config SyncInput) error {
return err
}

var maxSuccessfulAnalysisRunStepIndex int
for _, ar := range analysisRunList.Items {
if ar.Status.Phase.Completed() {
stepIndexStr, ok := ar.Labels[LabelKeyStepIndex]
if !ok {
return fmt.Errorf("AnalysisRun %q does not have as step-index label. Perhaps this is not the one managed by okra?", ar.Name)
}
stepIndex, err := strconv.Atoi(stepIndexStr)
if err != nil {
return fmt.Errorf("parsing step index %q: %v", stepIndexStr, err)
}

if stepIndex > maxSuccessfulAnalysisRunStepIndex {
maxSuccessfulAnalysisRunStepIndex = stepIndex
}
}
}

ccr := cellComponentReconciler{
cell: cell,
runtimeClient: runtimeClient,
Expand Down

0 comments on commit d7ea8d6

Please sign in to comment.