Skip to content

Commit 48e9e92

Browse files
committed
BUG/MINOR: service: do not override service status
in case old service status is ADDED, then newly added event should not change status, but only update data. ADDED and MODIFIED status are cleared if transaction is successfully completed
1 parent 4dddf0a commit 48e9e92

File tree

1 file changed

+3
-0
lines changed

1 file changed

+3
-0
lines changed

pkg/store/events.go

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -135,6 +135,9 @@ func (k *K8s) EventService(ns *Namespace, data *Service) (updateRequired bool) {
135135
if oldService.Equal(newService) {
136136
return updateRequired
137137
}
138+
if oldService.Status == ADDED {
139+
newService.Status = ADDED
140+
}
138141
ns.Services[data.Name] = newService
139142
updateRequired = true
140143
case ADDED:

0 commit comments

Comments
 (0)