Skip to content

Commit

Permalink
fix based on issue raised in review
Browse files Browse the repository at this point in the history
  • Loading branch information
grs committed Jul 20, 2020
1 parent 9af470c commit d66e9b7
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions cmd/service-controller/definition_monitor.go
Original file line number Diff line number Diff line change
@@ -258,6 +258,7 @@ func (m *DefinitionMonitor) processNextEvent() bool {
category, name := splitKey(key)
switch category {
case "servicedefs":
log.Print("[DefMon] Service definitions have changed")
//get the configmap, parse the json, check against the current servicebindings map
obj, exists, err := m.svcDefInformer.GetStore().GetByKey(name)
if err != nil {
@@ -295,6 +296,7 @@ func (m *DefinitionMonitor) processNextEvent() bool {
}
} else {
m.headless = make(map[string]types.ServiceInterface)
m.annotated = make(map[string]types.ServiceInterface)
}
}
case "statefulsets":

0 comments on commit d66e9b7

Please sign in to comment.