Skip to content

Commit

Permalink
Merge pull request #1423 from swetharepakula/neg-init-metrics
Browse files Browse the repository at this point in the history
Return expectedCondition so timestamp is populated
  • Loading branch information
k8s-ci-robot authored Apr 30, 2021
2 parents 476296a + 78d133a commit 1aec09b
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 1aec09b

Please sign in to comment.