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

Function init

pkg/utils/dataset/lifecycle/node.go:52–62  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

50var nodeExcludeSelector labels.Selector
51
52func init() {
53 rootLog = ctrl.Log.WithName("dataset.lifecycle")
54 if err := parseNodeExcludeSelectorFromEnv(); err != nil {
55 stdlog.Fatal(err)
56 }
57 if nodeExcludeSelector != nil {
58 stdlog.Printf("Found non-empty nodeExcludeSelector \"%s\"", nodeExcludeSelector.String())
59 } else {
60 stdlog.Print("nodeExcludeSelector is empty, no node would be excluded when syncing schedule info of runtimes")
61 }
62}
63
64func SyncScheduleInfoToCacheNodes(runtimeInfo base.RuntimeInfoInterface, client client.Client) error {
65 defer utils.TimeTrack(time.Now(), "SyncScheduleInfoToCacheNodes", "name", runtimeInfo.GetName(), "namespace", runtimeInfo.GetNamespace())

Callers

nothing calls this directly

Calls 2

StringMethod · 0.45

Tested by

no test coverage detected