()
| 124 | } |
| 125 | |
| 126 | func platformAgnosticDefaultConfig() *srvconfig.Config { |
| 127 | return &srvconfig.Config{ |
| 128 | Version: version.ConfigVersion, |
| 129 | Root: defaults.DefaultRootDir, |
| 130 | State: defaults.DefaultStateDir, |
| 131 | DisabledPlugins: []string{}, |
| 132 | RequiredPlugins: []string{}, |
| 133 | StreamProcessors: streamProcessors(), |
| 134 | Imports: []string{defaults.DefaultConfigIncludePattern}, |
| 135 | Plugins: map[string]any{ |
| 136 | "io.containerd.server.v1.grpc": map[string]any{ |
| 137 | "address": defaults.DefaultAddress, |
| 138 | "max_recv_message_size": defaults.DefaultMaxRecvMsgSize, |
| 139 | "max_send_message_size": defaults.DefaultMaxSendMsgSize, |
| 140 | }, |
| 141 | }, |
| 142 | } |
| 143 | } |
| 144 | |
| 145 | func streamProcessors() map[string]srvconfig.StreamProcessor { |
| 146 | const ( |
no test coverage detected
searching dependent graphs…