This is an automated email from the ASF dual-hosted git repository.

zhangjintao pushed a commit to branch v1.5.0
in repository https://gitbox.apache.org/repos/asf/apisix-ingress-controller.git


The following commit(s) were added to refs/heads/v1.5.0 by this push:
     new 1531680e fix: crd resource status is not updated (#1335) (#1336)
1531680e is described below

commit 1531680e668913e6007ec6ac1ea6622ec237d149
Author: Jintao Zhang <[email protected]>
AuthorDate: Fri Sep 16 12:06:13 2022 +0800

    fix: crd resource status is not updated (#1335) (#1336)
    
    Signed-off-by: Jintao Zhang <[email protected]>
---
 pkg/ingress/status.go | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/pkg/ingress/status.go b/pkg/ingress/status.go
index 9042a66c..a897b1f7 100644
--- a/pkg/ingress/status.go
+++ b/pkg/ingress/status.go
@@ -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

Reply via email to