Skip to content

Commit

Permalink
build: react to 0.26.4 API changes
Browse files Browse the repository at this point in the history
Signed-off-by: Miguel Duarte Barroso <[email protected]>
  • Loading branch information
maiqueb committed Nov 20, 2023
1 parent 6fe8ba5 commit 21b6dee
Show file tree
Hide file tree
Showing 2 changed files with 36 additions and 2 deletions.
6 changes: 4 additions & 2 deletions pkg/controller/pod.go
Original file line number Diff line number Diff line change
Expand Up @@ -106,9 +106,11 @@ func NewPodNetworksController(
multusClient: multusClient,
}

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

return podNetworksController, nil
}
Expand Down
32 changes: 32 additions & 0 deletions pkg/cri/crio/fake/runtime.go
Original file line number Diff line number Diff line change
Expand Up @@ -234,6 +234,38 @@ func (cc CrioClient) ListPodSandboxStats(
return nil, nil
}

func (cc CrioClient) CheckpointContainer(
context.Context,
*crioruntime.CheckpointContainerRequest,
...grpc.CallOption,
) (*crioruntime.CheckpointContainerResponse, error) {
return nil, nil
}

func (cc CrioClient) GetContainerEvents(
context.Context,
*crioruntime.GetEventsRequest,
...grpc.CallOption,
) (crioruntime.RuntimeService_GetContainerEventsClient, error) {
return nil, nil
}

func (cc CrioClient) ListMetricDescriptors(
context.Context,
*crioruntime.ListMetricDescriptorsRequest,
...grpc.CallOption,
) (*crioruntime.ListMetricDescriptorsResponse, error) {
return nil, nil
}

func (cc CrioClient) ListPodSandboxMetrics(
context.Context,
*crioruntime.ListPodSandboxMetricsRequest,
...grpc.CallOption,
) (*crioruntime.ListPodSandboxMetricsResponse, error) {
return nil, nil
}

func newContainerStatusResponseWithLinuxNetworkNamespaceInfo(netnsPath string) criotypes.ContainerStatusResponse {
return criotypes.ContainerStatusResponse{
RunTimeSpec: criotypes.ContainerRuntimeStatus{
Expand Down

0 comments on commit 21b6dee

Please sign in to comment.