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 {
109
109
},
110
110
}).
111
111
WithConfig (echo.Config {
112
- Service : ServiceName2 ,
112
+ Service : EnrolledToKmesh ,
113
113
Namespace : apps .Namespace ,
114
114
Ports : ports .All (),
115
115
ServiceAccount : true ,
116
116
Subsets : []echo.SubsetConfig {
117
117
{
118
118
Replicas : 1 ,
119
119
Version : "v1" ,
120
- Labels : map [string ]string {
121
- "app" : ServiceName2 ,
122
- "version" : "v1" ,
123
- },
124
120
},
125
121
{
126
122
Replicas : 1 ,
127
123
Version : "v2" ,
128
- Labels : map [string ]string {
129
- "app" : ServiceName2 ,
130
- "version" : "v2" ,
131
- },
132
124
},
133
125
},
134
126
})
@@ -140,6 +132,6 @@ func SetupApps(t resource.Context, apps *EchoDeployments) error {
140
132
141
133
apps .All = echos
142
134
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 )
144
136
return nil
145
137
}
You can’t perform that action at this time.
0 commit comments