- Sort Score
- Result 10 results
- Languages All
Results 1 - 3 of 3 for GetWarningsForRuntimeClass (1.7 sec)
-
pkg/registry/node/runtimeclass/strategy.go
} // WarningsOnCreate returns warnings for the creation of the given object. func (strategy) WarningsOnCreate(ctx context.Context, obj runtime.Object) []string { return nodeapi.GetWarningsForRuntimeClass(obj.(*node.RuntimeClass)) } // Canonicalize normalizes the object after validation. func (strategy) Canonicalize(obj runtime.Object) { _ = obj.(*node.RuntimeClass) }
Registered: Sat Jun 15 01:39:40 UTC 2024 - Last Modified: Mon May 09 08:17:32 UTC 2022 - 3.6K bytes - Viewed (0) -
pkg/api/node/util_test.go
}, }, } for _, tc := range testcases { t.Run("podspec_"+tc.name, func(t *testing.T) { actual := sets.New[string](GetWarningsForRuntimeClass(tc.template)...) expected := sets.New[string](tc.expected...) for _, missing := range sets.List[string](expected.Difference(actual)) { t.Errorf("missing: %s", missing) }
Registered: Sat Jun 15 01:39:40 UTC 2024 - Last Modified: Mon Sep 25 11:04:08 UTC 2023 - 2K bytes - Viewed (0) -
pkg/api/node/util.go
// and a bool indicating if the label is deprecated. func GetNodeLabelDeprecatedMessage(key string) (string, bool) { msg, ok := deprecatedNodeLabels[key] return msg, ok } func GetWarningsForRuntimeClass(rc *node.RuntimeClass) []string { var warnings []string if rc != nil && rc.Scheduling != nil && rc.Scheduling.NodeSelector != nil { // use of deprecated node labels in scheduling's node affinity
Registered: Sat Jun 15 01:39:40 UTC 2024 - Last Modified: Wed May 25 07:15:34 UTC 2022 - 3.8K bytes - Viewed (0)