Skip to content

Commit

Permalink
Return expectedCondition so timestamp is populated
Browse files Browse the repository at this point in the history
  • Loading branch information
swetharepakula committed Apr 30, 2021
1 parent 476296a commit 78d133a
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion pkg/neg/syncers/transaction.go
Original file line number Diff line number Diff line change
Expand Up @@ -564,7 +564,7 @@ func ensureCondition(neg *negv1beta1.ServiceNetworkEndpointGroup, expectedCondit
condition, index, exists := findCondition(neg.Status.Conditions, expectedCondition.Type)
if !exists {
neg.Status.Conditions = append(neg.Status.Conditions, expectedCondition)
return negv1beta1.Condition{}
return expectedCondition
}

if condition.Status == expectedCondition.Status {
Expand Down

0 comments on commit 78d133a

Please sign in to comment.