Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 3 of 3 for GetWarningsForRuntimeClass (1.7 sec)

  1. 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)
  2. 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)
  3. 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)
Back to top