mirror of
				https://github.com/optim-enterprises-bv/kubernetes.git
				synced 2025-10-31 10:18:13 +00:00 
			
		
		
		
	Fix staticcheck in pkg/controller/podgc
This commit is contained in:
		| @@ -7,7 +7,6 @@ pkg/controller/garbagecollector | |||||||
| pkg/controller/namespace/deletion | pkg/controller/namespace/deletion | ||||||
| pkg/controller/nodeipam | pkg/controller/nodeipam | ||||||
| pkg/controller/podautoscaler | pkg/controller/podautoscaler | ||||||
| pkg/controller/podgc |  | ||||||
| pkg/controller/replicaset | pkg/controller/replicaset | ||||||
| pkg/controller/resourcequota | pkg/controller/resourcequota | ||||||
| pkg/controller/statefulset | pkg/controller/statefulset | ||||||
|   | |||||||
| @@ -36,18 +36,6 @@ import ( | |||||||
| 	"k8s.io/kubernetes/pkg/controller/testutil" | 	"k8s.io/kubernetes/pkg/controller/testutil" | ||||||
| ) | ) | ||||||
|  |  | ||||||
| type FakeController struct{} |  | ||||||
|  |  | ||||||
| func (*FakeController) Run(<-chan struct{}) {} |  | ||||||
|  |  | ||||||
| func (*FakeController) HasSynced() bool { |  | ||||||
| 	return true |  | ||||||
| } |  | ||||||
|  |  | ||||||
| func (*FakeController) LastSyncResourceVersion() string { |  | ||||||
| 	return "" |  | ||||||
| } |  | ||||||
|  |  | ||||||
| func alwaysReady() bool { return true } | func alwaysReady() bool { return true } | ||||||
|  |  | ||||||
| func NewFromClient(kubeClient clientset.Interface, terminatedPodThreshold int) (*PodGCController, coreinformers.PodInformer, coreinformers.NodeInformer) { | func NewFromClient(kubeClient clientset.Interface, terminatedPodThreshold int) (*PodGCController, coreinformers.PodInformer, coreinformers.NodeInformer) { | ||||||
|   | |||||||
		Reference in New Issue
	
	Block a user
	 Kobayashi Daisuke
					Kobayashi Daisuke