Skip to content

Commit

Permalink
change service registry to external for service entries (istio#19869)
Browse files Browse the repository at this point in the history
Signed-off-by: Rama Chavali <[email protected]>
  • Loading branch information
ramaraochavali authored and istio-testing committed Jan 1, 2020
1 parent 7ac57c4 commit ad4516a
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 4 deletions.
6 changes: 3 additions & 3 deletions pilot/pkg/serviceregistry/external/conversion.go
Original file line number Diff line number Diff line change
Expand Up @@ -83,7 +83,7 @@ func convertServices(cfg model.Config) []*model.Service {
Ports: svcPorts,
Resolution: resolution,
Attributes: model.ServiceAttributes{
ServiceRegistry: string(serviceregistry.MCP),
ServiceRegistry: string(serviceregistry.External),
Name: hostname,
Namespace: cfg.Namespace,
ExportTo: exportTo,
Expand All @@ -98,7 +98,7 @@ func convertServices(cfg model.Config) []*model.Service {
Ports: svcPorts,
Resolution: resolution,
Attributes: model.ServiceAttributes{
ServiceRegistry: string(serviceregistry.MCP),
ServiceRegistry: string(serviceregistry.External),
Name: hostname,
Namespace: cfg.Namespace,
ExportTo: exportTo,
Expand All @@ -115,7 +115,7 @@ func convertServices(cfg model.Config) []*model.Service {
Ports: svcPorts,
Resolution: resolution,
Attributes: model.ServiceAttributes{
ServiceRegistry: string(serviceregistry.MCP),
ServiceRegistry: string(serviceregistry.External),
Name: hostname,
Namespace: cfg.Namespace,
ExportTo: exportTo,
Expand Down
2 changes: 1 addition & 1 deletion pilot/pkg/serviceregistry/external/conversion_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -311,7 +311,7 @@ func makeService(hostname host.Name, configNamespace, address string, ports map[
MeshExternal: external,
Resolution: resolution,
Attributes: model.ServiceAttributes{
ServiceRegistry: string(serviceregistry.MCP),
ServiceRegistry: string(serviceregistry.External),
Name: string(hostname),
Namespace: configNamespace,
},
Expand Down

0 comments on commit ad4516a

Please sign in to comment.