@@ -77,7 +77,7 @@ func (p *HybridProxier) OnServiceAdd(service *api.Service) {
77
77
glog .V (6 ).Infof ("hybrid proxy: add svc %s in unidling proxy" , service .Name )
78
78
p .unidlingServiceHandler .OnServiceAdd (service )
79
79
} else {
80
- glog .V (1 ).Infof ("hybrid proxy: add svc %s in main proxy" , service .Name )
80
+ glog .V (6 ).Infof ("hybrid proxy: add svc %s in main proxy" , service .Name )
81
81
p .mainServicesHandler .OnServiceAdd (service )
82
82
}
83
83
}
@@ -112,18 +112,18 @@ func (p *HybridProxier) OnServiceDelete(service *api.Service) {
112
112
defer p .usingUserspaceLock .Unlock ()
113
113
114
114
if isUsingUserspace , ok := p .usingUserspace [svcName ]; ok && isUsingUserspace {
115
- glog .V (1 ).Infof ("hybrid proxy: del svc %s in unidling proxy" , service .Name )
115
+ glog .V (6 ).Infof ("hybrid proxy: del svc %s in unidling proxy" , service .Name )
116
116
p .unidlingServiceHandler .OnServiceDelete (service )
117
117
} else {
118
- glog .V (1 ).Infof ("hybrid proxy: del svc %s in main proxy" , service .Name )
118
+ glog .V (6 ).Infof ("hybrid proxy: del svc %s in main proxy" , service .Name )
119
119
p .mainServicesHandler .OnServiceDelete (service )
120
120
}
121
121
}
122
122
123
123
func (p * HybridProxier ) OnServiceSynced () {
124
124
p .unidlingServiceHandler .OnServiceSynced ()
125
125
p .mainServicesHandler .OnServiceSynced ()
126
- glog .V (1 ).Infof ("hybrid proxy: services synced" )
126
+ glog .V (6 ).Infof ("hybrid proxy: services synced" )
127
127
}
128
128
129
129
// shouldEndpointsUseUserspace checks to see if the given endpoints have the correct
@@ -154,11 +154,11 @@ func (p *HybridProxier) switchService(name types.NamespacedName) {
154
154
}
155
155
156
156
if p .usingUserspace [name ] {
157
- glog .V (1 ).Infof ("hybrid proxy: switching svc %s to unidling proxy" , svc .Name )
157
+ glog .V (6 ).Infof ("hybrid proxy: switching svc %s to unidling proxy" , svc .Name )
158
158
p .unidlingServiceHandler .OnServiceAdd (svc )
159
159
p .mainServicesHandler .OnServiceDelete (svc )
160
160
} else {
161
- glog .V (1 ).Infof ("hybrid proxy: switching svc %s to main proxy" , svc .Name )
161
+ glog .V (6 ).Infof ("hybrid proxy: switching svc %s to main proxy" , svc .Name )
162
162
p .mainServicesHandler .OnServiceAdd (svc )
163
163
p .unidlingServiceHandler .OnServiceDelete (svc )
164
164
}
@@ -167,7 +167,7 @@ func (p *HybridProxier) switchService(name types.NamespacedName) {
167
167
func (p * HybridProxier ) OnEndpointsAdd (endpoints * api.Endpoints ) {
168
168
// we track all endpoints in the unidling endpoints handler so that we can succesfully
169
169
// detect when a service become unidling
170
- glog .V (1 ).Infof ("hybrid proxy: (always) add ep %s in unidling proxy" , endpoints .Name )
170
+ glog .V (6 ).Infof ("hybrid proxy: (always) add ep %s in unidling proxy" , endpoints .Name )
171
171
p .unidlingEndpointsHandler .OnEndpointsAdd (endpoints )
172
172
173
173
p .usingUserspaceLock .Lock ()
@@ -182,7 +182,7 @@ func (p *HybridProxier) OnEndpointsAdd(endpoints *api.Endpoints) {
182
182
p .usingUserspace [svcName ] = p .shouldEndpointsUseUserspace (endpoints )
183
183
184
184
if ! p .usingUserspace [svcName ] {
185
- glog .V (1 ).Infof ("hybrid proxy: add ep %s in main proxy" , endpoints .Name )
185
+ glog .V (6 ).Infof ("hybrid proxy: add ep %s in main proxy" , endpoints .Name )
186
186
p .mainEndpointsHandler .OnEndpointsAdd (endpoints )
187
187
}
188
188
@@ -196,7 +196,7 @@ func (p *HybridProxier) OnEndpointsAdd(endpoints *api.Endpoints) {
196
196
func (p * HybridProxier ) OnEndpointsUpdate (oldEndpoints , endpoints * api.Endpoints ) {
197
197
// we track all endpoints in the unidling endpoints handler so that we can succesfully
198
198
// detect when a service become unidling
199
- glog .V (1 ).Infof ("hybrid proxy: (always) update ep %s in unidling proxy" , endpoints .Name )
199
+ glog .V (6 ).Infof ("hybrid proxy: (always) update ep %s in unidling proxy" , endpoints .Name )
200
200
p .unidlingEndpointsHandler .OnEndpointsUpdate (oldEndpoints , endpoints )
201
201
202
202
p .usingUserspaceLock .Lock ()
@@ -218,16 +218,16 @@ func (p *HybridProxier) OnEndpointsUpdate(oldEndpoints, endpoints *api.Endpoints
218
218
isSwitch := wasUsingUserspace != p .usingUserspace [svcName ]
219
219
220
220
if ! isSwitch && ! p .usingUserspace [svcName ] {
221
- glog .V (1 ).Infof ("hybrid proxy: update ep %s in main proxy" , endpoints .Name )
221
+ glog .V (6 ).Infof ("hybrid proxy: update ep %s in main proxy" , endpoints .Name )
222
222
p .mainEndpointsHandler .OnEndpointsUpdate (oldEndpoints , endpoints )
223
223
return
224
224
}
225
225
226
226
if p .usingUserspace [svcName ] {
227
- glog .V (1 ).Infof ("hybrid proxy: del ep %s in main proxy" , endpoints .Name )
227
+ glog .V (6 ).Infof ("hybrid proxy: del ep %s in main proxy" , endpoints .Name )
228
228
p .mainEndpointsHandler .OnEndpointsDelete (oldEndpoints )
229
229
} else {
230
- glog .V (1 ).Infof ("hybrid proxy: add ep %s in main proxy" , endpoints .Name )
230
+ glog .V (6 ).Infof ("hybrid proxy: add ep %s in main proxy" , endpoints .Name )
231
231
p .mainEndpointsHandler .OnEndpointsAdd (endpoints )
232
232
}
233
233
@@ -237,7 +237,7 @@ func (p *HybridProxier) OnEndpointsUpdate(oldEndpoints, endpoints *api.Endpoints
237
237
func (p * HybridProxier ) OnEndpointsDelete (endpoints * api.Endpoints ) {
238
238
// we track all endpoints in the unidling endpoints handler so that we can succesfully
239
239
// detect when a service become unidling
240
- glog .V (1 ).Infof ("hybrid proxy: (always) del ep %s in unidling proxy" , endpoints .Name )
240
+ glog .V (6 ).Infof ("hybrid proxy: (always) del ep %s in unidling proxy" , endpoints .Name )
241
241
p .unidlingEndpointsHandler .OnEndpointsDelete (endpoints )
242
242
243
243
p .usingUserspaceLock .Lock ()
@@ -256,7 +256,7 @@ func (p *HybridProxier) OnEndpointsDelete(endpoints *api.Endpoints) {
256
256
}
257
257
258
258
if ! usingUserspace {
259
- glog .V (1 ).Infof ("hybrid proxy: del ep %s in main proxy" , endpoints .Name )
259
+ glog .V (6 ).Infof ("hybrid proxy: del ep %s in main proxy" , endpoints .Name )
260
260
p .mainEndpointsHandler .OnEndpointsDelete (endpoints )
261
261
}
262
262
@@ -266,14 +266,14 @@ func (p *HybridProxier) OnEndpointsDelete(endpoints *api.Endpoints) {
266
266
func (p * HybridProxier ) OnEndpointsSynced () {
267
267
p .unidlingEndpointsHandler .OnEndpointsSynced ()
268
268
p .mainEndpointsHandler .OnEndpointsSynced ()
269
- glog .V (1 ).Infof ("hybrid proxy: endpoints synced" )
269
+ glog .V (6 ).Infof ("hybrid proxy: endpoints synced" )
270
270
}
271
271
272
272
// Sync is called to immediately synchronize the proxier state to iptables
273
273
func (p * HybridProxier ) Sync () {
274
274
p .mainProxy .Sync ()
275
275
p .unidlingProxy .Sync ()
276
- glog .V (5 ).Infof ("hybrid proxy: proxies synced" )
276
+ glog .V (6 ).Infof ("hybrid proxy: proxies synced" )
277
277
}
278
278
279
279
// SyncLoop runs periodic work. This is expected to run as a goroutine or as the main loop of the app. It does not return.
0 commit comments