Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 3 of 3 for GetWarningsForStorageClass (0.28 sec)

  1. pkg/registry/storage/storageclass/strategy.go

    }
    
    // WarningsOnCreate returns warnings for the creation of the given object.
    func (storageClassStrategy) WarningsOnCreate(ctx context.Context, obj runtime.Object) []string {
    	return storageutil.GetWarningsForStorageClass(obj.(*storage.StorageClass))
    }
    
    // Canonicalize normalizes the object after validation.
    func (storageClassStrategy) Canonicalize(obj runtime.Object) {
    }
    
    Registered: Sat Jun 15 01:39:40 UTC 2024
    - Last Modified: Wed May 25 07:15:34 UTC 2022
    - 2.9K bytes
    - Viewed (0)
  2. pkg/api/storage/util.go

    */
    
    package storage
    
    import (
    	"fmt"
    
    	"k8s.io/apimachinery/pkg/util/validation/field"
    	nodeapi "k8s.io/kubernetes/pkg/api/node"
    	"k8s.io/kubernetes/pkg/apis/storage"
    )
    
    func GetWarningsForStorageClass(sc *storage.StorageClass) []string {
    	var warnings []string
    
    	if sc != nil && sc.AllowedTopologies != nil {
    		// use of deprecated node labels in allowedTopologies's matchLabelExpressions
    Registered: Sat Jun 15 01:39:40 UTC 2024
    - Last Modified: Wed May 25 07:15:34 UTC 2022
    - 1.5K bytes
    - Viewed (0)
  3. pkg/api/storage/util_test.go

    			},
    		},
    	}
    
    	for _, tc := range testcases {
    		t.Run("podspec_"+tc.name, func(t *testing.T) {
    			actual := sets.New[string](GetWarningsForStorageClass(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
    - 4.5K bytes
    - Viewed (0)
Back to top