Skip to content

Commit 21b6dee

Browse files
committed
build: react to 0.26.4 API changes
Signed-off-by: Miguel Duarte Barroso <[email protected]>
1 parent 6fe8ba5 commit 21b6dee

File tree

2 files changed

+36
-2
lines changed

2 files changed

+36
-2
lines changed

pkg/controller/pod.go

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -106,9 +106,11 @@ func NewPodNetworksController(
106106
multusClient: multusClient,
107107
}
108108

109-
podInformer.AddEventHandler(cache.ResourceEventHandlerFuncs{
109+
if _, err := podInformer.AddEventHandler(cache.ResourceEventHandlerFuncs{
110110
UpdateFunc: podNetworksController.handlePodUpdate,
111-
})
111+
}); err != nil {
112+
return nil, fmt.Errorf("error setting the add event handlers: %v", err)
113+
}
112114

113115
return podNetworksController, nil
114116
}

pkg/cri/crio/fake/runtime.go

Lines changed: 32 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -234,6 +234,38 @@ func (cc CrioClient) ListPodSandboxStats(
234234
return nil, nil
235235
}
236236

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+
237269
func newContainerStatusResponseWithLinuxNetworkNamespaceInfo(netnsPath string) criotypes.ContainerStatusResponse {
238270
return criotypes.ContainerStatusResponse{
239271
RunTimeSpec: criotypes.ContainerRuntimeStatus{

0 commit comments

Comments
 (0)