()
| 41 | ) |
| 42 | |
| 43 | func init() { |
| 44 | config := criconfig.DefaultRuntimeConfig() |
| 45 | |
| 46 | // Base plugin that other CRI services depend on. |
| 47 | registry.Register(&plugin.Registration{ |
| 48 | Type: plugins.CRIServicePlugin, |
| 49 | ID: "runtime", |
| 50 | Config: &config, |
| 51 | Requires: []plugin.Type{ |
| 52 | plugins.WarningPlugin, |
| 53 | }, |
| 54 | ConfigMigration: configMigration, |
| 55 | InitFn: initCRIRuntime, |
| 56 | }) |
| 57 | } |
| 58 | |
| 59 | func initCRIRuntime(ic *plugin.InitContext) (any, error) { |
| 60 | ic.Meta.Platforms = []imagespec.Platform{platforms.DefaultSpec()} |
nothing calls this directly
no test coverage detected
searching dependent graphs…