mirror of
				https://github.com/optim-enterprises-bv/kubernetes.git
				synced 2025-11-04 04:08:16 +00:00 
			
		
		
		
	should use time.Since instead of time.Now().Sub
This commit is contained in:
		@@ -560,7 +560,7 @@ func (dc *DeploymentController) syncDeployment(key string) error {
 | 
				
			|||||||
	startTime := time.Now()
 | 
						startTime := time.Now()
 | 
				
			||||||
	glog.V(4).Infof("Started syncing deployment %q (%v)", key, startTime)
 | 
						glog.V(4).Infof("Started syncing deployment %q (%v)", key, startTime)
 | 
				
			||||||
	defer func() {
 | 
						defer func() {
 | 
				
			||||||
		glog.V(4).Infof("Finished syncing deployment %q (%v)", key, time.Now().Sub(startTime))
 | 
							glog.V(4).Infof("Finished syncing deployment %q (%v)", key, time.Since(startTime))
 | 
				
			||||||
	}()
 | 
						}()
 | 
				
			||||||
 | 
					
 | 
				
			||||||
	namespace, name, err := cache.SplitMetaNamespaceKey(key)
 | 
						namespace, name, err := cache.SplitMetaNamespaceKey(key)
 | 
				
			||||||
 
 | 
				
			|||||||
@@ -123,7 +123,7 @@ var _ = framework.KubeDescribe("Cluster size autoscaler scalability [Slow]", fun
 | 
				
			|||||||
			}
 | 
								}
 | 
				
			||||||
			break
 | 
								break
 | 
				
			||||||
		}
 | 
							}
 | 
				
			||||||
		glog.Infof("Made nodes schedulable again in %v", time.Now().Sub(s).String())
 | 
							glog.Infof("Made nodes schedulable again in %v", time.Since(s).String())
 | 
				
			||||||
	})
 | 
						})
 | 
				
			||||||
 | 
					
 | 
				
			||||||
	It("should scale up at all [Feature:ClusterAutoscalerScalability1]", func() {
 | 
						It("should scale up at all [Feature:ClusterAutoscalerScalability1]", func() {
 | 
				
			||||||
 
 | 
				
			|||||||
@@ -145,7 +145,7 @@ var _ = SIGDescribe("Cluster size autoscaling [Slow]", func() {
 | 
				
			|||||||
			}
 | 
								}
 | 
				
			||||||
			break
 | 
								break
 | 
				
			||||||
		}
 | 
							}
 | 
				
			||||||
		glog.Infof("Made nodes schedulable again in %v", time.Now().Sub(s).String())
 | 
							glog.Infof("Made nodes schedulable again in %v", time.Since(s).String())
 | 
				
			||||||
	})
 | 
						})
 | 
				
			||||||
 | 
					
 | 
				
			||||||
	It("shouldn't increase cluster size if pending pod is too large [Feature:ClusterSizeAutoscalingScaleUp]", func() {
 | 
						It("shouldn't increase cluster size if pending pod is too large [Feature:ClusterSizeAutoscalingScaleUp]", func() {
 | 
				
			||||||
 
 | 
				
			|||||||
		Reference in New Issue
	
	Block a user