Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 3 of 3 for IsDefaultVolumeAttributesClassAnnotation (0.86 sec)

  1. pkg/volume/util/volumeattributesclass.go

    	}
    
    	return defaultClasses[0], nil
    }
    
    // IsDefaultVolumeAttributesClassAnnotation returns a boolean if the default
    // volume attributes class annotation is set
    func IsDefaultVolumeAttributesClassAnnotation(obj metav1.ObjectMeta) bool {
    	return obj.Annotations[AlphaIsDefaultVolumeAttributesClassAnnotation] == "true"
    Registered: Sat Jun 15 01:39:40 UTC 2024
    - Last Modified: Tue Oct 31 03:18:56 UTC 2023
    - 2.6K bytes
    - Viewed (0)
  2. pkg/apis/storage/util/helpers.go

    // TODO: remove Beta when no longer used
    const BetaIsDefaultStorageClassAnnotation = "storageclass.beta.kubernetes.io/is-default-class"
    
    // AlphaIsDefaultVolumeAttributesClassAnnotation is the alpha version of IsDefaultVolumeAttributesClassAnnotation.
    const AlphaIsDefaultVolumeAttributesClassAnnotation = "volumeattributesclass.alpha.kubernetes.io/is-default-class"
    
    // IsDefaultAnnotation returns a boolean if
    // the annotation is set
    Registered: Sat Jun 15 01:39:40 UTC 2024
    - Last Modified: Tue Oct 31 03:18:56 UTC 2023
    - 1.9K bytes
    - Viewed (0)
  3. pkg/volume/util/volumeattributesclass_test.go

    					},
    				},
    			},
    			expect: true,
    		},
    	}
    
    	for _, tc := range testCases {
    		t.Run(tc.name, func(t *testing.T) {
    			actual := IsDefaultVolumeAttributesClassAnnotation(tc.class.ObjectMeta)
    			if tc.expect != actual {
    				t.Errorf("Expected %v, got %v", tc.expect, actual)
    			}
    		})
    	}
    Registered: Sat Jun 15 01:39:40 UTC 2024
    - Last Modified: Tue Oct 31 03:18:56 UTC 2023
    - 5.9K bytes
    - Viewed (0)
Back to top