| Tim Windelschmidt | cfbc903 | 2025-07-15 14:18:45 +0200 | [diff] [blame] | 1 | Add unimplemented function for CRI compat. |
| 2 | |
| 3 | |
| 4 | diff --git a/internal/cri/instrument/instrumented_service.go b/internal/cri/instrument/instrumented_service.go |
| 5 | --- a/internal/cri/instrument/instrumented_service.go |
| 6 | +++ b/internal/cri/instrument/instrumented_service.go |
| 7 | @@ -17,8 +17,9 @@ |
| 8 | package instrument |
| 9 | |
| 10 | import ( |
| 11 | "context" |
| 12 | + "errors" |
| 13 | |
| 14 | "github.com/containerd/errdefs" |
| 15 | "github.com/containerd/errdefs/pkg/errgrpc" |
| 16 | "github.com/containerd/log" |
| 17 | @@ -641,4 +642,8 @@ |
| 18 | }() |
| 19 | res, err = in.c.RuntimeConfig(ctx, r) |
| 20 | return res, errgrpc.ToGRPC(err) |
| 21 | } |
| 22 | + |
| 23 | +func (in *instrumentedService) UpdatePodSandboxResources(ctx context.Context, r *runtime.UpdatePodSandboxResourcesRequest) (res *runtime.UpdatePodSandboxResourcesResponse, err error) { |
| 24 | + return nil, errors.New("not implemented yet") |
| 25 | +} |
| 26 | diff --git a/internal/cri/server/sandbox_update_resources.go b/internal/cri/server/sandbox_update_resources.go |
| 27 | new file mode 100644 |
| 28 | index 000000000000..0fcd2c7c566c |
| 29 | --- /dev/null |
| 30 | +++ b/internal/cri/server/sandbox_update_resources.go |
| 31 | @@ -0,0 +1,28 @@ |
| 32 | +/* |
| 33 | + Copyright The containerd Authors. |
| 34 | + |
| 35 | + Licensed under the Apache License, Version 2.0 (the "License"); |
| 36 | + you may not use this file except in compliance with the License. |
| 37 | + You may obtain a copy of the License at |
| 38 | + |
| 39 | + http://www.apache.org/licenses/LICENSE-2.0 |
| 40 | + |
| 41 | + Unless required by applicable law or agreed to in writing, software |
| 42 | + distributed under the License is distributed on an "AS IS" BASIS, |
| 43 | + WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. |
| 44 | + See the License for the specific language governing permissions and |
| 45 | + limitations under the License. |
| 46 | +*/ |
| 47 | + |
| 48 | +package server |
| 49 | + |
| 50 | +import ( |
| 51 | + "context" |
| 52 | + "errors" |
| 53 | + |
| 54 | + runtime "k8s.io/cri-api/pkg/apis/runtime/v1" |
| 55 | +) |
| 56 | + |
| 57 | +func (c *criService) UpdatePodSandboxResources(ctx context.Context, r *runtime.UpdatePodSandboxResourcesRequest) (*runtime.UpdatePodSandboxResourcesResponse, error) { |
| 58 | + return nil, errors.New("not implemented yet") |
| 59 | +} |