mirror of
				https://github.com/optim-enterprises-bv/kubernetes.git
				synced 2025-10-30 17:58:14 +00:00 
			
		
		
		
	Remove unnecessary type conversion
Signed-off-by: mantuliu <240951888@qq.com>
This commit is contained in:
		| @@ -267,7 +267,7 @@ func (n *nodeLogQuery) Copy(w io.Writer) { | ||||
| 	// set the deadline to the maximum across both runs | ||||
| 	ctx, cancel := context.WithDeadline(context.Background(), time.Now().Add(30*time.Second)) | ||||
| 	defer cancel() | ||||
| 	boot := int(0) | ||||
| 	boot := 0 | ||||
| 	if n.Boot != nil { | ||||
| 		boot = *n.Boot | ||||
| 	} | ||||
|   | ||||
| @@ -1652,7 +1652,7 @@ func killPodNow(podWorkers PodWorkers, recorder record.EventRecorder) eviction.K | ||||
|  | ||||
| 		// we timeout and return an error if we don't get a callback within a reasonable time. | ||||
| 		// the default timeout is relative to the grace period (we settle on 10s to wait for kubelet->runtime traffic to complete in sigkill) | ||||
| 		timeout := int64(gracePeriod + (gracePeriod / 2)) | ||||
| 		timeout := gracePeriod + (gracePeriod / 2) | ||||
| 		minTimeout := int64(10) | ||||
| 		if timeout < minTimeout { | ||||
| 			timeout = minTimeout | ||||
|   | ||||
| @@ -495,7 +495,7 @@ func TestStatusNormalizationEnforcesMaxBytes(t *testing.T) { | ||||
| 			Name: fmt.Sprintf("container%d", i), | ||||
| 			LastTerminationState: v1.ContainerState{ | ||||
| 				Terminated: &v1.ContainerStateTerminated{ | ||||
| 					Message: strings.Repeat("abcdefgh", int(24+i%3)), | ||||
| 					Message: strings.Repeat("abcdefgh", 24+i%3), | ||||
| 				}, | ||||
| 			}, | ||||
| 		} | ||||
|   | ||||
| @@ -27,7 +27,7 @@ import ( | ||||
| ) | ||||
|  | ||||
| var ( | ||||
| 	systemPriority      = int32(scheduling.SystemCriticalPriority) | ||||
| 	systemPriority      = scheduling.SystemCriticalPriority | ||||
| 	systemPriorityUpper = systemPriority + 1000 | ||||
| ) | ||||
|  | ||||
|   | ||||
		Reference in New Issue
	
	Block a user
	 mantuliu
					mantuliu