containerd/pkg/cri/server
Sebastiaan van Stijn 7d0ab4fc2c
remove uses of github.com/runc/libcontainer/cgroups
runc considers libcontainer to be "unstable" (not for external use),
so we try not to use it. Commit ed47d6ba76
brought back the dependency on other parts of libcontainer, but looks to
be only depending on a single utility, which in itself was borrowed from
github.com/coreos/go-systemd to not introduce CGO code in the same package.

This patch copies the version from github.com/coreos/go-systemd (adding
proper attribution, although the function is pretty trivial).

runc is in process of moving the libcontainer/user package to an external
module, which means we can remove the dependency on libcontainer entirely
in the near future. There is one more use of `libcontainer` in our vendor
tree; it looks like CDI is depending on one utility (devices.DeviceFromPath);
a943033a8b/vendor/github.com/container-orchestrated-devices/container-device-interface/pkg/cdi/container-edits_unix.go (L38)

We should remove the dependency on that utility, and add a CI check to
prevent bringing it back.

Signed-off-by: Sebastiaan van Stijn <github@gone.nl>
2023-09-01 12:10:55 +02:00
..
bandwidth Fix some typos 2023-05-16 10:12:50 +08:00
testing update go-cni/for cni update fixing plugins that don't respond with version 2022-06-01 17:20:18 -05:00
blockio_linux.go Cleanup logrus imports 2023-05-05 11:54:14 -07:00
blockio_stub_linux.go *: introduce wrapper pkgs for blockio and rdt 2023-02-10 08:21:34 +08:00
cni_conf_syncer.go Cleanup logrus imports 2023-05-05 11:54:14 -07:00
container_attach.go Replace golang.org/x/net/context with std library 2022-02-22 02:27:05 +08:00
container_checkpoint.go Set grpc code for unimplemented cri-api methods 2022-09-22 07:24:48 +00:00
container_create_linux_test.go Merge pull request #8252 from bart0sh/PR008-CDI-use-CRI-field 2023-05-10 21:16:49 +08:00
container_create_linux.go Get CDI devices from CRI Config.CDIDevices field 2023-04-14 13:41:08 +03:00
container_create_other_test.go Cleanup build constraints 2022-12-08 09:36:20 -08:00
container_create_other.go CRI: Create DefaultCRIAnnotations helper 2023-02-13 13:05:01 -08:00
container_create_test.go pkg/cri/server: sub-test uses array and capture range var 2023-04-16 16:47:02 +08:00
container_create_windows_test.go pkg/cri/server: sub-test uses array and capture range var 2023-04-16 16:47:02 +08:00
container_create_windows.go pkg/cri: replace some fmt.Sprintfs with strconv 2023-08-23 10:10:56 +02:00
container_create.go cri: Don't use rel path for image volumes 2023-07-31 12:33:54 +02:00
container_events.go Add Evented PLEG support to sandbox server 2022-12-08 19:31:36 +00:00
container_exec.go Replace golang.org/x/net/context with std library 2022-02-22 02:27:05 +08:00
container_execsync_test.go *: add DrainExecSyncIOTimeout config and disable as by default 2023-03-03 00:21:55 +08:00
container_execsync.go Merge pull request #8198 from kiashok/argsEscapedSupportInCri 2023-03-07 16:12:24 +08:00
container_list_test.go pkg/cri/server: sub-test uses array and capture range var 2023-04-16 16:47:02 +08:00
container_list.go Replace golang.org/x/net/context with std library 2022-02-22 02:27:05 +08:00
container_log_reopen.go Replace golang.org/x/net/context with std library 2022-02-22 02:27:05 +08:00
container_remove_test.go pkg/cri/server: sub-test uses array and capture range var 2023-04-16 16:47:02 +08:00
container_remove.go Cleanup logrus imports 2023-05-05 11:54:14 -07:00
container_start_test.go pkg/cri/server: sub-test uses array and capture range var 2023-04-16 16:47:02 +08:00
container_start.go Cleanup logrus imports 2023-05-05 11:54:14 -07:00
container_stats_list_linux_test.go pkg/cri/server: sub-test uses array and capture range var 2023-04-16 16:47:02 +08:00
container_stats_list_linux.go Fix umarshal metrics for CRI server 2023-05-03 20:50:04 +00:00
container_stats_list_other.go Cleanup build constraints 2022-12-08 09:36:20 -08:00
container_stats_list_test.go pkg/cri/server: sub-test uses array and capture range var 2023-04-16 16:47:02 +08:00
container_stats_list_windows.go Update dependencies after protobuf update in hcsshim 2023-08-09 11:56:45 -07:00
container_stats_list.go remove unneeded nolint-comments (nolintlint), disable deprecated linters 2022-10-12 14:41:01 +02:00
container_stats.go remove unneeded nolint-comments (nolintlint), disable deprecated linters 2022-10-12 14:41:01 +02:00
container_status_test.go pkg/cri/server: sub-test uses array and capture range var 2023-04-16 16:47:02 +08:00
container_status.go ContainerStatus to return container resources 2022-08-24 19:08:06 +00:00
container_stop_test.go pkg/cri/server: sub-test uses array and capture range var 2023-04-16 16:47:02 +08:00
container_stop.go pkg/cri: split out NRI API from pkg/cri/server. 2023-02-13 22:05:45 +02:00
container_update_resources_linux_test.go pkg/cri/server: sub-test uses array and capture range var 2023-04-16 16:47:02 +08:00
container_update_resources_linux.go Replace golang.org/x/net/context with std library 2022-02-22 02:27:05 +08:00
container_update_resources_other.go Cleanup build constraints 2022-12-08 09:36:20 -08:00
container_update_resources_windows.go Replace golang.org/x/net/context with std library 2022-02-22 02:27:05 +08:00
container_update_resources.go avoid "any" as variable name 2023-06-10 13:49:06 +02:00
events_test.go avoid "any" as variable name 2023-06-10 13:49:06 +02:00
events.go pkg/cri/server: fix leaked shim issue 2023-08-11 17:43:51 +08:00
fuzz.go Cleanup build constraints 2022-12-08 09:36:20 -08:00
helpers_linux_test.go pkg/cri/server: sub-test uses array and capture range var 2023-04-16 16:47:02 +08:00
helpers_linux.go cri: Simplify parseUsernsIDs() 2022-12-30 16:49:28 -03:00
helpers_other.go Cleanup build constraints 2022-12-08 09:36:20 -08:00
helpers_selinux_linux_test.go pkg/cri/server: sub-test uses array and capture range var 2023-04-16 16:47:02 +08:00
helpers_test.go cri: drop unused arg from generateRuntimeOptions 2023-06-19 16:11:36 +03:00
helpers_windows_test.go test: add hostNetwork tests for both windows and linux 2023-02-11 00:15:48 +03:00
helpers_windows.go Reword Windows file related TODO 2023-06-23 05:42:44 -07:00
helpers.go replace some fmt.Sprintfs with strconv 2023-08-23 16:43:02 +02:00
image_list_test.go Replace golang.org/x/net/context with std library 2022-02-22 02:27:05 +08:00
image_list.go Replace golang.org/x/net/context with std library 2022-02-22 02:27:05 +08:00
image_pull_test.go pkg/cri/server: TestImageGetLabels: use registry.k8s.io 2023-07-14 11:22:39 +02:00
image_pull.go Pinned image support 2023-06-02 09:57:22 +05:30
image_remove.go Add a thin wrapper around otel Span object 2022-11-11 01:28:27 +00:00
image_status_test.go Replace golang.org/x/net/context with std library 2022-02-22 02:27:05 +08:00
image_status.go Pinned image support 2023-06-02 09:57:22 +05:30
imagefs_info_test.go Replace golang.org/x/net/context with std library 2022-02-22 02:27:05 +08:00
imagefs_info.go Replace golang.org/x/net/context with std library 2022-02-22 02:27:05 +08:00
list_metric_descriptors.go Update to cri-api v0.26.0-beta.0 2022-11-18 21:13:34 +00:00
list_pod_sandbox_metrics.go Update to cri-api v0.26.0-beta.0 2022-11-18 21:13:34 +00:00
metrics.go add metrics for discarding events 2023-08-09 09:56:26 +08:00
nri_linux.go pkg/cri: split out NRI API from pkg/cri/server. 2023-02-13 22:05:45 +02:00
nri_other.go pkg/cri: split out NRI API from pkg/cri/server. 2023-02-13 22:05:45 +02:00
nri.go pkg/cri: split out NRI API from pkg/cri/server. 2023-02-13 22:05:45 +02:00
rdt_linux.go Cleanup logrus imports 2023-05-05 11:54:14 -07:00
rdt_stub_linux.go Cleanup build constraints 2022-12-08 09:36:20 -08:00
restart.go go.mod: github.com/containerd/typeurl/v2 v2.1.0 2023-02-11 23:39:52 +09:00
runtime_config_linux_test.go remove uses of github.com/runc/libcontainer/cgroups 2023-09-01 12:10:55 +02:00
runtime_config_linux.go remove uses of github.com/runc/libcontainer/cgroups 2023-09-01 12:10:55 +02:00
runtime_config_other.go cri: implement RuntimeConfig rpc 2023-07-28 13:50:43 +03:00
runtime_config.go cri: implement RuntimeConfig rpc 2023-07-28 13:50:43 +03:00
sandbox_list_test.go pkg/cri/server: sub-test uses array and capture range var 2023-04-16 16:47:02 +08:00
sandbox_list.go Replace golang.org/x/net/context with std library 2022-02-22 02:27:05 +08:00
sandbox_portforward_linux.go 'go routine' should be 'goroutine' 2023-02-08 14:10:34 +08:00
sandbox_portforward_other.go Cleanup build constraints 2022-12-08 09:36:20 -08:00
sandbox_portforward_windows.go Replace golang.org/x/net/context with std library 2022-02-22 02:27:05 +08:00
sandbox_portforward.go Replace golang.org/x/net/context with std library 2022-02-22 02:27:05 +08:00
sandbox_remove.go Cleanup logrus imports 2023-05-05 11:54:14 -07:00
sandbox_run_linux_test.go pkg/cri/server: Test net.ipv4.ping_group_range works with userns 2023-07-06 14:20:26 +02:00
sandbox_run_linux.go pkg/cri/server: Fix net.ipv4.ping_group_range with userns 2023-07-06 14:20:26 +02:00
sandbox_run_other_test.go Cleanup build constraints 2022-12-08 09:36:20 -08:00
sandbox_run_other.go Remove no_pivot when creating container from CRI 2023-03-15 09:18:16 -07:00
sandbox_run_test.go avoid "any" as variable name 2023-06-10 13:49:06 +02:00
sandbox_run_windows_test.go cri: add pod uid annotation 2022-11-19 01:12:02 +01:00
sandbox_run_windows.go Remove no_pivot when creating container from CRI 2023-03-15 09:18:16 -07:00
sandbox_run.go cri: drop unused arg from generateRuntimeOptions 2023-06-19 16:11:36 +03:00
sandbox_stats_linux.go [cri] Handle Windows pod transitions gracefully 2023-07-12 09:57:14 -07:00
sandbox_stats_list.go Remove hashicorp/go-multierror 2023-08-20 17:59:45 -07:00
sandbox_stats_other.go Add Windows Sandbox Stats 2023-03-03 14:37:38 -08:00
sandbox_stats_windows_test.go Populate commit memory for windows memory usage stats 2023-08-15 16:48:22 -07:00
sandbox_stats_windows.go Populate commit memory for windows memory usage stats 2023-08-15 16:48:22 -07:00
sandbox_stats.go Add Windows Sandbox Stats 2023-03-03 14:37:38 -08:00
sandbox_status_test.go pkg/cri/server: sub-test uses array and capture range var 2023-04-16 16:47:02 +08:00
sandbox_status.go CRI: Add host networking helper 2022-12-14 01:47:22 -08:00
sandbox_stop_test.go pkg/cri/server: sub-test uses array and capture range var 2023-04-16 16:47:02 +08:00
sandbox_stop.go pkg/cri: split out NRI API from pkg/cri/server. 2023-02-13 22:05:45 +02:00
service_linux.go Cleanup logrus imports 2023-05-05 11:54:14 -07:00
service_other.go CRI: Comment cleanup/misc fixes 2023-01-02 18:55:31 -08:00
service_test.go Copy FuzzCRI from cncf/cncf-fuzzing 2022-06-27 22:54:25 +00:00
service_windows.go CRI: Comment cleanup/misc fixes 2023-01-02 18:55:31 -08:00
service.go replace some basic uses of fmt.Sprintf() 2023-06-10 13:24:43 +02:00
snapshots.go Cleanup logrus imports 2023-05-05 11:54:14 -07:00
status.go Replace golang.org/x/net/context with std library 2022-02-22 02:27:05 +08:00
streaming_test.go pkg/cri/server: sub-test uses array and capture range var 2023-04-16 16:47:02 +08:00
streaming.go feat: replace github.com/pkg/errors to errors 2022-01-07 10:27:03 +08:00
test_config.go Copy FuzzCRI from cncf/cncf-fuzzing 2022-06-27 22:54:25 +00:00
update_runtime_config_test.go pkg/cri/server: sub-test uses array and capture range var 2023-04-16 16:47:02 +08:00
update_runtime_config.go cri: write generated CNI config atomically on Unix 2023-06-02 16:56:34 -07:00
version.go Remove cri v1alpha1 services 2023-03-16 17:48:49 +08:00