File tree Expand file tree Collapse file tree 2 files changed +36
-2
lines changed Expand file tree Collapse file tree 2 files changed +36
-2
lines changed Original file line number Diff line number Diff line change @@ -106,9 +106,11 @@ func NewPodNetworksController(
106
106
multusClient : multusClient ,
107
107
}
108
108
109
- podInformer .AddEventHandler (cache.ResourceEventHandlerFuncs {
109
+ if _ , err := podInformer .AddEventHandler (cache.ResourceEventHandlerFuncs {
110
110
UpdateFunc : podNetworksController .handlePodUpdate ,
111
- })
111
+ }); err != nil {
112
+ return nil , fmt .Errorf ("error setting the add event handlers: %v" , err )
113
+ }
112
114
113
115
return podNetworksController , nil
114
116
}
Original file line number Diff line number Diff line change @@ -234,6 +234,38 @@ func (cc CrioClient) ListPodSandboxStats(
234
234
return nil , nil
235
235
}
236
236
237
+ func (cc CrioClient ) CheckpointContainer (
238
+ context.Context ,
239
+ * crioruntime.CheckpointContainerRequest ,
240
+ ... grpc.CallOption ,
241
+ ) (* crioruntime.CheckpointContainerResponse , error ) {
242
+ return nil , nil
243
+ }
244
+
245
+ func (cc CrioClient ) GetContainerEvents (
246
+ context.Context ,
247
+ * crioruntime.GetEventsRequest ,
248
+ ... grpc.CallOption ,
249
+ ) (crioruntime.RuntimeService_GetContainerEventsClient , error ) {
250
+ return nil , nil
251
+ }
252
+
253
+ func (cc CrioClient ) ListMetricDescriptors (
254
+ context.Context ,
255
+ * crioruntime.ListMetricDescriptorsRequest ,
256
+ ... grpc.CallOption ,
257
+ ) (* crioruntime.ListMetricDescriptorsResponse , error ) {
258
+ return nil , nil
259
+ }
260
+
261
+ func (cc CrioClient ) ListPodSandboxMetrics (
262
+ context.Context ,
263
+ * crioruntime.ListPodSandboxMetricsRequest ,
264
+ ... grpc.CallOption ,
265
+ ) (* crioruntime.ListPodSandboxMetricsResponse , error ) {
266
+ return nil , nil
267
+ }
268
+
237
269
func newContainerStatusResponseWithLinuxNetworkNamespaceInfo (netnsPath string ) criotypes.ContainerStatusResponse {
238
270
return criotypes.ContainerStatusResponse {
239
271
RunTimeSpec : criotypes.ContainerRuntimeStatus {
You can’t perform that action at this time.
0 commit comments