MutatingHandler defines the interface for mutating a pod, implementations should be thread(goroutine) safe.
| 25 | |
| 26 | // MutatingHandler defines the interface for mutating a pod, implementations should be thread(goroutine) safe. |
| 27 | type MutatingHandler interface { |
| 28 | // Mutate injects affinity info into pod |
| 29 | // if a plugin return true, it means that no need to call other plugins |
| 30 | // map[string]base.RuntimeInfoInterface's key is pvcName |
| 31 | Mutate(*corev1.Pod, map[string]base.RuntimeInfoInterface) (shouldStop bool, err error) |
| 32 | // GetName returns the name of plugin |
| 33 | GetName() string |
| 34 | } |
| 35 | |
| 36 | // RegistryHandler record the active plugins |
| 37 | // including two kinds: plugins for pod with no dataset mounted and with dataset mounted |
no outgoing calls
no test coverage detected