containerd/pkg/cri/server
张钰10307750 b16d467404 pod: CreatedAt time will be 269 years ago while creating cri network failed.
We should set sandbox CreatedAt first time when we create sandbox struct,
   and then set sandbox CreatedAt second time after container started.

   Before this commit, we just set sandbox CreatedAt after container
   started, but if network create failed, the sandbox time is the
   default time, which is 269 years ago, so we need to set sandbox
   CreatedAt at first, even if an error occurred before start container.

Signed-off-by: zzzzzzzzzy9 <zhang.yu58@zte.com.cn>
2024-01-23 10:44:49 +08:00
..
base Remove CRI plugin config after migrating 2024-01-18 06:46:50 -08:00
images Move pkg/kmutex to internal/kmutex 2024-01-17 09:57:01 -08:00
podsandbox Move oci to pkg/oci 2024-01-17 09:55:48 -08:00
blockio_linux.go Update go module to github.com/containerd/containerd/v2 2023-10-29 20:52:21 -07:00
blockio_stub.go Rename sbserver to server 2023-10-12 15:46:57 -07:00
cni_conf_syncer.go Rename sbserver to server 2023-10-12 15:46:57 -07:00
container_attach.go Move client to subpackage 2023-11-01 10:37:00 -07:00
container_checkpoint.go Rename sbserver to server 2023-10-12 15:46:57 -07:00
container_create_linux_test.go Move oci to pkg/oci 2024-01-17 09:55:48 -08:00
container_create_linux.go Move oci to pkg/oci 2024-01-17 09:55:48 -08:00
container_create_other_test.go Update go module to github.com/containerd/containerd/v2 2023-10-29 20:52:21 -07:00
container_create_other.go Move oci to pkg/oci 2024-01-17 09:55:48 -08:00
container_create_test.go Move oci to pkg/oci 2024-01-17 09:55:48 -08:00
container_create_windows_test.go Add tests cases 2023-11-01 15:32:43 -07:00
container_create_windows.go Move oci to pkg/oci 2024-01-17 09:55:48 -08:00
container_create.go Move oci to pkg/oci 2024-01-17 09:55:48 -08:00
container_events.go Rename sbserver to server 2023-10-12 15:46:57 -07:00
container_exec.go Rename sbserver to server 2023-10-12 15:46:57 -07:00
container_execsync_test.go Move cio to pkg/cio 2024-01-17 09:54:27 -08:00
container_execsync.go Move oci to pkg/oci 2024-01-17 09:55:48 -08:00
container_list_test.go Update go module to github.com/containerd/containerd/v2 2023-10-29 20:52:21 -07:00
container_list.go Update go module to github.com/containerd/containerd/v2 2023-10-29 20:52:21 -07:00
container_log_reopen.go Rename sbserver to server 2023-10-12 15:46:57 -07:00
container_remove_test.go Update go module to github.com/containerd/containerd/v2 2023-10-29 20:52:21 -07:00
container_remove.go Move errdefs to pkg/errdefs 2024-01-17 09:54:45 -08:00
container_start_test.go Update go module to github.com/containerd/containerd/v2 2023-10-29 20:52:21 -07:00
container_start.go Move errdefs to pkg/errdefs 2024-01-17 09:54:45 -08:00
container_stats_list_test.go Update go module to github.com/containerd/containerd/v2 2023-10-29 20:52:21 -07:00
container_stats_list.go Move errdefs to pkg/errdefs 2024-01-17 09:54:45 -08:00
container_stats.go Update go module to github.com/containerd/containerd/v2 2023-10-29 20:52:21 -07:00
container_status_test.go Split image config from CRI plugin 2024-01-11 09:55:09 -08:00
container_status.go Move errdefs to pkg/errdefs 2024-01-17 09:54:45 -08:00
container_stop_test.go Update go module to github.com/containerd/containerd/v2 2023-10-29 20:52:21 -07:00
container_stop.go Move errdefs to pkg/errdefs 2024-01-17 09:54:45 -08:00
container_update_resources_linux_test.go Update go module to github.com/containerd/containerd/v2 2023-10-29 20:52:21 -07:00
container_update_resources_linux.go Update go module to github.com/containerd/containerd/v2 2023-10-29 20:52:21 -07:00
container_update_resources_other.go Update go module to github.com/containerd/containerd/v2 2023-10-29 20:52:21 -07:00
container_update_resources_windows.go Update go module to github.com/containerd/containerd/v2 2023-10-29 20:52:21 -07:00
container_update_resources.go Move errdefs to pkg/errdefs 2024-01-17 09:54:45 -08:00
events_test.go Update go module to github.com/containerd/containerd/v2 2023-10-29 20:52:21 -07:00
events.go Move errdefs to pkg/errdefs 2024-01-17 09:54:45 -08:00
fuzz.go Update go module to github.com/containerd/containerd/v2 2023-10-29 20:52:21 -07:00
helpers_linux.go Move snapshots to core/snapshots 2024-01-17 09:54:09 -08:00
helpers_other.go Rename sbserver to server 2023-10-12 15:46:57 -07:00
helpers_test.go Move runtime to core/runtime 2024-01-17 09:58:04 -08:00
helpers_windows_test.go Rename sbserver to server 2023-10-12 15:46:57 -07:00
helpers_windows.go Rename sbserver to server 2023-10-12 15:46:57 -07:00
helpers.go Move labels to pkg/labels 2024-01-17 09:55:30 -08:00
list_metric_descriptors.go Rename sbserver to server 2023-10-12 15:46:57 -07:00
list_pod_sandbox_metrics.go Rename sbserver to server 2023-10-12 15:46:57 -07:00
metrics.go Rename sbserver to server 2023-10-12 15:46:57 -07:00
nri_linux.go Update go module to github.com/containerd/containerd/v2 2023-10-29 20:52:21 -07:00
nri_other.go Update go module to github.com/containerd/containerd/v2 2023-10-29 20:52:21 -07:00
nri.go refactor labels used in cri server 2023-11-14 01:45:26 +05:30
rdt_stub.go Rename sbserver to server 2023-10-12 15:46:57 -07:00
rdt.go Update go module to github.com/containerd/containerd/v2 2023-10-29 20:52:21 -07:00
restart.go Move errdefs to pkg/errdefs 2024-01-17 09:54:45 -08:00
runtime_config_linux_test.go Update go module to github.com/containerd/containerd/v2 2023-10-29 20:52:21 -07:00
runtime_config_linux.go Move runtime to core/runtime 2024-01-17 09:58:04 -08:00
runtime_config_other.go Rename sbserver to server 2023-10-12 15:46:57 -07:00
runtime_config.go Rename sbserver to server 2023-10-12 15:46:57 -07:00
sandbox_list_test.go Update go module to github.com/containerd/containerd/v2 2023-10-29 20:52:21 -07:00
sandbox_list.go Update go module to github.com/containerd/containerd/v2 2023-10-29 20:52:21 -07:00
sandbox_portforward_linux.go Rename sbserver to server 2023-10-12 15:46:57 -07:00
sandbox_portforward_other.go Move errdefs to pkg/errdefs 2024-01-17 09:54:45 -08:00
sandbox_portforward_windows.go Update go module to github.com/containerd/containerd/v2 2023-10-29 20:52:21 -07:00
sandbox_portforward.go Update go module to github.com/containerd/containerd/v2 2023-10-29 20:52:21 -07:00
sandbox_remove.go Move errdefs to pkg/errdefs 2024-01-17 09:54:45 -08:00
sandbox_run_test.go Rename sbserver to server 2023-10-12 15:46:57 -07:00
sandbox_run.go pod: CreatedAt time will be 269 years ago while creating cri network failed. 2024-01-23 10:44:49 +08:00
sandbox_service.go Move sandbox to core/sandbox 2024-01-17 09:52:39 -08:00
sandbox_stats_linux.go Move errdefs to pkg/errdefs 2024-01-17 09:54:45 -08:00
sandbox_stats_list.go Move errdefs to pkg/errdefs 2024-01-17 09:54:45 -08:00
sandbox_stats_other.go Move errdefs to pkg/errdefs 2024-01-17 09:54:45 -08:00
sandbox_stats_windows_test.go Update go module to github.com/containerd/containerd/v2 2023-10-29 20:52:21 -07:00
sandbox_stats_windows.go Move errdefs to pkg/errdefs 2024-01-17 09:54:45 -08:00
sandbox_stats.go Rename sbserver to server 2023-10-12 15:46:57 -07:00
sandbox_status_test.go Update go module to github.com/containerd/containerd/v2 2023-10-29 20:52:21 -07:00
sandbox_status.go Move errdefs to pkg/errdefs 2024-01-17 09:54:45 -08:00
sandbox_stop_test.go Update go module to github.com/containerd/containerd/v2 2023-10-29 20:52:21 -07:00
sandbox_stop.go Move errdefs to pkg/errdefs 2024-01-17 09:54:45 -08:00
service_linux.go Update go module to github.com/containerd/containerd/v2 2023-10-29 20:52:21 -07:00
service_other.go Rename sbserver to server 2023-10-12 15:46:57 -07:00
service_test.go Move pkg/registrar to internal/registrar 2024-01-17 09:57:19 -08:00
service_windows.go Rename sbserver to server 2023-10-12 15:46:57 -07:00
service.go Move pkg/registrar to internal/registrar 2024-01-17 09:57:19 -08:00
status.go Rename sbserver to server 2023-10-12 15:46:57 -07:00
streaming_test.go Update go module to github.com/containerd/containerd/v2 2023-10-29 20:52:21 -07:00
streaming.go Update go module to github.com/containerd/containerd/v2 2023-10-29 20:52:21 -07:00
test_config.go Separate the CRI image config from the main plugin config 2024-01-11 09:55:09 -08:00
update_runtime_config_test.go Update go module to github.com/containerd/containerd/v2 2023-10-29 20:52:21 -07:00
update_runtime_config.go Update go module to github.com/containerd/containerd/v2 2023-10-29 20:52:21 -07:00
version.go Update go module to github.com/containerd/containerd/v2 2023-10-29 20:52:21 -07:00