Skip to content

Commit eb3e848

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 cf68a3b commit eb3e848

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)