From 3bd985ceeeb260420cdbed79910aece17d7527d8 Mon Sep 17 00:00:00 2001 From: Klaus Ma Date: Sat, 16 Mar 2019 09:22:51 +0800 Subject: [PATCH] Fixed code fmt. Signed-off-by: Klaus Ma --- hack/update-gencode.sh | 0 pkg/client/clientset/versioned/clientset.go | 6 +++--- .../clientset/versioned/fake/clientset_generated.go | 12 ++++++------ pkg/client/clientset/versioned/fake/register.go | 6 +++--- pkg/client/clientset/versioned/scheme/doc.go | 2 +- pkg/client/clientset/versioned/scheme/register.go | 6 +++--- .../versioned/typed/batch/v1alpha1/batch_client.go | 6 +++--- .../versioned/typed/batch/v1alpha1/fake/doc.go | 2 +- .../typed/batch/v1alpha1/fake/fake_batch_client.go | 4 ++-- .../versioned/typed/batch/v1alpha1/fake/fake_job.go | 4 ++-- .../clientset/versioned/typed/batch/v1alpha1/job.go | 3 +-- .../versioned/typed/bus/v1alpha1/bus_client.go | 6 +++--- .../versioned/typed/bus/v1alpha1/command.go | 3 +-- .../versioned/typed/bus/v1alpha1/fake/doc.go | 2 +- .../typed/bus/v1alpha1/fake/fake_bus_client.go | 4 ++-- .../typed/bus/v1alpha1/fake/fake_command.go | 4 ++-- .../informers/externalversions/batch/interface.go | 2 +- .../externalversions/batch/v1alpha1/interface.go | 2 +- .../informers/externalversions/batch/v1alpha1/job.go | 10 +++++----- .../informers/externalversions/bus/interface.go | 2 +- .../externalversions/bus/v1alpha1/command.go | 8 ++++---- .../externalversions/bus/v1alpha1/interface.go | 2 +- pkg/client/informers/externalversions/factory.go | 10 +++++----- pkg/client/informers/externalversions/generic.go | 4 ++-- .../internalinterfaces/factory_interfaces.go | 2 +- pkg/client/listers/bus/v1alpha1/command.go | 1 - pkg/controllers/job/job_controller.go | 1 - pkg/scheduler/algorithm/factory.go | 3 +-- 28 files changed, 56 insertions(+), 61 deletions(-) mode change 100644 => 100755 hack/update-gencode.sh diff --git a/hack/update-gencode.sh b/hack/update-gencode.sh old mode 100644 new mode 100755 diff --git a/pkg/client/clientset/versioned/clientset.go b/pkg/client/clientset/versioned/clientset.go index 4a6ccb0958..2de59112aa 100644 --- a/pkg/client/clientset/versioned/clientset.go +++ b/pkg/client/clientset/versioned/clientset.go @@ -1,5 +1,5 @@ /* -Copyright The Kubernetes Authors. +Copyright 2019 The Volcano Authors. Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except in compliance with the License. @@ -19,11 +19,11 @@ limitations under the License. package versioned import ( - batchv1alpha1 "volcano.sh/volcano/pkg/client/clientset/versioned/typed/batch/v1alpha1" - busv1alpha1 "volcano.sh/volcano/pkg/client/clientset/versioned/typed/bus/v1alpha1" discovery "k8s.io/client-go/discovery" rest "k8s.io/client-go/rest" flowcontrol "k8s.io/client-go/util/flowcontrol" + batchv1alpha1 "volcano.sh/volcano/pkg/client/clientset/versioned/typed/batch/v1alpha1" + busv1alpha1 "volcano.sh/volcano/pkg/client/clientset/versioned/typed/bus/v1alpha1" ) type Interface interface { diff --git a/pkg/client/clientset/versioned/fake/clientset_generated.go b/pkg/client/clientset/versioned/fake/clientset_generated.go index f7aea02006..7884394f16 100644 --- a/pkg/client/clientset/versioned/fake/clientset_generated.go +++ b/pkg/client/clientset/versioned/fake/clientset_generated.go @@ -1,5 +1,5 @@ /* -Copyright The Kubernetes Authors. +Copyright 2019 The Volcano Authors. Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except in compliance with the License. @@ -19,16 +19,16 @@ limitations under the License. package fake import ( - clientset "volcano.sh/volcano/pkg/client/clientset/versioned" - batchv1alpha1 "volcano.sh/volcano/pkg/client/clientset/versioned/typed/batch/v1alpha1" - fakebatchv1alpha1 "volcano.sh/volcano/pkg/client/clientset/versioned/typed/batch/v1alpha1/fake" - busv1alpha1 "volcano.sh/volcano/pkg/client/clientset/versioned/typed/bus/v1alpha1" - fakebusv1alpha1 "volcano.sh/volcano/pkg/client/clientset/versioned/typed/bus/v1alpha1/fake" "k8s.io/apimachinery/pkg/runtime" "k8s.io/apimachinery/pkg/watch" "k8s.io/client-go/discovery" fakediscovery "k8s.io/client-go/discovery/fake" "k8s.io/client-go/testing" + clientset "volcano.sh/volcano/pkg/client/clientset/versioned" + batchv1alpha1 "volcano.sh/volcano/pkg/client/clientset/versioned/typed/batch/v1alpha1" + fakebatchv1alpha1 "volcano.sh/volcano/pkg/client/clientset/versioned/typed/batch/v1alpha1/fake" + busv1alpha1 "volcano.sh/volcano/pkg/client/clientset/versioned/typed/bus/v1alpha1" + fakebusv1alpha1 "volcano.sh/volcano/pkg/client/clientset/versioned/typed/bus/v1alpha1/fake" ) // NewSimpleClientset returns a clientset that will respond with the provided objects. diff --git a/pkg/client/clientset/versioned/fake/register.go b/pkg/client/clientset/versioned/fake/register.go index c066e79259..52f2825082 100644 --- a/pkg/client/clientset/versioned/fake/register.go +++ b/pkg/client/clientset/versioned/fake/register.go @@ -1,5 +1,5 @@ /* -Copyright The Kubernetes Authors. +Copyright 2019 The Volcano Authors. Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except in compliance with the License. @@ -19,13 +19,13 @@ limitations under the License. package fake import ( - batchv1alpha1 "volcano.sh/volcano/pkg/apis/batch/v1alpha1" - busv1alpha1 "volcano.sh/volcano/pkg/apis/bus/v1alpha1" v1 "k8s.io/apimachinery/pkg/apis/meta/v1" runtime "k8s.io/apimachinery/pkg/runtime" schema "k8s.io/apimachinery/pkg/runtime/schema" serializer "k8s.io/apimachinery/pkg/runtime/serializer" utilruntime "k8s.io/apimachinery/pkg/util/runtime" + batchv1alpha1 "volcano.sh/volcano/pkg/apis/batch/v1alpha1" + busv1alpha1 "volcano.sh/volcano/pkg/apis/bus/v1alpha1" ) var scheme = runtime.NewScheme() diff --git a/pkg/client/clientset/versioned/scheme/doc.go b/pkg/client/clientset/versioned/scheme/doc.go index 7dc3756168..28f2c1e4db 100644 --- a/pkg/client/clientset/versioned/scheme/doc.go +++ b/pkg/client/clientset/versioned/scheme/doc.go @@ -1,5 +1,5 @@ /* -Copyright The Kubernetes Authors. +Copyright 2019 The Volcano Authors. Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except in compliance with the License. diff --git a/pkg/client/clientset/versioned/scheme/register.go b/pkg/client/clientset/versioned/scheme/register.go index 8b7cd60d9b..8c6f2d3d60 100644 --- a/pkg/client/clientset/versioned/scheme/register.go +++ b/pkg/client/clientset/versioned/scheme/register.go @@ -1,5 +1,5 @@ /* -Copyright The Kubernetes Authors. +Copyright 2019 The Volcano Authors. Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except in compliance with the License. @@ -19,13 +19,13 @@ limitations under the License. package scheme import ( - batchv1alpha1 "volcano.sh/volcano/pkg/apis/batch/v1alpha1" - busv1alpha1 "volcano.sh/volcano/pkg/apis/bus/v1alpha1" v1 "k8s.io/apimachinery/pkg/apis/meta/v1" runtime "k8s.io/apimachinery/pkg/runtime" schema "k8s.io/apimachinery/pkg/runtime/schema" serializer "k8s.io/apimachinery/pkg/runtime/serializer" utilruntime "k8s.io/apimachinery/pkg/util/runtime" + batchv1alpha1 "volcano.sh/volcano/pkg/apis/batch/v1alpha1" + busv1alpha1 "volcano.sh/volcano/pkg/apis/bus/v1alpha1" ) var Scheme = runtime.NewScheme() diff --git a/pkg/client/clientset/versioned/typed/batch/v1alpha1/batch_client.go b/pkg/client/clientset/versioned/typed/batch/v1alpha1/batch_client.go index 6bcff17360..3d300d9d4a 100644 --- a/pkg/client/clientset/versioned/typed/batch/v1alpha1/batch_client.go +++ b/pkg/client/clientset/versioned/typed/batch/v1alpha1/batch_client.go @@ -1,5 +1,5 @@ /* -Copyright The Kubernetes Authors. +Copyright 2019 The Volcano Authors. Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except in compliance with the License. @@ -19,10 +19,10 @@ limitations under the License. package v1alpha1 import ( - v1alpha1 "volcano.sh/volcano/pkg/apis/batch/v1alpha1" - "volcano.sh/volcano/pkg/client/clientset/versioned/scheme" serializer "k8s.io/apimachinery/pkg/runtime/serializer" rest "k8s.io/client-go/rest" + v1alpha1 "volcano.sh/volcano/pkg/apis/batch/v1alpha1" + "volcano.sh/volcano/pkg/client/clientset/versioned/scheme" ) type BatchV1alpha1Interface interface { diff --git a/pkg/client/clientset/versioned/typed/batch/v1alpha1/fake/doc.go b/pkg/client/clientset/versioned/typed/batch/v1alpha1/fake/doc.go index 16f4439906..8a62b8ba7b 100644 --- a/pkg/client/clientset/versioned/typed/batch/v1alpha1/fake/doc.go +++ b/pkg/client/clientset/versioned/typed/batch/v1alpha1/fake/doc.go @@ -1,5 +1,5 @@ /* -Copyright The Kubernetes Authors. +Copyright 2019 The Volcano Authors. Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except in compliance with the License. diff --git a/pkg/client/clientset/versioned/typed/batch/v1alpha1/fake/fake_batch_client.go b/pkg/client/clientset/versioned/typed/batch/v1alpha1/fake/fake_batch_client.go index 202e069fd1..31a200f336 100644 --- a/pkg/client/clientset/versioned/typed/batch/v1alpha1/fake/fake_batch_client.go +++ b/pkg/client/clientset/versioned/typed/batch/v1alpha1/fake/fake_batch_client.go @@ -1,5 +1,5 @@ /* -Copyright The Kubernetes Authors. +Copyright 2019 The Volcano Authors. Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except in compliance with the License. @@ -19,9 +19,9 @@ limitations under the License. package fake import ( - v1alpha1 "volcano.sh/volcano/pkg/client/clientset/versioned/typed/batch/v1alpha1" rest "k8s.io/client-go/rest" testing "k8s.io/client-go/testing" + v1alpha1 "volcano.sh/volcano/pkg/client/clientset/versioned/typed/batch/v1alpha1" ) type FakeBatchV1alpha1 struct { diff --git a/pkg/client/clientset/versioned/typed/batch/v1alpha1/fake/fake_job.go b/pkg/client/clientset/versioned/typed/batch/v1alpha1/fake/fake_job.go index 3b29cb8644..f77a4907b2 100644 --- a/pkg/client/clientset/versioned/typed/batch/v1alpha1/fake/fake_job.go +++ b/pkg/client/clientset/versioned/typed/batch/v1alpha1/fake/fake_job.go @@ -1,5 +1,5 @@ /* -Copyright The Kubernetes Authors. +Copyright 2019 The Volcano Authors. Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except in compliance with the License. @@ -19,13 +19,13 @@ limitations under the License. package fake import ( - v1alpha1 "volcano.sh/volcano/pkg/apis/batch/v1alpha1" v1 "k8s.io/apimachinery/pkg/apis/meta/v1" labels "k8s.io/apimachinery/pkg/labels" schema "k8s.io/apimachinery/pkg/runtime/schema" types "k8s.io/apimachinery/pkg/types" watch "k8s.io/apimachinery/pkg/watch" testing "k8s.io/client-go/testing" + v1alpha1 "volcano.sh/volcano/pkg/apis/batch/v1alpha1" ) // FakeJobs implements JobInterface diff --git a/pkg/client/clientset/versioned/typed/batch/v1alpha1/job.go b/pkg/client/clientset/versioned/typed/batch/v1alpha1/job.go index bb47bd1015..9449db5c0a 100644 --- a/pkg/client/clientset/versioned/typed/batch/v1alpha1/job.go +++ b/pkg/client/clientset/versioned/typed/batch/v1alpha1/job.go @@ -1,5 +1,5 @@ /* -Copyright The Kubernetes Authors. +Copyright 2019 The Volcano Authors. Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except in compliance with the License. @@ -25,7 +25,6 @@ import ( types "k8s.io/apimachinery/pkg/types" watch "k8s.io/apimachinery/pkg/watch" rest "k8s.io/client-go/rest" - v1alpha1 "volcano.sh/volcano/pkg/apis/batch/v1alpha1" scheme "volcano.sh/volcano/pkg/client/clientset/versioned/scheme" ) diff --git a/pkg/client/clientset/versioned/typed/bus/v1alpha1/bus_client.go b/pkg/client/clientset/versioned/typed/bus/v1alpha1/bus_client.go index f55ced0107..997355ed14 100644 --- a/pkg/client/clientset/versioned/typed/bus/v1alpha1/bus_client.go +++ b/pkg/client/clientset/versioned/typed/bus/v1alpha1/bus_client.go @@ -1,5 +1,5 @@ /* -Copyright The Kubernetes Authors. +Copyright 2019 The Volcano Authors. Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except in compliance with the License. @@ -19,10 +19,10 @@ limitations under the License. package v1alpha1 import ( - v1alpha1 "volcano.sh/volcano/pkg/apis/bus/v1alpha1" - "volcano.sh/volcano/pkg/client/clientset/versioned/scheme" serializer "k8s.io/apimachinery/pkg/runtime/serializer" rest "k8s.io/client-go/rest" + v1alpha1 "volcano.sh/volcano/pkg/apis/bus/v1alpha1" + "volcano.sh/volcano/pkg/client/clientset/versioned/scheme" ) type BusV1alpha1Interface interface { diff --git a/pkg/client/clientset/versioned/typed/bus/v1alpha1/command.go b/pkg/client/clientset/versioned/typed/bus/v1alpha1/command.go index 3613296c0e..840063ce6d 100644 --- a/pkg/client/clientset/versioned/typed/bus/v1alpha1/command.go +++ b/pkg/client/clientset/versioned/typed/bus/v1alpha1/command.go @@ -1,5 +1,5 @@ /* -Copyright The Kubernetes Authors. +Copyright 2019 The Volcano Authors. Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except in compliance with the License. @@ -25,7 +25,6 @@ import ( types "k8s.io/apimachinery/pkg/types" watch "k8s.io/apimachinery/pkg/watch" rest "k8s.io/client-go/rest" - v1alpha1 "volcano.sh/volcano/pkg/apis/bus/v1alpha1" scheme "volcano.sh/volcano/pkg/client/clientset/versioned/scheme" ) diff --git a/pkg/client/clientset/versioned/typed/bus/v1alpha1/fake/doc.go b/pkg/client/clientset/versioned/typed/bus/v1alpha1/fake/doc.go index 16f4439906..8a62b8ba7b 100644 --- a/pkg/client/clientset/versioned/typed/bus/v1alpha1/fake/doc.go +++ b/pkg/client/clientset/versioned/typed/bus/v1alpha1/fake/doc.go @@ -1,5 +1,5 @@ /* -Copyright The Kubernetes Authors. +Copyright 2019 The Volcano Authors. Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except in compliance with the License. diff --git a/pkg/client/clientset/versioned/typed/bus/v1alpha1/fake/fake_bus_client.go b/pkg/client/clientset/versioned/typed/bus/v1alpha1/fake/fake_bus_client.go index b35cbc3651..cdc2f139ac 100644 --- a/pkg/client/clientset/versioned/typed/bus/v1alpha1/fake/fake_bus_client.go +++ b/pkg/client/clientset/versioned/typed/bus/v1alpha1/fake/fake_bus_client.go @@ -1,5 +1,5 @@ /* -Copyright The Kubernetes Authors. +Copyright 2019 The Volcano Authors. Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except in compliance with the License. @@ -19,9 +19,9 @@ limitations under the License. package fake import ( - v1alpha1 "volcano.sh/volcano/pkg/client/clientset/versioned/typed/bus/v1alpha1" rest "k8s.io/client-go/rest" testing "k8s.io/client-go/testing" + v1alpha1 "volcano.sh/volcano/pkg/client/clientset/versioned/typed/bus/v1alpha1" ) type FakeBusV1alpha1 struct { diff --git a/pkg/client/clientset/versioned/typed/bus/v1alpha1/fake/fake_command.go b/pkg/client/clientset/versioned/typed/bus/v1alpha1/fake/fake_command.go index e927b2e0e6..01a97b53ae 100644 --- a/pkg/client/clientset/versioned/typed/bus/v1alpha1/fake/fake_command.go +++ b/pkg/client/clientset/versioned/typed/bus/v1alpha1/fake/fake_command.go @@ -1,5 +1,5 @@ /* -Copyright The Kubernetes Authors. +Copyright 2019 The Volcano Authors. Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except in compliance with the License. @@ -19,13 +19,13 @@ limitations under the License. package fake import ( - v1alpha1 "volcano.sh/volcano/pkg/apis/bus/v1alpha1" v1 "k8s.io/apimachinery/pkg/apis/meta/v1" labels "k8s.io/apimachinery/pkg/labels" schema "k8s.io/apimachinery/pkg/runtime/schema" types "k8s.io/apimachinery/pkg/types" watch "k8s.io/apimachinery/pkg/watch" testing "k8s.io/client-go/testing" + v1alpha1 "volcano.sh/volcano/pkg/apis/bus/v1alpha1" ) // FakeCommands implements CommandInterface diff --git a/pkg/client/informers/externalversions/batch/interface.go b/pkg/client/informers/externalversions/batch/interface.go index fd5bd247c5..eef8e86576 100644 --- a/pkg/client/informers/externalversions/batch/interface.go +++ b/pkg/client/informers/externalversions/batch/interface.go @@ -1,5 +1,5 @@ /* -Copyright The Kubernetes Authors. +Copyright 2019 The Volcano Authors. Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except in compliance with the License. diff --git a/pkg/client/informers/externalversions/batch/v1alpha1/interface.go b/pkg/client/informers/externalversions/batch/v1alpha1/interface.go index 62993644c7..a19d74da0c 100644 --- a/pkg/client/informers/externalversions/batch/v1alpha1/interface.go +++ b/pkg/client/informers/externalversions/batch/v1alpha1/interface.go @@ -1,5 +1,5 @@ /* -Copyright The Kubernetes Authors. +Copyright 2019 The Volcano Authors. Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except in compliance with the License. diff --git a/pkg/client/informers/externalversions/batch/v1alpha1/job.go b/pkg/client/informers/externalversions/batch/v1alpha1/job.go index 5f0de0ada1..76d7889ca7 100644 --- a/pkg/client/informers/externalversions/batch/v1alpha1/job.go +++ b/pkg/client/informers/externalversions/batch/v1alpha1/job.go @@ -1,5 +1,5 @@ /* -Copyright The Kubernetes Authors. +Copyright 2019 The Volcano Authors. Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except in compliance with the License. @@ -21,14 +21,14 @@ package v1alpha1 import ( time "time" - batchv1alpha1 "volcano.sh/volcano/pkg/apis/batch/v1alpha1" - versioned "volcano.sh/volcano/pkg/client/clientset/versioned" - internalinterfaces "volcano.sh/volcano/pkg/client/informers/externalversions/internalinterfaces" - v1alpha1 "volcano.sh/volcano/pkg/client/listers/batch/v1alpha1" v1 "k8s.io/apimachinery/pkg/apis/meta/v1" runtime "k8s.io/apimachinery/pkg/runtime" watch "k8s.io/apimachinery/pkg/watch" cache "k8s.io/client-go/tools/cache" + batchv1alpha1 "volcano.sh/volcano/pkg/apis/batch/v1alpha1" + versioned "volcano.sh/volcano/pkg/client/clientset/versioned" + internalinterfaces "volcano.sh/volcano/pkg/client/informers/externalversions/internalinterfaces" + v1alpha1 "volcano.sh/volcano/pkg/client/listers/batch/v1alpha1" ) // JobInformer provides access to a shared informer and lister for diff --git a/pkg/client/informers/externalversions/bus/interface.go b/pkg/client/informers/externalversions/bus/interface.go index 71cf1fb3eb..57b8d219fe 100644 --- a/pkg/client/informers/externalversions/bus/interface.go +++ b/pkg/client/informers/externalversions/bus/interface.go @@ -1,5 +1,5 @@ /* -Copyright The Kubernetes Authors. +Copyright 2019 The Volcano Authors. Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except in compliance with the License. diff --git a/pkg/client/informers/externalversions/bus/v1alpha1/command.go b/pkg/client/informers/externalversions/bus/v1alpha1/command.go index 050c06bbf7..a18f5f0f0a 100644 --- a/pkg/client/informers/externalversions/bus/v1alpha1/command.go +++ b/pkg/client/informers/externalversions/bus/v1alpha1/command.go @@ -21,14 +21,14 @@ package v1alpha1 import ( time "time" - busv1alpha1 "volcano.sh/volcano/pkg/apis/bus/v1alpha1" - versioned "volcano.sh/volcano/pkg/client/clientset/versioned" - internalinterfaces "volcano.sh/volcano/pkg/client/informers/externalversions/internalinterfaces" - v1alpha1 "volcano.sh/volcano/pkg/client/listers/bus/v1alpha1" v1 "k8s.io/apimachinery/pkg/apis/meta/v1" runtime "k8s.io/apimachinery/pkg/runtime" watch "k8s.io/apimachinery/pkg/watch" cache "k8s.io/client-go/tools/cache" + busv1alpha1 "volcano.sh/volcano/pkg/apis/bus/v1alpha1" + versioned "volcano.sh/volcano/pkg/client/clientset/versioned" + internalinterfaces "volcano.sh/volcano/pkg/client/informers/externalversions/internalinterfaces" + v1alpha1 "volcano.sh/volcano/pkg/client/listers/bus/v1alpha1" ) // CommandInformer provides access to a shared informer and lister for diff --git a/pkg/client/informers/externalversions/bus/v1alpha1/interface.go b/pkg/client/informers/externalversions/bus/v1alpha1/interface.go index a151bced60..aa9615868f 100644 --- a/pkg/client/informers/externalversions/bus/v1alpha1/interface.go +++ b/pkg/client/informers/externalversions/bus/v1alpha1/interface.go @@ -1,5 +1,5 @@ /* -Copyright The Kubernetes Authors. +Copyright 2019 The Volcano Authors. Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except in compliance with the License. diff --git a/pkg/client/informers/externalversions/factory.go b/pkg/client/informers/externalversions/factory.go index ae42554f85..da45747f4a 100644 --- a/pkg/client/informers/externalversions/factory.go +++ b/pkg/client/informers/externalversions/factory.go @@ -1,5 +1,5 @@ /* -Copyright The Kubernetes Authors. +Copyright 2019 The Volcano Authors. Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except in compliance with the License. @@ -23,14 +23,14 @@ import ( sync "sync" time "time" - versioned "volcano.sh/volcano/pkg/client/clientset/versioned" - batch "volcano.sh/volcano/pkg/client/informers/externalversions/batch" - bus "volcano.sh/volcano/pkg/client/informers/externalversions/bus" - internalinterfaces "volcano.sh/volcano/pkg/client/informers/externalversions/internalinterfaces" v1 "k8s.io/apimachinery/pkg/apis/meta/v1" runtime "k8s.io/apimachinery/pkg/runtime" schema "k8s.io/apimachinery/pkg/runtime/schema" cache "k8s.io/client-go/tools/cache" + versioned "volcano.sh/volcano/pkg/client/clientset/versioned" + batch "volcano.sh/volcano/pkg/client/informers/externalversions/batch" + bus "volcano.sh/volcano/pkg/client/informers/externalversions/bus" + internalinterfaces "volcano.sh/volcano/pkg/client/informers/externalversions/internalinterfaces" ) // SharedInformerOption defines the functional option type for SharedInformerFactory. diff --git a/pkg/client/informers/externalversions/generic.go b/pkg/client/informers/externalversions/generic.go index 2b25eaa57a..d2505e1822 100644 --- a/pkg/client/informers/externalversions/generic.go +++ b/pkg/client/informers/externalversions/generic.go @@ -21,10 +21,10 @@ package externalversions import ( "fmt" - v1alpha1 "volcano.sh/volcano/pkg/apis/batch/v1alpha1" - busv1alpha1 "volcano.sh/volcano/pkg/apis/bus/v1alpha1" schema "k8s.io/apimachinery/pkg/runtime/schema" cache "k8s.io/client-go/tools/cache" + v1alpha1 "volcano.sh/volcano/pkg/apis/batch/v1alpha1" + busv1alpha1 "volcano.sh/volcano/pkg/apis/bus/v1alpha1" ) // GenericInformer is type of SharedIndexInformer which will locate and delegate to other diff --git a/pkg/client/informers/externalversions/internalinterfaces/factory_interfaces.go b/pkg/client/informers/externalversions/internalinterfaces/factory_interfaces.go index dd28ecd9dd..de20b86ead 100644 --- a/pkg/client/informers/externalversions/internalinterfaces/factory_interfaces.go +++ b/pkg/client/informers/externalversions/internalinterfaces/factory_interfaces.go @@ -21,10 +21,10 @@ package internalinterfaces import ( time "time" - versioned "volcano.sh/volcano/pkg/client/clientset/versioned" v1 "k8s.io/apimachinery/pkg/apis/meta/v1" runtime "k8s.io/apimachinery/pkg/runtime" cache "k8s.io/client-go/tools/cache" + versioned "volcano.sh/volcano/pkg/client/clientset/versioned" ) // NewInformerFunc takes versioned.Interface and time.Duration to return a SharedIndexInformer. diff --git a/pkg/client/listers/bus/v1alpha1/command.go b/pkg/client/listers/bus/v1alpha1/command.go index d8680a12c9..c855769a7f 100644 --- a/pkg/client/listers/bus/v1alpha1/command.go +++ b/pkg/client/listers/bus/v1alpha1/command.go @@ -22,7 +22,6 @@ import ( "k8s.io/apimachinery/pkg/api/errors" "k8s.io/apimachinery/pkg/labels" "k8s.io/client-go/tools/cache" - v1alpha1 "volcano.sh/volcano/pkg/apis/bus/v1alpha1" ) diff --git a/pkg/controllers/job/job_controller.go b/pkg/controllers/job/job_controller.go index f425d2a076..ca6e8e4377 100644 --- a/pkg/controllers/job/job_controller.go +++ b/pkg/controllers/job/job_controller.go @@ -263,4 +263,3 @@ func (cc *Controller) worker() { // If no error, forget it. cc.queue.Forget(req) } - diff --git a/pkg/scheduler/algorithm/factory.go b/pkg/scheduler/algorithm/factory.go index 4f224966db..b68b108524 100644 --- a/pkg/scheduler/algorithm/factory.go +++ b/pkg/scheduler/algorithm/factory.go @@ -17,7 +17,6 @@ limitations under the License. package algorithm import ( - "github.com/kubernetes-sigs/kube-batch/pkg/scheduler/framework" // Import default actions/plugins. _ "github.com/kubernetes-sigs/kube-batch/pkg/scheduler/actions" @@ -28,4 +27,4 @@ import ( func init() { framework.RegisterPluginBuilder("fairshare", fairshare.New) -} \ No newline at end of file +}