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

astefanutti pushed a commit to branch main
in repository https://gitbox.apache.org/repos/asf/camel-k.git

commit 8c5fd7865df790a35e50f782308170682be8d6a0
Author: Antonin Stefanutti <anto...@stefanutti.fr>
AuthorDate: Thu Oct 7 15:33:58 2021 +0200

    fix: Fix perserve condition first truthy time
---
 pkg/apis/camel/v1/integration_types_support.go | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/pkg/apis/camel/v1/integration_types_support.go 
b/pkg/apis/camel/v1/integration_types_support.go
index 0aff087..7e2e6f7 100644
--- a/pkg/apis/camel/v1/integration_types_support.go
+++ b/pkg/apis/camel/v1/integration_types_support.go
@@ -377,7 +377,7 @@ func (in *IntegrationStatus) SetConditions(conditions 
...IntegrationCondition) {
                                // Do not update LastTransitionTime if the 
status of the condition doesn't change
                                condition.LastTransitionTime = 
currentCond.LastTransitionTime
                        }
-                       if !(currentCond.FirstTruthyTime != nil || 
currentCond.FirstTruthyTime.IsZero()) {
+                       if currentCond.FirstTruthyTime != nil && 
!currentCond.FirstTruthyTime.IsZero() {
                                // Preserve FirstTruthyTime
                                condition.FirstTruthyTime = 
currentCond.FirstTruthyTime.DeepCopy()
                        }

Reply via email to