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
01a87721
Commit
01a87721
authored
Nov 08, 2017
by
Michelle Au
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Scheduler volume cache plumbing and predicate invalidation
parent
fa6b62fa
Expand all
Hide whitespace changes
Inline
Side-by-side
Showing
17 changed files
with
226 additions
and
18 deletions
+226
-18
server.go
plugin/cmd/kube-scheduler/app/server.go
+7
-0
policy.go
plugin/pkg/auth/authorizer/rbac/bootstrappolicy/policy.go
+12
-0
compatibility_test.go
...cheduler/algorithmprovider/defaults/compatibility_test.go
+1
-0
extender_test.go
plugin/pkg/scheduler/core/extender_test.go
+1
-1
generic_scheduler.go
plugin/pkg/scheduler/core/generic_scheduler.go
+9
-2
generic_scheduler_test.go
plugin/pkg/scheduler/core/generic_scheduler_test.go
+2
-2
factory.go
plugin/pkg/scheduler/factory/factory.go
+98
-11
factory_test.go
plugin/pkg/scheduler/factory/factory_test.go
+7
-0
plugins.go
plugin/pkg/scheduler/factory/plugins.go
+3
-0
scheduler.go
plugin/pkg/scheduler/scheduler.go
+3
-0
scheduler_test.go
plugin/pkg/scheduler/scheduler_test.go
+4
-2
volume_binder.go
plugin/pkg/scheduler/volumebinder/volume_binder.go
+74
-0
extender_test.go
test/integration/scheduler/extender_test.go
+1
-0
scheduler_test.go
test/integration/scheduler/scheduler_test.go
+1
-0
taint_test.go
test/integration/scheduler/taint_test.go
+1
-0
util.go
test/integration/scheduler/util.go
+1
-0
util.go
test/integration/scheduler_perf/util.go
+1
-0
No files found.
plugin/cmd/kube-scheduler/app/server.go
View file @
01a87721
...
...
@@ -40,6 +40,7 @@ import (
utilfeature
"k8s.io/apiserver/pkg/util/feature"
"k8s.io/client-go/informers"
coreinformers
"k8s.io/client-go/informers/core/v1"
storageinformers
"k8s.io/client-go/informers/storage/v1"
clientset
"k8s.io/client-go/kubernetes"
v1core
"k8s.io/client-go/kubernetes/typed/core/v1"
restclient
"k8s.io/client-go/rest"
...
...
@@ -625,6 +626,11 @@ func (s *SchedulerServer) Run(stop chan struct{}) error {
// SchedulerConfig creates the scheduler configuration. This is exposed for use
// by tests.
func
(
s
*
SchedulerServer
)
SchedulerConfig
()
(
*
scheduler
.
Config
,
error
)
{
var
storageClassInformer
storageinformers
.
StorageClassInformer
if
utilfeature
.
DefaultFeatureGate
.
Enabled
(
features
.
VolumeScheduling
)
{
storageClassInformer
=
s
.
InformerFactory
.
Storage
()
.
V1
()
.
StorageClasses
()
}
// Set up the configurator which can create schedulers from configs.
configurator
:=
factory
.
NewConfigFactory
(
s
.
SchedulerName
,
...
...
@@ -638,6 +644,7 @@ func (s *SchedulerServer) SchedulerConfig() (*scheduler.Config, error) {
s
.
InformerFactory
.
Apps
()
.
V1beta1
()
.
StatefulSets
(),
s
.
InformerFactory
.
Core
()
.
V1
()
.
Services
(),
s
.
InformerFactory
.
Policy
()
.
V1beta1
()
.
PodDisruptionBudgets
(),
storageClassInformer
,
s
.
HardPodAffinitySymmetricWeight
,
utilfeature
.
DefaultFeatureGate
.
Enabled
(
features
.
EnableEquivalenceClassCache
),
)
...
...
plugin/pkg/auth/authorizer/rbac/bootstrappolicy/policy.go
View file @
01a87721
...
...
@@ -439,6 +439,18 @@ func ClusterRoles() []rbac.ClusterRole {
})
}
if
utilfeature
.
DefaultFeatureGate
.
Enabled
(
features
.
VolumeScheduling
)
{
// Find the scheduler role
for
i
,
role
:=
range
roles
{
if
role
.
Name
==
"system:kube-scheduler"
{
pvRule
:=
rbac
.
NewRule
(
"update"
)
.
Groups
(
legacyGroup
)
.
Resources
(
"persistentvolumes"
)
.
RuleOrDie
()
scRule
:=
rbac
.
NewRule
(
Read
...
)
.
Groups
(
storageGroup
)
.
Resources
(
"storageclasses"
)
.
RuleOrDie
()
roles
[
i
]
.
Rules
=
append
(
role
.
Rules
,
pvRule
,
scRule
)
break
}
}
}
addClusterRoleLabel
(
roles
)
return
roles
}
...
...
plugin/pkg/scheduler/algorithmprovider/defaults/compatibility_test.go
View file @
01a87721
...
...
@@ -506,6 +506,7 @@ func TestCompatibility_v1_Scheduler(t *testing.T) {
informerFactory
.
Apps
()
.
V1beta1
()
.
StatefulSets
(),
informerFactory
.
Core
()
.
V1
()
.
Services
(),
informerFactory
.
Policy
()
.
V1beta1
()
.
PodDisruptionBudgets
(),
informerFactory
.
Storage
()
.
V1
()
.
StorageClasses
(),
v1
.
DefaultHardPodAffinitySymmetricWeight
,
enableEquivalenceCache
,
)
.
CreateFromConfig
(
policy
);
err
!=
nil
{
...
...
plugin/pkg/scheduler/core/extender_test.go
View file @
01a87721
...
...
@@ -317,7 +317,7 @@ func TestGenericSchedulerWithExtenders(t *testing.T) {
}
queue
:=
NewSchedulingQueue
()
scheduler
:=
NewGenericScheduler
(
cache
,
nil
,
queue
,
test
.
predicates
,
algorithm
.
EmptyPredicateMetadataProducer
,
test
.
prioritizers
,
algorithm
.
EmptyMetadataProducer
,
extenders
)
cache
,
nil
,
queue
,
test
.
predicates
,
algorithm
.
EmptyPredicateMetadataProducer
,
test
.
prioritizers
,
algorithm
.
EmptyMetadataProducer
,
extenders
,
nil
)
podIgnored
:=
&
v1
.
Pod
{}
machine
,
err
:=
scheduler
.
Schedule
(
podIgnored
,
schedulertesting
.
FakeNodeLister
(
makeNodeList
(
test
.
nodes
)))
if
test
.
expectsErr
{
...
...
plugin/pkg/scheduler/core/generic_scheduler.go
View file @
01a87721
...
...
@@ -36,6 +36,7 @@ import (
"k8s.io/kubernetes/plugin/pkg/scheduler/util"
"github.com/golang/glog"
"k8s.io/kubernetes/plugin/pkg/scheduler/volumebinder"
)
type
FailedPredicateMap
map
[
string
][]
algorithm
.
PredicateFailureReason
...
...
@@ -91,6 +92,7 @@ type genericScheduler struct {
lastNodeIndex
uint64
cachedNodeInfoMap
map
[
string
]
*
schedulercache
.
NodeInfo
volumeBinder
*
volumebinder
.
VolumeBinder
}
// Schedule tries to schedule the given pod to one of node in the node list.
...
...
@@ -867,7 +869,10 @@ func nodesWherePreemptionMightHelp(pod *v1.Pod, nodes []*v1.Node, failedPredicat
predicates
.
ErrNodeNotReady
,
predicates
.
ErrNodeNetworkUnavailable
,
predicates
.
ErrNodeUnschedulable
,
predicates
.
ErrNodeUnknownCondition
:
predicates
.
ErrNodeUnknownCondition
,
predicates
.
ErrVolumeZoneConflict
,
predicates
.
ErrVolumeNodeConflict
,
predicates
.
ErrVolumeBindConflict
:
unresolvableReasonExist
=
true
break
// TODO(bsalamat): Please add affinity failure cases once we have specific affinity failure errors.
...
...
@@ -909,7 +914,8 @@ func NewGenericScheduler(
predicateMetaProducer
algorithm
.
PredicateMetadataProducer
,
prioritizers
[]
algorithm
.
PriorityConfig
,
priorityMetaProducer
algorithm
.
MetadataProducer
,
extenders
[]
algorithm
.
SchedulerExtender
)
algorithm
.
ScheduleAlgorithm
{
extenders
[]
algorithm
.
SchedulerExtender
,
volumeBinder
*
volumebinder
.
VolumeBinder
)
algorithm
.
ScheduleAlgorithm
{
return
&
genericScheduler
{
cache
:
cache
,
equivalenceCache
:
eCache
,
...
...
@@ -920,5 +926,6 @@ func NewGenericScheduler(
priorityMetaProducer
:
priorityMetaProducer
,
extenders
:
extenders
,
cachedNodeInfoMap
:
make
(
map
[
string
]
*
schedulercache
.
NodeInfo
),
volumeBinder
:
volumeBinder
,
}
}
plugin/pkg/scheduler/core/generic_scheduler_test.go
View file @
01a87721
...
...
@@ -311,7 +311,7 @@ func TestGenericScheduler(t *testing.T) {
}
scheduler
:=
NewGenericScheduler
(
cache
,
nil
,
NewSchedulingQueue
(),
test
.
predicates
,
algorithm
.
EmptyPredicateMetadataProducer
,
test
.
prioritizers
,
algorithm
.
EmptyMetadataProducer
,
[]
algorithm
.
SchedulerExtender
{})
cache
,
nil
,
NewSchedulingQueue
(),
test
.
predicates
,
algorithm
.
EmptyPredicateMetadataProducer
,
test
.
prioritizers
,
algorithm
.
EmptyMetadataProducer
,
[]
algorithm
.
SchedulerExtender
{}
,
nil
)
machine
,
err
:=
scheduler
.
Schedule
(
test
.
pod
,
schedulertesting
.
FakeNodeLister
(
makeNodeList
(
test
.
nodes
)))
if
!
reflect
.
DeepEqual
(
err
,
test
.
wErr
)
{
...
...
@@ -1190,7 +1190,7 @@ func TestPreempt(t *testing.T) {
extenders
=
append
(
extenders
,
extender
)
}
scheduler
:=
NewGenericScheduler
(
cache
,
nil
,
NewSchedulingQueue
(),
map
[
string
]
algorithm
.
FitPredicate
{
"matches"
:
algorithmpredicates
.
PodFitsResources
},
algorithm
.
EmptyPredicateMetadataProducer
,
[]
algorithm
.
PriorityConfig
{{
Function
:
numericPriority
,
Weight
:
1
}},
algorithm
.
EmptyMetadataProducer
,
extenders
)
cache
,
nil
,
NewSchedulingQueue
(),
map
[
string
]
algorithm
.
FitPredicate
{
"matches"
:
algorithmpredicates
.
PodFitsResources
},
algorithm
.
EmptyPredicateMetadataProducer
,
[]
algorithm
.
PriorityConfig
{{
Function
:
numericPriority
,
Weight
:
1
}},
algorithm
.
EmptyMetadataProducer
,
extenders
,
nil
)
// Call Preempt and check the expected results.
node
,
victims
,
_
,
err
:=
scheduler
.
Preempt
(
test
.
pod
,
schedulertesting
.
FakeNodeLister
(
makeNodeList
(
nodeNames
)),
error
(
&
FitError
{
Pod
:
test
.
pod
,
FailedPredicates
:
failedPredMap
}))
if
err
!=
nil
{
...
...
plugin/pkg/scheduler/factory/factory.go
View file @
01a87721
This diff is collapsed.
Click to expand it.
plugin/pkg/scheduler/factory/factory_test.go
View file @
01a87721
...
...
@@ -66,6 +66,7 @@ func TestCreate(t *testing.T) {
informerFactory
.
Apps
()
.
V1beta1
()
.
StatefulSets
(),
informerFactory
.
Core
()
.
V1
()
.
Services
(),
informerFactory
.
Policy
()
.
V1beta1
()
.
PodDisruptionBudgets
(),
informerFactory
.
Storage
()
.
V1
()
.
StorageClasses
(),
v1
.
DefaultHardPodAffinitySymmetricWeight
,
enableEquivalenceCache
,
)
...
...
@@ -99,6 +100,7 @@ func TestCreateFromConfig(t *testing.T) {
informerFactory
.
Apps
()
.
V1beta1
()
.
StatefulSets
(),
informerFactory
.
Core
()
.
V1
()
.
Services
(),
informerFactory
.
Policy
()
.
V1beta1
()
.
PodDisruptionBudgets
(),
informerFactory
.
Storage
()
.
V1
()
.
StorageClasses
(),
v1
.
DefaultHardPodAffinitySymmetricWeight
,
enableEquivalenceCache
,
)
...
...
@@ -159,6 +161,7 @@ func TestCreateFromConfigWithHardPodAffinitySymmetricWeight(t *testing.T) {
informerFactory
.
Apps
()
.
V1beta1
()
.
StatefulSets
(),
informerFactory
.
Core
()
.
V1
()
.
Services
(),
informerFactory
.
Policy
()
.
V1beta1
()
.
PodDisruptionBudgets
(),
informerFactory
.
Storage
()
.
V1
()
.
StorageClasses
(),
v1
.
DefaultHardPodAffinitySymmetricWeight
,
enableEquivalenceCache
,
)
...
...
@@ -220,6 +223,7 @@ func TestCreateFromEmptyConfig(t *testing.T) {
informerFactory
.
Apps
()
.
V1beta1
()
.
StatefulSets
(),
informerFactory
.
Core
()
.
V1
()
.
Services
(),
informerFactory
.
Policy
()
.
V1beta1
()
.
PodDisruptionBudgets
(),
informerFactory
.
Storage
()
.
V1
()
.
StorageClasses
(),
v1
.
DefaultHardPodAffinitySymmetricWeight
,
enableEquivalenceCache
,
)
...
...
@@ -278,6 +282,7 @@ func TestDefaultErrorFunc(t *testing.T) {
informerFactory
.
Apps
()
.
V1beta1
()
.
StatefulSets
(),
informerFactory
.
Core
()
.
V1
()
.
Services
(),
informerFactory
.
Policy
()
.
V1beta1
()
.
PodDisruptionBudgets
(),
informerFactory
.
Storage
()
.
V1
()
.
StorageClasses
(),
v1
.
DefaultHardPodAffinitySymmetricWeight
,
enableEquivalenceCache
,
)
...
...
@@ -388,6 +393,7 @@ func TestInvalidHardPodAffinitySymmetricWeight(t *testing.T) {
informerFactory
.
Apps
()
.
V1beta1
()
.
StatefulSets
(),
informerFactory
.
Core
()
.
V1
()
.
Services
(),
informerFactory
.
Policy
()
.
V1beta1
()
.
PodDisruptionBudgets
(),
informerFactory
.
Storage
()
.
V1
()
.
StorageClasses
(),
-
1
,
enableEquivalenceCache
,
)
...
...
@@ -435,6 +441,7 @@ func TestInvalidFactoryArgs(t *testing.T) {
informerFactory
.
Apps
()
.
V1beta1
()
.
StatefulSets
(),
informerFactory
.
Core
()
.
V1
()
.
Services
(),
informerFactory
.
Policy
()
.
V1beta1
()
.
PodDisruptionBudgets
(),
informerFactory
.
Storage
()
.
V1
()
.
StorageClasses
(),
test
.
hardPodAffinitySymmetricWeight
,
enableEquivalenceCache
,
)
...
...
plugin/pkg/scheduler/factory/plugins.go
View file @
01a87721
...
...
@@ -30,6 +30,7 @@ import (
schedulerapi
"k8s.io/kubernetes/plugin/pkg/scheduler/api"
"github.com/golang/glog"
"k8s.io/kubernetes/plugin/pkg/scheduler/volumebinder"
)
// PluginFactoryArgs are passed to all plugin factory functions.
...
...
@@ -43,6 +44,8 @@ type PluginFactoryArgs struct {
NodeInfo
predicates
.
NodeInfo
PVInfo
predicates
.
PersistentVolumeInfo
PVCInfo
predicates
.
PersistentVolumeClaimInfo
StorageClassInfo
predicates
.
StorageClassInfo
VolumeBinder
*
volumebinder
.
VolumeBinder
HardPodAffinitySymmetricWeight
int32
}
...
...
plugin/pkg/scheduler/scheduler.go
View file @
01a87721
...
...
@@ -26,6 +26,7 @@ import (
clientset
"k8s.io/client-go/kubernetes"
corelisters
"k8s.io/client-go/listers/core/v1"
"k8s.io/client-go/tools/record"
"k8s.io/kubernetes/pkg/controller/volume/persistentvolume"
"k8s.io/kubernetes/plugin/pkg/scheduler/algorithm"
schedulerapi
"k8s.io/kubernetes/plugin/pkg/scheduler/api"
"k8s.io/kubernetes/plugin/pkg/scheduler/core"
...
...
@@ -129,6 +130,8 @@ type Config struct {
// Close this to shut down the scheduler.
StopEverything
chan
struct
{}
VolumeBinder
persistentvolume
.
SchedulerVolumeBinder
}
// NewFromConfigurator returns a new scheduler that is created entirely by the Configurator. Assumes Create() is implemented.
...
...
plugin/pkg/scheduler/scheduler_test.go
View file @
01a87721
...
...
@@ -528,7 +528,8 @@ func setupTestScheduler(queuedPodStore *clientcache.FIFO, scache schedulercache.
algorithm
.
EmptyPredicateMetadataProducer
,
[]
algorithm
.
PriorityConfig
{},
algorithm
.
EmptyMetadataProducer
,
[]
algorithm
.
SchedulerExtender
{})
[]
algorithm
.
SchedulerExtender
{},
nil
)
bindingChan
:=
make
(
chan
*
v1
.
Binding
,
1
)
errChan
:=
make
(
chan
error
,
1
)
configurator
:=
&
FakeConfigurator
{
...
...
@@ -566,7 +567,8 @@ func setupTestSchedulerLongBindingWithRetry(queuedPodStore *clientcache.FIFO, sc
algorithm
.
EmptyPredicateMetadataProducer
,
[]
algorithm
.
PriorityConfig
{},
algorithm
.
EmptyMetadataProducer
,
[]
algorithm
.
SchedulerExtender
{})
[]
algorithm
.
SchedulerExtender
{},
nil
)
bindingChan
:=
make
(
chan
*
v1
.
Binding
,
2
)
configurator
:=
&
FakeConfigurator
{
Config
:
&
Config
{
...
...
plugin/pkg/scheduler/volumebinder/volume_binder.go
0 → 100644
View file @
01a87721
/*
Copyright 2017 The Kubernetes Authors.
Licensed under the Apache License, Version 2.0 (the "License");
you may not use this file except in compliance with the License.
You may obtain a copy of the License at
http://www.apache.org/licenses/LICENSE-2.0
Unless required by applicable law or agreed to in writing, software
distributed under the License is distributed on an "AS IS" BASIS,
WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
See the License for the specific language governing permissions and
limitations under the License.
*/
package
volumebinder
import
(
"time"
"k8s.io/api/core/v1"
"k8s.io/apimachinery/pkg/util/wait"
coreinformers
"k8s.io/client-go/informers/core/v1"
storageinformers
"k8s.io/client-go/informers/storage/v1"
clientset
"k8s.io/client-go/kubernetes"
"k8s.io/client-go/util/workqueue"
"k8s.io/kubernetes/pkg/controller/volume/persistentvolume"
)
// VolumeBinder sets up the volume binding library and manages
// the volume binding operations with a queue.
type
VolumeBinder
struct
{
Binder
persistentvolume
.
SchedulerVolumeBinder
BindQueue
*
workqueue
.
Type
}
// NewVolumeBinder sets up the volume binding library and binding queue
func
NewVolumeBinder
(
client
clientset
.
Interface
,
pvcInformer
coreinformers
.
PersistentVolumeClaimInformer
,
pvInformer
coreinformers
.
PersistentVolumeInformer
,
nodeInformer
coreinformers
.
NodeInformer
,
storageClassInformer
storageinformers
.
StorageClassInformer
)
*
VolumeBinder
{
return
&
VolumeBinder
{
Binder
:
persistentvolume
.
NewVolumeBinder
(
client
,
pvcInformer
,
pvInformer
,
nodeInformer
,
storageClassInformer
),
BindQueue
:
workqueue
.
NewNamed
(
"podsToBind"
),
}
}
// NewFakeVolumeBinder sets up a fake volume binder and binding queue
func
NewFakeVolumeBinder
(
config
*
persistentvolume
.
FakeVolumeBinderConfig
)
*
VolumeBinder
{
return
&
VolumeBinder
{
Binder
:
persistentvolume
.
NewFakeVolumeBinder
(
config
),
BindQueue
:
workqueue
.
NewNamed
(
"podsToBind"
),
}
}
// Run starts a goroutine to handle the binding queue with the given function.
func
(
b
*
VolumeBinder
)
Run
(
bindWorkFunc
func
(),
stopCh
<-
chan
struct
{})
{
go
wait
.
Until
(
bindWorkFunc
,
time
.
Second
,
stopCh
)
<-
stopCh
b
.
BindQueue
.
ShutDown
()
}
// DeletePodBindings will delete the cached volume bindings for the given pod.
func
(
b
*
VolumeBinder
)
DeletePodBindings
(
pod
*
v1
.
Pod
)
{
cache
:=
b
.
Binder
.
GetBindingsCache
()
if
cache
!=
nil
&&
pod
!=
nil
{
cache
.
DeleteBindings
(
pod
)
}
}
test/integration/scheduler/extender_test.go
View file @
01a87721
...
...
@@ -369,6 +369,7 @@ func TestSchedulerExtender(t *testing.T) {
informerFactory
.
Apps
()
.
V1beta1
()
.
StatefulSets
(),
informerFactory
.
Core
()
.
V1
()
.
Services
(),
informerFactory
.
Policy
()
.
V1beta1
()
.
PodDisruptionBudgets
(),
informerFactory
.
Storage
()
.
V1
()
.
StorageClasses
(),
v1
.
DefaultHardPodAffinitySymmetricWeight
,
enableEquivalenceCache
,
)
...
...
test/integration/scheduler/scheduler_test.go
View file @
01a87721
...
...
@@ -469,6 +469,7 @@ func TestMultiScheduler(t *testing.T) {
informerFactory2
.
Apps
()
.
V1beta1
()
.
StatefulSets
(),
informerFactory2
.
Core
()
.
V1
()
.
Services
(),
informerFactory2
.
Policy
()
.
V1beta1
()
.
PodDisruptionBudgets
(),
informerFactory2
.
Storage
()
.
V1
()
.
StorageClasses
(),
v1
.
DefaultHardPodAffinitySymmetricWeight
,
enableEquivalenceCache
,
)
...
...
test/integration/scheduler/taint_test.go
View file @
01a87721
...
...
@@ -131,6 +131,7 @@ func TestTaintNodeByCondition(t *testing.T) {
informers
.
Apps
()
.
V1beta1
()
.
StatefulSets
(),
informers
.
Core
()
.
V1
()
.
Services
(),
informers
.
Policy
()
.
V1beta1
()
.
PodDisruptionBudgets
(),
informers
.
Storage
()
.
V1
()
.
StorageClasses
(),
v1
.
DefaultHardPodAffinitySymmetricWeight
,
true
,
// Enable EqualCache by default.
)
...
...
test/integration/scheduler/util.go
View file @
01a87721
...
...
@@ -78,6 +78,7 @@ func initTest(t *testing.T, nsPrefix string) *TestContext {
context
.
informerFactory
.
Apps
()
.
V1beta1
()
.
StatefulSets
(),
context
.
informerFactory
.
Core
()
.
V1
()
.
Services
(),
context
.
informerFactory
.
Policy
()
.
V1beta1
()
.
PodDisruptionBudgets
(),
context
.
informerFactory
.
Storage
()
.
V1
()
.
StorageClasses
(),
v1
.
DefaultHardPodAffinitySymmetricWeight
,
true
,
)
...
...
test/integration/scheduler_perf/util.go
View file @
01a87721
...
...
@@ -75,6 +75,7 @@ func mustSetupScheduler() (schedulerConfigurator scheduler.Configurator, destroy
informerFactory
.
Apps
()
.
V1beta1
()
.
StatefulSets
(),
informerFactory
.
Core
()
.
V1
()
.
Services
(),
informerFactory
.
Policy
()
.
V1beta1
()
.
PodDisruptionBudgets
(),
informerFactory
.
Storage
()
.
V1
()
.
StorageClasses
(),
v1
.
DefaultHardPodAffinitySymmetricWeight
,
enableEquivalenceCache
,
)
...
...
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