From d4d3f3dda8a39224190e543bedf402a19f9cd000 Mon Sep 17 00:00:00 2001 From: Andrew Sy Kim Date: Tue, 17 Mar 2020 16:40:23 -0400 Subject: [PATCH] e2e/framework: copied constants for default storage class annotations should be unexported Signed-off-by: Andrew Sy Kim --- test/e2e/framework/pv/pv.go | 12 ++++++------ 1 file changed, 6 insertions(+), 6 deletions(-) diff --git a/test/e2e/framework/pv/pv.go b/test/e2e/framework/pv/pv.go index b020b1da427..a6ff32f5989 100644 --- a/test/e2e/framework/pv/pv.go +++ b/test/e2e/framework/pv/pv.go @@ -53,13 +53,13 @@ const ( // VolumeSelectorKey is the key for volume selector. VolumeSelectorKey = "e2e-pv-pool" - // IsDefaultStorageClassAnnotation represents a StorageClass annotation that + // isDefaultStorageClassAnnotation represents a StorageClass annotation that // marks a class as the default StorageClass - IsDefaultStorageClassAnnotation = "storageclass.kubernetes.io/is-default-class" + isDefaultStorageClassAnnotation = "storageclass.kubernetes.io/is-default-class" - // BetaIsDefaultStorageClassAnnotation is the beta version of IsDefaultStorageClassAnnotation. + // betaIsDefaultStorageClassAnnotation is the beta version of IsDefaultStorageClassAnnotation. // TODO: remove Beta when no longer used - BetaIsDefaultStorageClassAnnotation = "storageclass.beta.kubernetes.io/is-default-class" + betaIsDefaultStorageClassAnnotation = "storageclass.beta.kubernetes.io/is-default-class" ) var ( @@ -804,10 +804,10 @@ func GetDefaultStorageClassName(c clientset.Interface) (string, error) { // annotation is set // TODO: remove Beta when no longer needed func isDefaultAnnotation(obj metav1.ObjectMeta) bool { - if obj.Annotations[IsDefaultStorageClassAnnotation] == "true" { + if obj.Annotations[isDefaultStorageClassAnnotation] == "true" { return true } - if obj.Annotations[BetaIsDefaultStorageClassAnnotation] == "true" { + if obj.Annotations[betaIsDefaultStorageClassAnnotation] == "true" { return true }