Register CRI service plugin
()
| 43 | |
| 44 | // Register CRI service plugin |
| 45 | func init() { |
| 46 | defaultConfig := criconfig.DefaultServerConfig() |
| 47 | registry.Register(&plugin.Registration{ |
| 48 | Type: plugins.GRPCPlugin, |
| 49 | ID: "cri", |
| 50 | Requires: []plugin.Type{ |
| 51 | plugins.CRIServicePlugin, |
| 52 | plugins.PodSandboxPlugin, |
| 53 | plugins.SandboxControllerPlugin, |
| 54 | plugins.NRIApiPlugin, |
| 55 | plugins.EventPlugin, |
| 56 | plugins.ServicePlugin, |
| 57 | plugins.LeasePlugin, |
| 58 | plugins.SandboxStorePlugin, |
| 59 | plugins.TransferPlugin, |
| 60 | plugins.WarningPlugin, |
| 61 | }, |
| 62 | Config: &defaultConfig, |
| 63 | ConfigMigration: configMigration, |
| 64 | InitFn: initCRIService, |
| 65 | }) |
| 66 | } |
| 67 | |
| 68 | func initCRIService(ic *plugin.InitContext) (any, error) { |
| 69 | ctx := ic.Context |
nothing calls this directly
no test coverage detected
searching dependent graphs…