Skip to content
Projects
Groups
Snippets
Help
This project
Loading...
Sign in / Register
Toggle navigation
K
k3s
Project
Project
Details
Activity
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Registry
Registry
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
Jacklull
k3s
Commits
fed85727
Commit
fed85727
authored
Jul 26, 2018
by
xushiwei 00425595
Committed by
wackxu
Jul 26, 2018
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
use apps/v1 version for scheduler
parent
85b8a23f
Hide whitespace changes
Inline
Side-by-side
Showing
12 changed files
with
35 additions
and
42 deletions
+35
-42
server.go
cmd/kube-scheduler/app/server.go
+2
-2
metadata_test.go
pkg/scheduler/algorithm/priorities/metadata_test.go
+2
-3
selector_spreading_test.go
...scheduler/algorithm/priorities/selector_spreading_test.go
+8
-9
types.go
pkg/scheduler/algorithm/types.go
+3
-4
compatibility_test.go
...cheduler/algorithmprovider/defaults/compatibility_test.go
+2
-2
generic_scheduler_test.go
pkg/scheduler/core/generic_scheduler_test.go
+3
-4
factory.go
pkg/scheduler/factory/factory.go
+4
-6
factory_test.go
pkg/scheduler/factory/factory_test.go
+2
-2
fake_lister.go
pkg/scheduler/testing/fake_lister.go
+3
-4
daemonset_test.go
test/integration/daemonset/daemonset_test.go
+2
-2
util.go
test/integration/scheduler/util.go
+2
-2
util.go
test/integration/util/util.go
+2
-2
No files found.
cmd/kube-scheduler/app/server.go
View file @
fed85727
...
...
@@ -295,8 +295,8 @@ func NewSchedulerConfig(s schedulerserverconfig.CompletedConfig) (*scheduler.Con
s
.
InformerFactory
.
Core
()
.
V1
()
.
PersistentVolumes
(),
s
.
InformerFactory
.
Core
()
.
V1
()
.
PersistentVolumeClaims
(),
s
.
InformerFactory
.
Core
()
.
V1
()
.
ReplicationControllers
(),
s
.
InformerFactory
.
Extensions
()
.
V1beta
1
()
.
ReplicaSets
(),
s
.
InformerFactory
.
Apps
()
.
V1
beta1
()
.
StatefulSets
(),
s
.
InformerFactory
.
Apps
()
.
V
1
()
.
ReplicaSets
(),
s
.
InformerFactory
.
Apps
()
.
V1
()
.
StatefulSets
(),
s
.
InformerFactory
.
Core
()
.
V1
()
.
Services
(),
s
.
InformerFactory
.
Policy
()
.
V1beta1
()
.
PodDisruptionBudgets
(),
storageClassInformer
,
...
...
pkg/scheduler/algorithm/priorities/metadata_test.go
View file @
fed85727
...
...
@@ -20,9 +20,8 @@ import (
"reflect"
"testing"
apps
"k8s.io/api/apps/v1
beta1
"
apps
"k8s.io/api/apps/v1"
"k8s.io/api/core/v1"
extensions
"k8s.io/api/extensions/v1beta1"
"k8s.io/apimachinery/pkg/api/resource"
metav1
"k8s.io/apimachinery/pkg/apis/meta/v1"
priorityutil
"k8s.io/kubernetes/pkg/scheduler/algorithm/priorities/util"
...
...
@@ -156,7 +155,7 @@ func TestPriorityMetadata(t *testing.T) {
mataDataProducer
:=
NewPriorityMetadataFactory
(
schedulertesting
.
FakeServiceLister
([]
*
v1
.
Service
{}),
schedulertesting
.
FakeControllerLister
([]
*
v1
.
ReplicationController
{}),
schedulertesting
.
FakeReplicaSetLister
([]
*
extension
s
.
ReplicaSet
{}),
schedulertesting
.
FakeReplicaSetLister
([]
*
app
s
.
ReplicaSet
{}),
schedulertesting
.
FakeStatefulSetLister
([]
*
apps
.
StatefulSet
{}))
for
_
,
test
:=
range
tests
{
t
.
Run
(
test
.
name
,
func
(
t
*
testing
.
T
)
{
...
...
pkg/scheduler/algorithm/priorities/selector_spreading_test.go
View file @
fed85727
...
...
@@ -21,9 +21,8 @@ import (
"sort"
"testing"
apps
"k8s.io/api/apps/v1
beta1
"
apps
"k8s.io/api/apps/v1"
"k8s.io/api/core/v1"
extensions
"k8s.io/api/extensions/v1beta1"
metav1
"k8s.io/apimachinery/pkg/apis/meta/v1"
kubeletapis
"k8s.io/kubernetes/pkg/kubelet/apis"
schedulerapi
"k8s.io/kubernetes/pkg/scheduler/api"
...
...
@@ -60,7 +59,7 @@ func TestSelectorSpreadPriority(t *testing.T) {
pods
[]
*
v1
.
Pod
nodes
[]
string
rcs
[]
*
v1
.
ReplicationController
rss
[]
*
extension
s
.
ReplicaSet
rss
[]
*
app
s
.
ReplicaSet
services
[]
*
v1
.
Service
sss
[]
*
apps
.
StatefulSet
expectedList
schedulerapi
.
HostPriorityList
...
...
@@ -200,7 +199,7 @@ func TestSelectorSpreadPriority(t *testing.T) {
},
nodes
:
[]
string
{
"machine1"
,
"machine2"
},
services
:
[]
*
v1
.
Service
{{
Spec
:
v1
.
ServiceSpec
{
Selector
:
map
[
string
]
string
{
"baz"
:
"blah"
}}}},
rss
:
[]
*
extensions
.
ReplicaSet
{{
Spec
:
extension
s
.
ReplicaSetSpec
{
Selector
:
&
metav1
.
LabelSelector
{
MatchLabels
:
map
[
string
]
string
{
"foo"
:
"bar"
}}}}},
rss
:
[]
*
apps
.
ReplicaSet
{{
Spec
:
app
s
.
ReplicaSetSpec
{
Selector
:
&
metav1
.
LabelSelector
{
MatchLabels
:
map
[
string
]
string
{
"foo"
:
"bar"
}}}}},
// We use ReplicaSet, instead of ReplicationController. The result should be exactly as above.
expectedList
:
[]
schedulerapi
.
HostPriority
{{
Host
:
"machine1"
,
Score
:
0
},
{
Host
:
"machine2"
,
Score
:
5
}},
name
:
"service with partial pod label matches with service and replica set"
,
...
...
@@ -241,7 +240,7 @@ func TestSelectorSpreadPriority(t *testing.T) {
},
nodes
:
[]
string
{
"machine1"
,
"machine2"
},
services
:
[]
*
v1
.
Service
{{
Spec
:
v1
.
ServiceSpec
{
Selector
:
map
[
string
]
string
{
"bar"
:
"foo"
}}}},
rss
:
[]
*
extensions
.
ReplicaSet
{{
Spec
:
extension
s
.
ReplicaSetSpec
{
Selector
:
&
metav1
.
LabelSelector
{
MatchLabels
:
map
[
string
]
string
{
"foo"
:
"bar"
}}}}},
rss
:
[]
*
apps
.
ReplicaSet
{{
Spec
:
app
s
.
ReplicaSetSpec
{
Selector
:
&
metav1
.
LabelSelector
{
MatchLabels
:
map
[
string
]
string
{
"foo"
:
"bar"
}}}}},
// We use ReplicaSet, instead of ReplicationController. The result should be exactly as above.
expectedList
:
[]
schedulerapi
.
HostPriority
{{
Host
:
"machine1"
,
Score
:
0
},
{
Host
:
"machine2"
,
Score
:
5
}},
name
:
"disjoined service and replica set should be treated equally"
,
...
...
@@ -280,7 +279,7 @@ func TestSelectorSpreadPriority(t *testing.T) {
{
Spec
:
zone2Spec
,
ObjectMeta
:
metav1
.
ObjectMeta
{
Labels
:
labels1
,
OwnerReferences
:
controllerRef
(
"ReplicaSet"
,
"name"
,
"abc123"
)}},
},
nodes
:
[]
string
{
"machine1"
,
"machine2"
},
rss
:
[]
*
extensions
.
ReplicaSet
{{
Spec
:
extension
s
.
ReplicaSetSpec
{
Selector
:
&
metav1
.
LabelSelector
{
MatchLabels
:
map
[
string
]
string
{
"foo"
:
"bar"
}}}}},
rss
:
[]
*
apps
.
ReplicaSet
{{
Spec
:
app
s
.
ReplicaSetSpec
{
Selector
:
&
metav1
.
LabelSelector
{
MatchLabels
:
map
[
string
]
string
{
"foo"
:
"bar"
}}}}},
// We use ReplicaSet, instead of ReplicationController. The result should be exactly as above.
expectedList
:
[]
schedulerapi
.
HostPriority
{{
Host
:
"machine1"
,
Score
:
0
},
{
Host
:
"machine2"
,
Score
:
0
}},
name
:
"Replica set with partial pod label matches"
,
...
...
@@ -318,7 +317,7 @@ func TestSelectorSpreadPriority(t *testing.T) {
{
Spec
:
zone2Spec
,
ObjectMeta
:
metav1
.
ObjectMeta
{
Labels
:
labels1
,
OwnerReferences
:
controllerRef
(
"ReplicaSet"
,
"name"
,
"abc123"
)}},
},
nodes
:
[]
string
{
"machine1"
,
"machine2"
},
rss
:
[]
*
extensions
.
ReplicaSet
{{
Spec
:
extension
s
.
ReplicaSetSpec
{
Selector
:
&
metav1
.
LabelSelector
{
MatchLabels
:
map
[
string
]
string
{
"baz"
:
"blah"
}}}}},
rss
:
[]
*
apps
.
ReplicaSet
{{
Spec
:
app
s
.
ReplicaSetSpec
{
Selector
:
&
metav1
.
LabelSelector
{
MatchLabels
:
map
[
string
]
string
{
"baz"
:
"blah"
}}}}},
// We use ReplicaSet, instead of ReplicationController. The result should be exactly as above.
expectedList
:
[]
schedulerapi
.
HostPriority
{{
Host
:
"machine1"
,
Score
:
0
},
{
Host
:
"machine2"
,
Score
:
5
}},
name
:
"Another replication set with partial pod label matches"
,
...
...
@@ -410,7 +409,7 @@ func TestZoneSelectorSpreadPriority(t *testing.T) {
pod
*
v1
.
Pod
pods
[]
*
v1
.
Pod
rcs
[]
*
v1
.
ReplicationController
rss
[]
*
extension
s
.
ReplicaSet
rss
[]
*
app
s
.
ReplicaSet
services
[]
*
v1
.
Service
sss
[]
*
apps
.
StatefulSet
expectedList
schedulerapi
.
HostPriorityList
...
...
@@ -764,7 +763,7 @@ func TestZoneSpreadPriority(t *testing.T) {
// when construct mataDataProducer
sss
:=
[]
*
apps
.
StatefulSet
{{
Spec
:
apps
.
StatefulSetSpec
{
Selector
:
&
metav1
.
LabelSelector
{
MatchLabels
:
map
[
string
]
string
{
"foo"
:
"bar"
}}}}}
rcs
:=
[]
*
v1
.
ReplicationController
{{
Spec
:
v1
.
ReplicationControllerSpec
{
Selector
:
map
[
string
]
string
{
"foo"
:
"bar"
}}}}
rss
:=
[]
*
extensions
.
ReplicaSet
{{
Spec
:
extension
s
.
ReplicaSetSpec
{
Selector
:
&
metav1
.
LabelSelector
{
MatchLabels
:
map
[
string
]
string
{
"foo"
:
"bar"
}}}}}
rss
:=
[]
*
apps
.
ReplicaSet
{{
Spec
:
app
s
.
ReplicaSetSpec
{
Selector
:
&
metav1
.
LabelSelector
{
MatchLabels
:
map
[
string
]
string
{
"foo"
:
"bar"
}}}}}
for
_
,
test
:=
range
tests
{
t
.
Run
(
test
.
name
,
func
(
t
*
testing
.
T
)
{
...
...
pkg/scheduler/algorithm/types.go
View file @
fed85727
...
...
@@ -17,9 +17,8 @@ limitations under the License.
package
algorithm
import
(
apps
"k8s.io/api/apps/v1
beta1
"
apps
"k8s.io/api/apps/v1"
"k8s.io/api/core/v1"
extensions
"k8s.io/api/extensions/v1beta1"
"k8s.io/apimachinery/pkg/labels"
schedulerapi
"k8s.io/kubernetes/pkg/scheduler/api"
schedulercache
"k8s.io/kubernetes/pkg/scheduler/cache"
...
...
@@ -120,7 +119,7 @@ type ControllerLister interface {
// ReplicaSetLister interface represents anything that can produce a list of ReplicaSet; the list is consumed by a scheduler.
type
ReplicaSetLister
interface
{
// Gets the replicasets for the given pod
GetPodReplicaSets
(
*
v1
.
Pod
)
([]
*
extension
s
.
ReplicaSet
,
error
)
GetPodReplicaSets
(
*
v1
.
Pod
)
([]
*
app
s
.
ReplicaSet
,
error
)
}
var
_
ControllerLister
=
&
EmptyControllerLister
{}
...
...
@@ -144,7 +143,7 @@ var _ ReplicaSetLister = &EmptyReplicaSetLister{}
type
EmptyReplicaSetLister
struct
{}
// GetPodReplicaSets returns nil
func
(
f
EmptyReplicaSetLister
)
GetPodReplicaSets
(
pod
*
v1
.
Pod
)
(
rss
[]
*
extension
s
.
ReplicaSet
,
err
error
)
{
func
(
f
EmptyReplicaSetLister
)
GetPodReplicaSets
(
pod
*
v1
.
Pod
)
(
rss
[]
*
app
s
.
ReplicaSet
,
err
error
)
{
return
nil
,
nil
}
...
...
pkg/scheduler/algorithmprovider/defaults/compatibility_test.go
View file @
fed85727
...
...
@@ -857,8 +857,8 @@ func TestCompatibility_v1_Scheduler(t *testing.T) {
informerFactory
.
Core
()
.
V1
()
.
PersistentVolumes
(),
informerFactory
.
Core
()
.
V1
()
.
PersistentVolumeClaims
(),
informerFactory
.
Core
()
.
V1
()
.
ReplicationControllers
(),
informerFactory
.
Extensions
()
.
V1beta
1
()
.
ReplicaSets
(),
informerFactory
.
Apps
()
.
V1
beta1
()
.
StatefulSets
(),
informerFactory
.
Apps
()
.
V
1
()
.
ReplicaSets
(),
informerFactory
.
Apps
()
.
V1
()
.
StatefulSets
(),
informerFactory
.
Core
()
.
V1
()
.
Services
(),
informerFactory
.
Policy
()
.
V1beta1
()
.
PodDisruptionBudgets
(),
informerFactory
.
Storage
()
.
V1
()
.
StorageClasses
(),
...
...
pkg/scheduler/core/generic_scheduler_test.go
View file @
fed85727
...
...
@@ -26,9 +26,8 @@ import (
"testing"
"time"
apps
"k8s.io/api/apps/v1
beta1
"
apps
"k8s.io/api/apps/v1"
"k8s.io/api/core/v1"
extensions
"k8s.io/api/extensions/v1beta1"
"k8s.io/apimachinery/pkg/api/resource"
metav1
"k8s.io/apimachinery/pkg/apis/meta/v1"
"k8s.io/apimachinery/pkg/types"
...
...
@@ -665,7 +664,7 @@ func TestZeroRequest(t *testing.T) {
selectorSpreadPriorityMap
,
selectorSpreadPriorityReduce
:=
algorithmpriorities
.
NewSelectorSpreadPriority
(
schedulertesting
.
FakeServiceLister
([]
*
v1
.
Service
{}),
schedulertesting
.
FakeControllerLister
([]
*
v1
.
ReplicationController
{}),
schedulertesting
.
FakeReplicaSetLister
([]
*
extension
s
.
ReplicaSet
{}),
schedulertesting
.
FakeReplicaSetLister
([]
*
app
s
.
ReplicaSet
{}),
schedulertesting
.
FakeStatefulSetLister
([]
*
apps
.
StatefulSet
{}))
pc
:=
algorithm
.
PriorityConfig
{
Map
:
selectorSpreadPriorityMap
,
Reduce
:
selectorSpreadPriorityReduce
,
Weight
:
1
}
priorityConfigs
=
append
(
priorityConfigs
,
pc
)
...
...
@@ -675,7 +674,7 @@ func TestZeroRequest(t *testing.T) {
mataDataProducer
:=
algorithmpriorities
.
NewPriorityMetadataFactory
(
schedulertesting
.
FakeServiceLister
([]
*
v1
.
Service
{}),
schedulertesting
.
FakeControllerLister
([]
*
v1
.
ReplicationController
{}),
schedulertesting
.
FakeReplicaSetLister
([]
*
extension
s
.
ReplicaSet
{}),
schedulertesting
.
FakeReplicaSetLister
([]
*
app
s
.
ReplicaSet
{}),
schedulertesting
.
FakeStatefulSetLister
([]
*
apps
.
StatefulSet
{}))
mataData
:=
mataDataProducer
(
test
.
pod
,
nodeNameToInfo
)
...
...
pkg/scheduler/factory/factory.go
View file @
fed85727
...
...
@@ -38,15 +38,13 @@ import (
"k8s.io/apimachinery/pkg/util/runtime"
"k8s.io/apimachinery/pkg/util/sets"
utilfeature
"k8s.io/apiserver/pkg/util/feature"
appsinformers
"k8s.io/client-go/informers/apps/v1
beta1
"
appsinformers
"k8s.io/client-go/informers/apps/v1"
coreinformers
"k8s.io/client-go/informers/core/v1"
extensionsinformers
"k8s.io/client-go/informers/extensions/v1beta1"
policyinformers
"k8s.io/client-go/informers/policy/v1beta1"
storageinformers
"k8s.io/client-go/informers/storage/v1"
clientset
"k8s.io/client-go/kubernetes"
appslisters
"k8s.io/client-go/listers/apps/v1
beta1
"
appslisters
"k8s.io/client-go/listers/apps/v1"
corelisters
"k8s.io/client-go/listers/core/v1"
extensionslisters
"k8s.io/client-go/listers/extensions/v1beta1"
policylisters
"k8s.io/client-go/listers/policy/v1beta1"
storagelisters
"k8s.io/client-go/listers/storage/v1"
"k8s.io/client-go/tools/cache"
...
...
@@ -99,7 +97,7 @@ type configFactory struct {
// a means to list all controllers
controllerLister
corelisters
.
ReplicationControllerLister
// a means to list all replicasets
replicaSetLister
extension
slisters
.
ReplicaSetLister
replicaSetLister
app
slisters
.
ReplicaSetLister
// a means to list all statefulsets
statefulSetLister
appslisters
.
StatefulSetLister
// a means to list all PodDisruptionBudgets
...
...
@@ -149,7 +147,7 @@ func NewConfigFactory(
pvInformer
coreinformers
.
PersistentVolumeInformer
,
pvcInformer
coreinformers
.
PersistentVolumeClaimInformer
,
replicationControllerInformer
coreinformers
.
ReplicationControllerInformer
,
replicaSetInformer
extension
sinformers
.
ReplicaSetInformer
,
replicaSetInformer
app
sinformers
.
ReplicaSetInformer
,
statefulSetInformer
appsinformers
.
StatefulSetInformer
,
serviceInformer
coreinformers
.
ServiceInformer
,
pdbInformer
policyinformers
.
PodDisruptionBudgetInformer
,
...
...
pkg/scheduler/factory/factory_test.go
View file @
fed85727
...
...
@@ -548,8 +548,8 @@ func newConfigFactory(client *clientset.Clientset, hardPodAffinitySymmetricWeigh
informerFactory
.
Core
()
.
V1
()
.
PersistentVolumes
(),
informerFactory
.
Core
()
.
V1
()
.
PersistentVolumeClaims
(),
informerFactory
.
Core
()
.
V1
()
.
ReplicationControllers
(),
informerFactory
.
Extensions
()
.
V1beta
1
()
.
ReplicaSets
(),
informerFactory
.
Apps
()
.
V1
beta1
()
.
StatefulSets
(),
informerFactory
.
Apps
()
.
V
1
()
.
ReplicaSets
(),
informerFactory
.
Apps
()
.
V1
()
.
StatefulSets
(),
informerFactory
.
Core
()
.
V1
()
.
Services
(),
informerFactory
.
Policy
()
.
V1beta1
()
.
PodDisruptionBudgets
(),
informerFactory
.
Storage
()
.
V1
()
.
StorageClasses
(),
...
...
pkg/scheduler/testing/fake_lister.go
View file @
fed85727
...
...
@@ -19,9 +19,8 @@ package testing
import
(
"fmt"
apps
"k8s.io/api/apps/v1
beta1
"
apps
"k8s.io/api/apps/v1"
"k8s.io/api/core/v1"
extensions
"k8s.io/api/extensions/v1beta1"
metav1
"k8s.io/apimachinery/pkg/apis/meta/v1"
"k8s.io/apimachinery/pkg/labels"
corelisters
"k8s.io/client-go/listers/core/v1"
...
...
@@ -126,10 +125,10 @@ func (f FakeControllerLister) GetPodControllers(pod *v1.Pod) (controllers []*v1.
var
_
algorithm
.
ReplicaSetLister
=
&
FakeReplicaSetLister
{}
// FakeReplicaSetLister implements ControllerLister on []extensions.ReplicaSet for test purposes.
type
FakeReplicaSetLister
[]
*
extension
s
.
ReplicaSet
type
FakeReplicaSetLister
[]
*
app
s
.
ReplicaSet
// GetPodReplicaSets gets the ReplicaSets that have the selector that match the labels on the given pod
func
(
f
FakeReplicaSetLister
)
GetPodReplicaSets
(
pod
*
v1
.
Pod
)
(
rss
[]
*
extension
s
.
ReplicaSet
,
err
error
)
{
func
(
f
FakeReplicaSetLister
)
GetPodReplicaSets
(
pod
*
v1
.
Pod
)
(
rss
[]
*
app
s
.
ReplicaSet
,
err
error
)
{
var
selector
labels
.
Selector
for
_
,
rs
:=
range
f
{
...
...
test/integration/daemonset/daemonset_test.go
View file @
fed85727
...
...
@@ -99,8 +99,8 @@ func setupScheduler(
informerFactory
.
Core
()
.
V1
()
.
PersistentVolumes
(),
informerFactory
.
Core
()
.
V1
()
.
PersistentVolumeClaims
(),
informerFactory
.
Core
()
.
V1
()
.
ReplicationControllers
(),
informerFactory
.
Extensions
()
.
V1beta
1
()
.
ReplicaSets
(),
informerFactory
.
Apps
()
.
V1
beta1
()
.
StatefulSets
(),
informerFactory
.
Apps
()
.
V
1
()
.
ReplicaSets
(),
informerFactory
.
Apps
()
.
V1
()
.
StatefulSets
(),
informerFactory
.
Core
()
.
V1
()
.
Services
(),
informerFactory
.
Policy
()
.
V1beta1
()
.
PodDisruptionBudgets
(),
informerFactory
.
Storage
()
.
V1
()
.
StorageClasses
(),
...
...
test/integration/scheduler/util.go
View file @
fed85727
...
...
@@ -82,8 +82,8 @@ func createConfiguratorWithPodInformer(
informerFactory
.
Core
()
.
V1
()
.
PersistentVolumes
(),
informerFactory
.
Core
()
.
V1
()
.
PersistentVolumeClaims
(),
informerFactory
.
Core
()
.
V1
()
.
ReplicationControllers
(),
informerFactory
.
Extensions
()
.
V1beta
1
()
.
ReplicaSets
(),
informerFactory
.
Apps
()
.
V1
beta1
()
.
StatefulSets
(),
informerFactory
.
Apps
()
.
V
1
()
.
ReplicaSets
(),
informerFactory
.
Apps
()
.
V1
()
.
StatefulSets
(),
informerFactory
.
Core
()
.
V1
()
.
Services
(),
informerFactory
.
Policy
()
.
V1beta1
()
.
PodDisruptionBudgets
(),
informerFactory
.
Storage
()
.
V1
()
.
StorageClasses
(),
...
...
test/integration/util/util.go
View file @
fed85727
...
...
@@ -105,8 +105,8 @@ func createSchedulerConfigurator(
informerFactory
.
Core
()
.
V1
()
.
PersistentVolumes
(),
informerFactory
.
Core
()
.
V1
()
.
PersistentVolumeClaims
(),
informerFactory
.
Core
()
.
V1
()
.
ReplicationControllers
(),
informerFactory
.
Extensions
()
.
V1beta
1
()
.
ReplicaSets
(),
informerFactory
.
Apps
()
.
V1
beta1
()
.
StatefulSets
(),
informerFactory
.
Apps
()
.
V
1
()
.
ReplicaSets
(),
informerFactory
.
Apps
()
.
V1
()
.
StatefulSets
(),
informerFactory
.
Core
()
.
V1
()
.
Services
(),
informerFactory
.
Policy
()
.
V1beta1
()
.
PodDisruptionBudgets
(),
informerFactory
.
Storage
()
.
V1
()
.
StorageClasses
(),
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment