Skip to content

Commit

Permalink
fix: crd resource status is not updated (apache#1335)
Browse files Browse the repository at this point in the history
Signed-off-by: Jintao Zhang <zhangjintao9020@gmail.com>
  • Loading branch information
tao12345666333 committed Sep 16, 2022
1 parent 5a3ce7c commit 13333ce
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion pkg/ingress/status.go
Original file line number Diff line number Diff line change
Expand Up @@ -42,7 +42,7 @@ const (
// verifyGeneration verify generation to decide whether to update status
func (c *Controller) verifyGeneration(conditions *[]metav1.Condition, newCondition metav1.Condition) bool {
existingCondition := meta.FindStatusCondition(*conditions, newCondition.Type)
if existingCondition != nil && existingCondition.ObservedGeneration >= newCondition.ObservedGeneration {
if existingCondition != nil && existingCondition.ObservedGeneration > newCondition.ObservedGeneration {
return false
}
return true
Expand Down

0 comments on commit 13333ce

Please sign in to comment.