@@ -26,15 +26,15 @@ type Maesh struct {
2626}
2727
2828func (sm Maesh ) SvcAGetInternalName (namespace string ) string {
29- return fmt .Sprintf ("http://%s.%s.maesh:%s" , SERVICE_A_NAME , namespace , sm .PortSvcA )
29+ return fmt .Sprintf ("http://%s.%s.maesh:%s" , SvcNameA , namespace , sm .PortSvcA )
3030}
3131
3232func (sm Maesh ) SvcBGetInternalName (namespace string ) string {
33- return fmt .Sprintf ("http://%s.%s.maesh:%s" , SERVICE_B_NAME , namespace , sm .PortSvcB )
33+ return fmt .Sprintf ("http://%s.%s.maesh:%s" , SvcNameB , namespace , sm .PortSvcB )
3434}
3535
3636func (sm Maesh ) SvcCGetInternalName (namespace string ) string {
37- return fmt .Sprintf ("http://%s.%s.maesh:%s" , SERVICE_C_NAME , namespace , sm .PortSvcC )
37+ return fmt .Sprintf ("http://%s.%s.maesh:%s" , SvcNameC , namespace , sm .PortSvcC )
3838}
3939
4040func (sm Maesh ) SvcAGetPort () string {
@@ -56,15 +56,15 @@ type Linkerd struct {
5656}
5757
5858func (sm Linkerd ) SvcAGetInternalName (namespace string ) string {
59- return fmt .Sprintf ("http://%s.%s..svc.cluster.local.:%s" , SERVICE_A_NAME , namespace , sm .PortSvcA )
59+ return fmt .Sprintf ("http://%s.%s..svc.cluster.local.:%s" , SvcNameA , namespace , sm .PortSvcA )
6060}
6161
6262func (sm Linkerd ) SvcBGetInternalName (namespace string ) string {
63- return fmt .Sprintf ("http://%s.%s..svc.cluster.local.:%s" , SERVICE_B_NAME , namespace , sm .PortSvcB )
63+ return fmt .Sprintf ("http://%s.%s..svc.cluster.local.:%s" , SvcNameB , namespace , sm .PortSvcB )
6464}
6565
6666func (sm Linkerd ) SvcCGetInternalName (namespace string ) string {
67- return fmt .Sprintf ("http://%s.%s..svc.cluster.local.:%s" , SERVICE_C_NAME , namespace , sm .PortSvcC )
67+ return fmt .Sprintf ("http://%s.%s..svc.cluster.local.:%s" , SvcNameC , namespace , sm .PortSvcC )
6868}
6969
7070func (sm Linkerd ) SvcAGetPort () string {
@@ -86,15 +86,15 @@ type Istio struct {
8686}
8787
8888func (sm Istio ) SvcAGetInternalName (namespace string ) string {
89- return fmt .Sprintf ("http://%s.%s..svc.cluster.local.:%s" , SERVICE_A_NAME , namespace , sm .PortSvcA )
89+ return fmt .Sprintf ("http://%s.%s..svc.cluster.local.:%s" , SvcNameA , namespace , sm .PortSvcA )
9090}
9191
9292func (sm Istio ) SvcBGetInternalName (namespace string ) string {
93- return fmt .Sprintf ("http://%s.%s..svc.cluster.local.:%s" , SERVICE_B_NAME , namespace , sm .PortSvcB )
93+ return fmt .Sprintf ("http://%s.%s..svc.cluster.local.:%s" , SvcNameB , namespace , sm .PortSvcB )
9494}
9595
9696func (sm Istio ) SvcCGetInternalName (namespace string ) string {
97- return fmt .Sprintf ("http://%s.%s..svc.cluster.local.:%s" , SERVICE_C_NAME , namespace , sm .PortSvcC )
97+ return fmt .Sprintf ("http://%s.%s..svc.cluster.local.:%s" , SvcNameC , namespace , sm .PortSvcC )
9898}
9999
100100func (sm Istio ) SvcAGetPort () string {
@@ -116,15 +116,15 @@ type OSM struct {
116116}
117117
118118func (sm OSM ) SvcAGetInternalName (namespace string ) string {
119- return fmt .Sprintf ("http://%s.%s..svc.cluster.local.:%s" , SERVICE_A_NAME , namespace , sm .PortSvcA )
119+ return fmt .Sprintf ("http://%s.%s..svc.cluster.local.:%s" , SvcNameA , namespace , sm .PortSvcA )
120120}
121121
122122func (sm OSM ) SvcBGetInternalName (namespace string ) string {
123- return fmt .Sprintf ("http://%s.%s..svc.cluster.local.:%s" , SERVICE_B_NAME , namespace , sm .PortSvcB )
123+ return fmt .Sprintf ("http://%s.%s..svc.cluster.local.:%s" , SvcNameB , namespace , sm .PortSvcB )
124124}
125125
126126func (sm OSM ) SvcCGetInternalName (namespace string ) string {
127- return fmt .Sprintf ("http://%s.%s..svc.cluster.local.:%s" , SERVICE_C_NAME , namespace , sm .PortSvcC )
127+ return fmt .Sprintf ("http://%s.%s..svc.cluster.local.:%s" , SvcNameC , namespace , sm .PortSvcC )
128128}
129129
130130func (sm OSM ) SvcAGetPort () string {
0 commit comments