File tree Expand file tree Collapse file tree 1 file changed +2
-10
lines changed Expand file tree Collapse file tree 1 file changed +2
-10
lines changed Original file line number Diff line number Diff line change @@ -109,26 +109,18 @@ func SetupApps(t resource.Context, apps *EchoDeployments) error {
109109 },
110110 }).
111111 WithConfig (echo.Config {
112- Service : ServiceName2 ,
112+ Service : EnrolledToKmesh ,
113113 Namespace : apps .Namespace ,
114114 Ports : ports .All (),
115115 ServiceAccount : true ,
116116 Subsets : []echo.SubsetConfig {
117117 {
118118 Replicas : 1 ,
119119 Version : "v1" ,
120- Labels : map [string ]string {
121- "app" : ServiceName2 ,
122- "version" : "v1" ,
123- },
124120 },
125121 {
126122 Replicas : 1 ,
127123 Version : "v2" ,
128- Labels : map [string ]string {
129- "app" : ServiceName2 ,
130- "version" : "v2" ,
131- },
132124 },
133125 },
134126 })
@@ -140,6 +132,6 @@ func SetupApps(t resource.Context, apps *EchoDeployments) error {
140132
141133 apps .All = echos
142134
143- apps .EnrolledToKmesh = match .ServiceName (echo.NamespacedName {Name : ServiceName2 , Namespace : apps .Namespace }).GetMatches (echos )
135+ apps .EnrolledToKmesh = match .ServiceName (echo.NamespacedName {Name : EnrolledToKmesh , Namespace : apps .Namespace }).GetMatches (echos )
144136 return nil
145137}
You can’t perform that action at this time.
0 commit comments