Clean up for some typo.
1) Removed a space in portforward.go. 2) Renamed `lockAquisitionFunc` to `lockAcquisitionFunc` in controller.go. 3) Fixed typo in predicates.go.
This commit is contained in:
		| @@ -45,8 +45,8 @@ type Evaluator interface { | ||||
|  | ||||
| type quotaEvaluator struct { | ||||
| 	quotaAccessor QuotaAccessor | ||||
| 	// lockAquisitionFunc acquires any required locks and returns a cleanup method to defer | ||||
| 	lockAquisitionFunc func([]api.ResourceQuota) func() | ||||
| 	// lockAcquisitionFunc acquires any required locks and returns a cleanup method to defer | ||||
| 	lockAcquisitionFunc func([]api.ResourceQuota) func() | ||||
|  | ||||
| 	// registry that knows how to measure usage for objects | ||||
| 	registry quota.Registry | ||||
| @@ -99,10 +99,10 @@ func newAdmissionWaiter(a admission.Attributes) *admissionWaiter { | ||||
| // NewQuotaEvaluator configures an admission controller that can enforce quota constraints | ||||
| // using the provided registry.  The registry must have the capability to handle group/kinds that | ||||
| // are persisted by the server this admission controller is intercepting | ||||
| func NewQuotaEvaluator(quotaAccessor QuotaAccessor, registry quota.Registry, lockAquisitionFunc func([]api.ResourceQuota) func(), workers int, stopCh <-chan struct{}) Evaluator { | ||||
| func NewQuotaEvaluator(quotaAccessor QuotaAccessor, registry quota.Registry, lockAcquisitionFunc func([]api.ResourceQuota) func(), workers int, stopCh <-chan struct{}) Evaluator { | ||||
| 	return "aEvaluator{ | ||||
| 		quotaAccessor:       quotaAccessor, | ||||
| 		lockAquisitionFunc: lockAquisitionFunc, | ||||
| 		lockAcquisitionFunc: lockAcquisitionFunc, | ||||
|  | ||||
| 		registry: registry, | ||||
|  | ||||
| @@ -173,8 +173,8 @@ func (e *quotaEvaluator) checkAttributes(ns string, admissionAttributes []*admis | ||||
| 		return | ||||
| 	} | ||||
|  | ||||
| 	if e.lockAquisitionFunc != nil { | ||||
| 		releaseLocks := e.lockAquisitionFunc(quotas) | ||||
| 	if e.lockAcquisitionFunc != nil { | ||||
| 		releaseLocks := e.lockAcquisitionFunc(quotas) | ||||
| 		defer releaseLocks() | ||||
| 	} | ||||
|  | ||||
|   | ||||
| @@ -692,7 +692,7 @@ type ServiceAffinity struct { | ||||
| // only should be referenced by NewServiceAffinityPredicate. | ||||
| func (s *ServiceAffinity) serviceAffinityPrecomputation(pm *predicateMetadata) { | ||||
| 	if pm.pod == nil { | ||||
| 		glog.Errorf("Cannot precompute service affinity, a pod is required to caluculate service affinity.") | ||||
| 		glog.Errorf("Cannot precompute service affinity, a pod is required to calculate service affinity.") | ||||
| 		return | ||||
| 	} | ||||
|  | ||||
|   | ||||
		Reference in New Issue
	
	Block a user
	 Guangya Liu
					Guangya Liu