mirror of
				https://github.com/optim-enterprises-bv/kubernetes.git
				synced 2025-11-04 04:08:16 +00:00 
			
		
		
		
	fix golint failures of pkg/apis/scheduling pkg/apis/storage/util pkg/apis/storage/v1/util pkg/apis/storage/v1beta1/util
This commit is contained in:
		@@ -47,13 +47,9 @@ pkg/apis/rbac/v1
 | 
				
			|||||||
pkg/apis/rbac/v1alpha1
 | 
					pkg/apis/rbac/v1alpha1
 | 
				
			||||||
pkg/apis/rbac/v1beta1
 | 
					pkg/apis/rbac/v1beta1
 | 
				
			||||||
pkg/apis/rbac/validation
 | 
					pkg/apis/rbac/validation
 | 
				
			||||||
pkg/apis/scheduling
 | 
					 | 
				
			||||||
pkg/apis/storage
 | 
					pkg/apis/storage
 | 
				
			||||||
pkg/apis/storage/util
 | 
					 | 
				
			||||||
pkg/apis/storage/v1
 | 
					pkg/apis/storage/v1
 | 
				
			||||||
pkg/apis/storage/v1/util
 | 
					 | 
				
			||||||
pkg/apis/storage/v1beta1
 | 
					pkg/apis/storage/v1beta1
 | 
				
			||||||
pkg/apis/storage/v1beta1/util
 | 
					 | 
				
			||||||
pkg/cloudprovider/providers/fake
 | 
					pkg/cloudprovider/providers/fake
 | 
				
			||||||
pkg/cloudprovider/providers/photon
 | 
					pkg/cloudprovider/providers/photon
 | 
				
			||||||
pkg/controller
 | 
					pkg/controller
 | 
				
			||||||
 
 | 
				
			|||||||
@@ -38,8 +38,10 @@ func Resource(resource string) schema.GroupResource {
 | 
				
			|||||||
}
 | 
					}
 | 
				
			||||||
 | 
					
 | 
				
			||||||
var (
 | 
					var (
 | 
				
			||||||
 | 
						// SchemeBuilder points to a list of functions added to Scheme.
 | 
				
			||||||
	SchemeBuilder = runtime.NewSchemeBuilder(addKnownTypes)
 | 
						SchemeBuilder = runtime.NewSchemeBuilder(addKnownTypes)
 | 
				
			||||||
	AddToScheme   = SchemeBuilder.AddToScheme
 | 
						// AddToScheme applies all the stored functions to the scheme.
 | 
				
			||||||
 | 
						AddToScheme = SchemeBuilder.AddToScheme
 | 
				
			||||||
)
 | 
					)
 | 
				
			||||||
 | 
					
 | 
				
			||||||
func addKnownTypes(scheme *runtime.Scheme) error {
 | 
					func addKnownTypes(scheme *runtime.Scheme) error {
 | 
				
			||||||
 
 | 
				
			|||||||
@@ -29,11 +29,13 @@ const (
 | 
				
			|||||||
	SystemCriticalPriority = 2 * HighestUserDefinablePriority
 | 
						SystemCriticalPriority = 2 * HighestUserDefinablePriority
 | 
				
			||||||
	// SystemPriorityClassPrefix is the prefix reserved for system priority class names. Other priority
 | 
						// SystemPriorityClassPrefix is the prefix reserved for system priority class names. Other priority
 | 
				
			||||||
	// classes are not allowed to start with this prefix.
 | 
						// classes are not allowed to start with this prefix.
 | 
				
			||||||
	SystemPriorityClassPrefix = "system-"
 | 
					 | 
				
			||||||
	// NOTE: In order to avoid conflict of names with user-defined priority classes, all the names must
 | 
						// NOTE: In order to avoid conflict of names with user-defined priority classes, all the names must
 | 
				
			||||||
	// start with SystemPriorityClassPrefix.
 | 
						// start with SystemPriorityClassPrefix.
 | 
				
			||||||
 | 
						SystemPriorityClassPrefix = "system-"
 | 
				
			||||||
 | 
						// SystemClusterCritical is the system priority class name that represents cluster-critical.
 | 
				
			||||||
	SystemClusterCritical = SystemPriorityClassPrefix + "cluster-critical"
 | 
						SystemClusterCritical = SystemPriorityClassPrefix + "cluster-critical"
 | 
				
			||||||
	SystemNodeCritical    = SystemPriorityClassPrefix + "node-critical"
 | 
						// SystemNodeCritical is the system priority class name that represents node-critical.
 | 
				
			||||||
 | 
						SystemNodeCritical = SystemPriorityClassPrefix + "node-critical"
 | 
				
			||||||
)
 | 
					)
 | 
				
			||||||
 | 
					
 | 
				
			||||||
// +k8s:deepcopy-gen:interfaces=k8s.io/apimachinery/pkg/runtime.Object
 | 
					// +k8s:deepcopy-gen:interfaces=k8s.io/apimachinery/pkg/runtime.Object
 | 
				
			||||||
 
 | 
				
			|||||||
@@ -20,8 +20,10 @@ import metav1 "k8s.io/apimachinery/pkg/apis/meta/v1"
 | 
				
			|||||||
 | 
					
 | 
				
			||||||
// IsDefaultStorageClassAnnotation represents a StorageClass annotation that
 | 
					// IsDefaultStorageClassAnnotation represents a StorageClass annotation that
 | 
				
			||||||
// marks a class as the default StorageClass
 | 
					// marks a class as the default StorageClass
 | 
				
			||||||
//TODO: remove Beta when no longer used
 | 
					 | 
				
			||||||
const IsDefaultStorageClassAnnotation = "storageclass.kubernetes.io/is-default-class"
 | 
					const IsDefaultStorageClassAnnotation = "storageclass.kubernetes.io/is-default-class"
 | 
				
			||||||
 | 
					
 | 
				
			||||||
 | 
					// BetaIsDefaultStorageClassAnnotation is the beta version of IsDefaultStorageClassAnnotation.
 | 
				
			||||||
 | 
					// TODO: remove Beta when no longer used
 | 
				
			||||||
const BetaIsDefaultStorageClassAnnotation = "storageclass.beta.kubernetes.io/is-default-class"
 | 
					const BetaIsDefaultStorageClassAnnotation = "storageclass.beta.kubernetes.io/is-default-class"
 | 
				
			||||||
 | 
					
 | 
				
			||||||
// IsDefaultAnnotationText returns a pretty Yes/No String if
 | 
					// IsDefaultAnnotationText returns a pretty Yes/No String if
 | 
				
			||||||
 
 | 
				
			|||||||
@@ -22,8 +22,10 @@ import (
 | 
				
			|||||||
 | 
					
 | 
				
			||||||
// IsDefaultStorageClassAnnotation represents a StorageClass annotation that
 | 
					// IsDefaultStorageClassAnnotation represents a StorageClass annotation that
 | 
				
			||||||
// marks a class as the default StorageClass
 | 
					// marks a class as the default StorageClass
 | 
				
			||||||
//TODO: remove Beta when no longer used
 | 
					 | 
				
			||||||
const IsDefaultStorageClassAnnotation = "storageclass.kubernetes.io/is-default-class"
 | 
					const IsDefaultStorageClassAnnotation = "storageclass.kubernetes.io/is-default-class"
 | 
				
			||||||
 | 
					
 | 
				
			||||||
 | 
					// BetaIsDefaultStorageClassAnnotation is the beta version of IsDefaultStorageClassAnnotation.
 | 
				
			||||||
 | 
					// TODO: remove Beta when no longer used
 | 
				
			||||||
const BetaIsDefaultStorageClassAnnotation = "storageclass.beta.kubernetes.io/is-default-class"
 | 
					const BetaIsDefaultStorageClassAnnotation = "storageclass.beta.kubernetes.io/is-default-class"
 | 
				
			||||||
 | 
					
 | 
				
			||||||
// IsDefaultAnnotationText returns a pretty Yes/No String if
 | 
					// IsDefaultAnnotationText returns a pretty Yes/No String if
 | 
				
			||||||
 
 | 
				
			|||||||
@@ -20,8 +20,10 @@ import metav1 "k8s.io/apimachinery/pkg/apis/meta/v1"
 | 
				
			|||||||
 | 
					
 | 
				
			||||||
// IsDefaultStorageClassAnnotation represents a StorageClass annotation that
 | 
					// IsDefaultStorageClassAnnotation represents a StorageClass annotation that
 | 
				
			||||||
// marks a class as the default StorageClass
 | 
					// marks a class as the default StorageClass
 | 
				
			||||||
//TODO: remove Beta when no longer used
 | 
					 | 
				
			||||||
const IsDefaultStorageClassAnnotation = "storageclass.kubernetes.io/is-default-class"
 | 
					const IsDefaultStorageClassAnnotation = "storageclass.kubernetes.io/is-default-class"
 | 
				
			||||||
 | 
					
 | 
				
			||||||
 | 
					// BetaIsDefaultStorageClassAnnotation is the beta version of IsDefaultStorageClassAnnotation.
 | 
				
			||||||
 | 
					// TODO: remove Beta when no longer used
 | 
				
			||||||
const BetaIsDefaultStorageClassAnnotation = "storageclass.beta.kubernetes.io/is-default-class"
 | 
					const BetaIsDefaultStorageClassAnnotation = "storageclass.beta.kubernetes.io/is-default-class"
 | 
				
			||||||
 | 
					
 | 
				
			||||||
// IsDefaultAnnotationText returns a pretty Yes/No String if
 | 
					// IsDefaultAnnotationText returns a pretty Yes/No String if
 | 
				
			||||||
 
 | 
				
			|||||||
@@ -28,7 +28,7 @@ import (
 | 
				
			|||||||
// marks a class as the default StorageClass
 | 
					// marks a class as the default StorageClass
 | 
				
			||||||
const IsDefaultStorageClassAnnotation = "storageclass.kubernetes.io/is-default-class"
 | 
					const IsDefaultStorageClassAnnotation = "storageclass.kubernetes.io/is-default-class"
 | 
				
			||||||
 | 
					
 | 
				
			||||||
// BetaIsDefaultStorageClassAnnotation is the beta version of BetaIsDefaultStorageClassAnnotation.
 | 
					// BetaIsDefaultStorageClassAnnotation is the beta version of IsDefaultStorageClassAnnotation.
 | 
				
			||||||
const BetaIsDefaultStorageClassAnnotation = "storageclass.beta.kubernetes.io/is-default-class"
 | 
					const BetaIsDefaultStorageClassAnnotation = "storageclass.beta.kubernetes.io/is-default-class"
 | 
				
			||||||
 | 
					
 | 
				
			||||||
// IsDefaultAnnotationText returns a pretty Yes/No String if
 | 
					// IsDefaultAnnotationText returns a pretty Yes/No String if
 | 
				
			||||||
 
 | 
				
			|||||||
		Reference in New Issue
	
	Block a user