MCPcopy
hub / github.com/fluid-cloudnative/fluid / Mutate

Method Mutate

pkg/webhook/plugins/api/plugins_api.go:31–31  ·  view source on GitHub ↗

Mutate injects affinity info into pod if a plugin return true, it means that no need to call other plugins map[string]base.RuntimeInfoInterface's key is pvcName

(*corev1.Pod, map[string]base.RuntimeInfoInterface)

Source from the content-addressed store, hash-verified

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}

Callers 11

TestPodsFunction · 0.65
TestMutateOnlyRequiredFunction · 0.65
TestMutateOnlyPreferFunction · 0.65
TestTieredLocalityFunction · 0.65
TestMutateFunction · 0.65
TestMutateFunction · 0.65
TestMutateFunction · 0.65
TestMutateFunction · 0.65
MutatePodMethod · 0.65

Implementers 7

NodeAffinityWithCachepkg/webhook/plugins/nodeaffinitywithca
FuseSidecarpkg/webhook/plugins/fusesidecar/fuse_s
DatasetUsageInjectorpkg/webhook/plugins/datasetusageinject
RequireNodeWithFusepkg/webhook/plugins/requirenodewithfus
MountPropagationInjectorpkg/webhook/plugins/mountpropagationin
PreferNodesWithoutCachepkg/webhook/plugins/prefernodeswithout
FilePrefetcherpkg/webhook/plugins/fileprefetcher/fil

Calls

no outgoing calls

Tested by 10

TestPodsFunction · 0.52
TestMutateOnlyRequiredFunction · 0.52
TestMutateOnlyPreferFunction · 0.52
TestTieredLocalityFunction · 0.52
TestMutateFunction · 0.52
TestMutateFunction · 0.52
TestMutateFunction · 0.52
TestMutateFunction · 0.52