mirror of
				https://github.com/optim-enterprises-bv/kubernetes.git
				synced 2025-10-30 17:58:14 +00:00 
			
		
		
		
	Merge pull request #41076 from gyliu513/port-forward
Automatic merge from submit-queue Removed a space in portforward.go. **What this PR does / why we need it**: **Which issue this PR fixes** *(optional, in `fixes #<issue number>(, fixes #<issue_number>, ...)` format, will close that issue when PR gets merged)*: fixes # **Special notes for your reviewer**: **Release note**: ```release-note ```
This commit is contained in:
		| @@ -61,7 +61,7 @@ var ( | ||||
| 		kubectl port-forward mypod :5000 | ||||
|  | ||||
| 		# Listen on a random port locally, forwarding to 5000 in the pod | ||||
| 		kubectl port-forward  mypod 0:5000`) | ||||
| 		kubectl port-forward mypod 0:5000`) | ||||
| ) | ||||
|  | ||||
| func NewCmdPortForward(f cmdutil.Factory, cmdOut, cmdErr io.Writer) *cobra.Command { | ||||
|   | ||||
| @@ -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, | ||||
| 		quotaAccessor:       quotaAccessor, | ||||
| 		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
	 Kubernetes Submit Queue
					Kubernetes Submit Queue