Skip to content

Commit

Permalink
don't erase the service account map for service hostnames with more t…
Browse files Browse the repository at this point in the history
…han one port (istio#16769)
  • Loading branch information
GregHanson authored and istio-testing committed Sep 3, 2019
1 parent f10e25f commit a0d84c7
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion pilot/pkg/model/push_context.go
Original file line number Diff line number Diff line change
Expand Up @@ -752,7 +752,9 @@ func sortServicesByCreationTime(services []*Service) []*Service {
// Caches list of service accounts in the registry
func (ps *PushContext) initServiceAccounts(env *Environment, services []*Service) {
for _, svc := range services {
ps.ServiceAccounts[svc.Hostname] = map[int][]string{}
if ps.ServiceAccounts[svc.Hostname] == nil {
ps.ServiceAccounts[svc.Hostname] = map[int][]string{}
}
for _, port := range svc.Ports {
if port.Protocol == protocol.UDP {
continue
Expand Down

0 comments on commit a0d84c7

Please sign in to comment.