James Sturtevant
ade80789b1
Remove walker diff plugin for Windows
...
Signed-off-by: James Sturtevant <jsturtevant@gmail.com >
2024-01-23 16:31:34 -08:00
Derek McGowan
f2765617c5
Merge pull request #9662 from dmcgowan/replace-platform-package
...
Use github.com/containerd/platforms package
2024-01-23 19:50:25 +00:00
Derek McGowan
e79ec7a095
Remove deprecated platforms package
...
Signed-off-by: Derek McGowan <derek@mcg.dev >
2024-01-23 09:14:03 -08:00
Derek McGowan
eb9925d88c
Update config migrations to decode using the plugin type
...
Ensure migration picks up defaults and correct ordering from the plugin
configuration. Ensures that the migration matches the behavior of the
default output and how the configuration will be loaded.
Signed-off-by: Derek McGowan <derek@mcg.dev >
2024-01-18 06:46:50 -08:00
Derek McGowan
15713014d6
Update server config slice merge strategy
...
Merge slices while checking for equal values rather than always
appending. Remove setting Import to prevent migrations from setting
incorrect configuration Imports.
Signed-off-by: Derek McGowan <derek@mcg.dev >
2024-01-18 06:46:49 -08:00
Derek McGowan
dbc74db6a1
Move runtime to core/runtime
...
Signed-off-by: Derek McGowan <derek@mcg.dev >
2024-01-17 09:58:04 -08:00
Derek McGowan
df9b0a0675
Move metrics to core/metrics
...
Signed-off-by: Derek McGowan <derek@mcg.dev >
2024-01-17 09:57:55 -08:00
Derek McGowan
5e1d9543be
Move pkg/hasher to internal/hasher
...
Signed-off-by: Derek McGowan <derek@mcg.dev >
2024-01-17 09:56:52 -08:00
Derek McGowan
8f0eb26311
Move tracing to pkg/tracing
...
Signed-off-by: Derek McGowan <derek@mcg.dev >
2024-01-17 09:56:25 -08:00
Derek McGowan
6be90158cd
Move sys to pkg/sys
...
Signed-off-by: Derek McGowan <derek@mcg.dev >
2024-01-17 09:56:16 -08:00
Derek McGowan
e59f64792b
Move oci to pkg/oci
...
Signed-off-by: Derek McGowan <derek@mcg.dev >
2024-01-17 09:55:48 -08:00
Derek McGowan
fa8cae99d1
Move namespaces to pkg/namespaces
...
Signed-off-by: Derek McGowan <derek@mcg.dev >
2024-01-17 09:55:39 -08:00
Derek McGowan
11114b0a9a
Move gc/scheduler to plugins/gc
...
Signed-off-by: Derek McGowan <derek@mcg.dev >
2024-01-17 09:55:03 -08:00
Derek McGowan
44a836c9b5
Move errdefs to pkg/errdefs
...
Signed-off-by: Derek McGowan <derek@mcg.dev >
2024-01-17 09:54:45 -08:00
Derek McGowan
70ed2696fa
Move events to pkg/events
...
Signed-off-by: Derek McGowan <derek@mcg.dev >
2024-01-17 09:54:36 -08:00
Derek McGowan
fcd39ccc53
Move snapshots to core/snapshots
...
Signed-off-by: Derek McGowan <derek@mcg.dev >
2024-01-17 09:54:09 -08:00
Derek McGowan
e0fe656daf
Move snapshots/windows to plugins/snapshots/windows
...
Signed-off-by: Derek McGowan <derek@mcg.dev >
2024-01-17 09:54:00 -08:00
Derek McGowan
57bdbfba6a
Move snapshots/overlay to plugins/snapshots/overlay
...
Signed-off-by: Derek McGowan <derek@mcg.dev >
2024-01-17 09:53:51 -08:00
Derek McGowan
9b8c558f9f
Move snapshots/native to plugins/snapshots/native
...
Signed-off-by: Derek McGowan <derek@mcg.dev >
2024-01-17 09:53:42 -08:00
Derek McGowan
5c07d5d361
Move snapshots/lcow to plugins/snapshots/lcow
...
Signed-off-by: Derek McGowan <derek@mcg.dev >
2024-01-17 09:53:33 -08:00
Derek McGowan
8473322f0b
Move snapshots/devmapper to plugins/snapshots/devmapper
...
Signed-off-by: Derek McGowan <derek@mcg.dev >
2024-01-17 09:53:24 -08:00
Derek McGowan
7dd96fe346
Move snapshots/btrfs to plugins/snapshots/btrfs
...
Signed-off-by: Derek McGowan <derek@mcg.dev >
2024-01-17 09:53:15 -08:00
Derek McGowan
2909f07f85
Move snapshots/blockfile to plugins/snapshots/blockfile
...
Signed-off-by: Derek McGowan <derek@mcg.dev >
2024-01-17 09:53:06 -08:00
Derek McGowan
92d2a5fc02
Move services to plugins/services
...
Signed-off-by: Derek McGowan <derek@mcg.dev >
2024-01-17 09:52:57 -08:00
Derek McGowan
ce41d1c90a
Move services/server to cmd/containerd/server
...
Signed-off-by: Derek McGowan <derek@mcg.dev >
2024-01-17 09:52:48 -08:00
Derek McGowan
d133019c9b
Move runtime/restart/monitor to plugins/restart
...
Signed-off-by: Derek McGowan <derek@mcg.dev >
2024-01-17 09:52:30 -08:00
Derek McGowan
6e5408dcec
Move mount to core/mount
...
Signed-off-by: Derek McGowan <derek@mcg.dev >
2024-01-17 09:52:12 -08:00
Derek McGowan
18b3cbe4fa
Move metadata/plugin to plugins/metadata
...
Signed-off-by: Derek McGowan <derek@mcg.dev >
2024-01-17 09:51:54 -08:00
Derek McGowan
cc6a5c9c69
Move leases/plugin to plugins/leases
...
Signed-off-by: Derek McGowan <derek@mcg.dev >
2024-01-17 09:51:35 -08:00
Derek McGowan
57ea8aef3d
Move images to core/images
...
Signed-off-by: Derek McGowan <derek@mcg.dev >
2024-01-17 09:51:26 -08:00
Derek McGowan
d14350376e
Move diff/windows to plugins/diff/windows
...
Signed-off-by: Derek McGowan <derek@mcg.dev >
2024-01-17 09:51:08 -08:00
Derek McGowan
2d861b6ead
Move diff/walking to plugins/diff/walking
...
Signed-off-by: Derek McGowan <derek@mcg.dev >
2024-01-17 09:50:59 -08:00
Derek McGowan
aaf6ac04cb
Move diff/lcow to plugins/diff/lcow
...
Signed-off-by: Derek McGowan <derek@mcg.dev >
2024-01-17 09:50:50 -08:00
Derek McGowan
3baf5edb8b
Separate the CRI image config from the main plugin config
...
This change simplifies the CRI plugin dependencies by not requiring the
CRI image plugin to depend on any other CRI components. Since other CRI
plugins depend on the image plugin, this allows prevents a dependency
cycle for CRI configurations on a base plugin.
Signed-off-by: Derek McGowan <derek@mcg.dev >
2024-01-11 09:55:09 -08:00
Sebastiaan van Stijn
2af6db672e
switch back from golang.org/x/sys/execabs to os/exec (go1.19)
...
This is effectively a revert of 2ac9968401 , which
switched from os/exec to the golang.org/x/sys/execabs package to mitigate
security issues (mainly on Windows) with lookups resolving to binaries in the
current directory.
from the go1.19 release notes https://go.dev/doc/go1.19#os-exec-path
> ## PATH lookups
>
> Command and LookPath no longer allow results from a PATH search to be found
> relative to the current directory. This removes a common source of security
> problems but may also break existing programs that depend on using, say,
> exec.Command("prog") to run a binary named prog (or, on Windows, prog.exe) in
> the current directory. See the os/exec package documentation for information
> about how best to update such programs.
>
> On Windows, Command and LookPath now respect the NoDefaultCurrentDirectoryInExePath
> environment variable, making it possible to disable the default implicit search
> of “.” in PATH lookups on Windows systems.
Signed-off-by: Sebastiaan van Stijn <github@gone.nl >
2023-11-02 21:15:40 +01:00
Derek McGowan
9db21401c4
Switch to github.com/containerd/plugin
...
Signed-off-by: Derek McGowan <derek@mcg.dev >
2023-11-01 23:01:42 -07:00
Akihiro Suda
19ff94b701
Merge pull request #9306 from dmcgowan/containerd-v2-module
...
Containerd v2 module
2023-11-01 15:20:35 +00:00
Alex Rodriguez
124d3a20a6
Sync ops.md, update CLI --help output to be consistent in descriptions
...
Signed-off-by: Alex Rodriguez <alexrodriguez@ibm.com >
2023-10-30 08:54:29 -07:00
Derek McGowan
5fdf55e493
Update go module to github.com/containerd/containerd/v2
...
Signed-off-by: Derek McGowan <derek@mcg.dev >
2023-10-29 20:52:21 -07:00
Samuel Karp
240733ce2f
warning: new service for deprecations
...
Signed-off-by: Samuel Karp <samuelkarp@google.com >
2023-10-24 22:38:31 -07:00
Derek McGowan
7b2a918213
Generalize the plugin package
...
Remove containerd specific parts of the plugin package to prepare its
move out of the main repository. Separate the plugin registration
singleton into a separate package.
Separating out the plugin package and registration makes it easier to
implement external plugins without creating a dependency loop.
Signed-off-by: Derek McGowan <derek@mcg.dev >
2023-10-12 21:22:32 -07:00
Derek McGowan
cb969085f5
Temporarily remove zfs as built in plugin
...
Signed-off-by: Derek McGowan <derek@mcg.dev >
2023-10-12 20:39:22 -07:00
Derek McGowan
62f273d508
Add migrate subcommand to config command
...
Allows applying migration to existing configurations
Signed-off-by: Derek McGowan <derek@mcg.dev >
2023-09-26 16:54:24 -07:00
Derek McGowan
f58158e2d3
Add config migration and bump config version
...
Allows plugins to migrate from older configurations
Signed-off-by: Derek McGowan <derek@mcg.dev >
2023-09-26 16:53:33 -07:00
Derek McGowan
4c344f2fa5
Add warning for plugin configs with unknown fields
...
Signed-off-by: Derek McGowan <derek@mcg.dev >
2023-09-25 16:09:15 -07:00
Derek McGowan
650148313c
Add warning log for unknown config fields
...
Add error log for failure to parse toml
Signed-off-by: Derek McGowan <derek@mcg.dev >
2023-09-24 20:50:54 -07:00
Derek McGowan
b5615caf11
Update go-toml to v2
...
Updates host file parsing to use new v2 method rather than the removed
toml.Tree.
Signed-off-by: Derek McGowan <derek@mcg.dev >
2023-09-22 15:35:12 -07:00
Derek McGowan
508aa3a1ef
Move to use github.com/containerd/log
...
Add github.com/containerd/log to go.mod
Signed-off-by: Derek McGowan <derek@mcg.dev >
2023-09-22 07:53:23 -07:00
Ethan Lowman
ac1d556b92
Add image verifier transfer service plugin system based on a binary directory
...
Signed-off-by: Ethan Lowman <ethan.lowman@datadoghq.com >
2023-09-07 18:45:02 -04:00
Jin Dong
fc45365fa1
Remove most logrus
...
Signed-off-by: Jin Dong <jin.dong@databricks.com >
2023-08-26 14:31:53 -04:00