Skip to content

Commit

Permalink
fix the comparison of generation
Browse files Browse the repository at this point in the history
Signed-off-by: terasihma <[email protected]>
  • Loading branch information
terassyi committed May 19, 2023
1 parent c89932a commit 4749828
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion op/status.go
Original file line number Diff line number Diff line change
Expand Up @@ -490,7 +490,7 @@ func GetKubernetesClusterStatus(ctx context.Context, inf cke.Infrastructure, n *
}

func objStatus(generation, observedGeneration, desired, updated, available int64) bool {
if generation < observedGeneration {
if generation > observedGeneration {
return false
}
// If we get the status immediately after applying the resource, the value of desired may be 0.
Expand Down

0 comments on commit 4749828

Please sign in to comment.