mirror of
				https://github.com/optim-enterprises-bv/kubernetes.git
				synced 2025-10-30 17:58:14 +00:00 
			
		
		
		
	Additional plugin/pkg/scheduler golint fixes
This commit is contained in:
		| @@ -287,6 +287,8 @@ plugin/pkg/auth/authenticator/token/bootstrap | ||||
| plugin/pkg/auth/authorizer | ||||
| plugin/pkg/auth/authorizer/rbac/bootstrappolicy | ||||
| plugin/pkg/scheduler | ||||
| plugin/pkg/scheduler/algorithmprovider | ||||
| plugin/pkg/scheduler/algorithmprovider/defaults | ||||
| plugin/pkg/scheduler/api/validation | ||||
| staging/src/k8s.io/apimachinery/pkg/api/equality | ||||
| staging/src/k8s.io/apimachinery/pkg/api/errors | ||||
|   | ||||
| @@ -41,7 +41,7 @@ type PriorityMapFunction func(pod *v1.Pod, meta interface{}, nodeInfo *scheduler | ||||
| // TODO: Change interface{} to a specific type. | ||||
| type PriorityReduceFunction func(pod *v1.Pod, meta interface{}, nodeNameToInfo map[string]*schedulercache.NodeInfo, result schedulerapi.HostPriorityList) error | ||||
|  | ||||
| // MetdataProducer is a function that computes metadata for a given pod. | ||||
| // MetadataProducer is a function that computes metadata for a given pod. | ||||
| type MetadataProducer func(pod *v1.Pod, nodeNameToInfo map[string]*schedulercache.NodeInfo) interface{} | ||||
|  | ||||
| // DEPRECATED | ||||
|   | ||||
| @@ -14,7 +14,6 @@ See the License for the specific language governing permissions and | ||||
| limitations under the License. | ||||
| */ | ||||
|  | ||||
| // This is the default algorithm provider for the scheduler. | ||||
| package defaults | ||||
|  | ||||
| import ( | ||||
| @@ -35,13 +34,19 @@ import ( | ||||
| ) | ||||
|  | ||||
| const ( | ||||
| 	// DefaultMaxGCEPDVolumes defines the maximum number of PD Volumes for GCE | ||||
| 	// GCE instances can have up to 16 PD volumes attached. | ||||
| 	DefaultMaxGCEPDVolumes = 16 | ||||
| 	// Larger Azure VMs can actually have much more disks attached. TODO We should determine the max based on VM size | ||||
| 	// DefaultMaxAzureDiskVolumes defines the maximum number of PD Volumes for Azure | ||||
| 	// Larger Azure VMs can actually have much more disks attached. | ||||
| 	// TODO We should determine the max based on VM size | ||||
| 	DefaultMaxAzureDiskVolumes = 16 | ||||
| 	ClusterAutoscalerProvider  = "ClusterAutoscalerProvider" | ||||
| 	StatefulSetKind            = "StatefulSet" | ||||
| 	KubeMaxPDVols              = "KUBE_MAX_PD_VOLS" | ||||
| 	// ClusterAutoscalerProvider defines the default autoscaler provider | ||||
| 	ClusterAutoscalerProvider = "ClusterAutoscalerProvider" | ||||
| 	// StatefulSetKind defines the name of 'StatefulSet' kind | ||||
| 	StatefulSetKind = "StatefulSet" | ||||
| 	// KubeMaxPDVols defines the maximum number of PD Volumes per kubelet | ||||
| 	KubeMaxPDVols = "KUBE_MAX_PD_VOLS" | ||||
| ) | ||||
|  | ||||
| func init() { | ||||
|   | ||||
| @@ -14,9 +14,9 @@ See the License for the specific language governing permissions and | ||||
| limitations under the License. | ||||
| */ | ||||
|  | ||||
| // This package is used to register algorithm provider plugins. | ||||
| package algorithmprovider | ||||
|  | ||||
| import ( | ||||
| 	// Import defaults of algorithmprovider for initialization. | ||||
| 	_ "k8s.io/kubernetes/plugin/pkg/scheduler/algorithmprovider/defaults" | ||||
| ) | ||||
|   | ||||
		Reference in New Issue
	
	Block a user
	 Christoph Blecker
					Christoph Blecker