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

Function InjectCacheDirEnabled

pkg/utils/annotations.go:60–62  ·  view source on GitHub ↗

---- Util functions to control pod's fuse sidecar mutation behaviors ----

(infos map[string]string)

Source from the content-addressed store, hash-verified

58//
59
60func InjectCacheDirEnabled(infos map[string]string) (match bool) {
61 return enabled(infos, common.InjectCacheDir)
62}
63
64func SkipSidecarPostStartInject(infos map[string]string) (match bool) {
65 return KeyValueMatched(infos, common.InjectSidecarPostStart, common.False)

Callers 2

injectMethod · 0.92

Calls 1

enabledFunction · 0.85

Tested by 1