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
97ab99aa
Commit
97ab99aa
authored
Aug 28, 2017
by
David Ashpole
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
remove OutOfDisk from controllers
parent
870406be
Expand all
Hide whitespace changes
Inline
Side-by-side
Showing
8 changed files
with
7 additions
and
245 deletions
+7
-245
BUILD
pkg/controller/daemon/BUILD
+0
-2
daemon_controller.go
pkg/controller/daemon/daemon_controller.go
+2
-29
daemon_controller_test.go
pkg/controller/daemon/daemon_controller_test.go
+1
-145
daemonset_util.go
pkg/controller/daemon/util/daemonset_util.go
+1
-0
node_controller.go
pkg/controller/node/node_controller.go
+0
-1
nodecontroller_test.go
pkg/controller/node/nodecontroller_test.go
+0
-58
BUILD
test/e2e/node/BUILD
+3
-10
nodeoutofdisk.go
test/e2e/node/nodeoutofdisk.go
+0
-0
No files found.
pkg/controller/daemon/BUILD
View file @
97ab99aa
...
...
@@ -74,8 +74,6 @@ go_test(
"//pkg/securitycontext:go_default_library",
"//pkg/util/labels:go_default_library",
"//plugin/pkg/scheduler/algorithm:go_default_library",
"//plugin/pkg/scheduler/algorithm/predicates:go_default_library",
"//plugin/pkg/scheduler/schedulercache:go_default_library",
"//vendor/k8s.io/api/core/v1:go_default_library",
"//vendor/k8s.io/api/extensions/v1beta1:go_default_library",
"//vendor/k8s.io/apimachinery/pkg/api/resource:go_default_library",
...
...
pkg/controller/daemon/daemon_controller.go
View file @
97ab99aa
...
...
@@ -1180,6 +1180,7 @@ func (dsc *DaemonSetsController) simulate(newPod *v1.Pod, node *v1.Node, ds *ext
Effect
:
v1
.
TaintEffectNoSchedule
,
})
// TODO(#48843) OutOfDisk taints will be removed in 1.10
if
utilfeature
.
DefaultFeatureGate
.
Enabled
(
features
.
ExperimentalCriticalPodAnnotation
)
&&
kubelettypes
.
IsCriticalPod
(
newPod
)
{
v1helper
.
AddOrUpdateTolerationInPod
(
newPod
,
&
v1
.
Toleration
{
...
...
@@ -1221,7 +1222,7 @@ func (dsc *DaemonSetsController) simulate(newPod *v1.Pod, node *v1.Node, ds *ext
// summary. Returned booleans are:
// * wantToRun:
// Returns true when a user would expect a pod to run on this node and ignores conditions
// such as
OutOfDisk
or insufficient resource that would cause a daemonset pod not to schedule.
// such as
DiskPressure
or insufficient resource that would cause a daemonset pod not to schedule.
// This is primarily used to populate daemonset status.
// * shouldSchedule:
// Returns true when a daemonset should be scheduled to a node if a daemonset pod is not already
...
...
@@ -1257,11 +1258,6 @@ func (dsc *DaemonSetsController) nodeShouldRunDaemonPod(node *v1.Node, ds *exten
var
emitEvent
bool
// we try to partition predicates into two partitions here: intentional on the part of the operator and not.
switch
reason
{
case
predicates
.
ErrNodeOutOfDisk
:
// the kubelet will evict this pod if it needs to. Let kubelet
// decide whether to continue running this pod so leave shouldContinueRunning
// set to true
shouldSchedule
=
false
// intentional
case
predicates
.
ErrNodeSelectorNotMatch
,
...
...
@@ -1344,9 +1340,6 @@ func Predicates(pod *v1.Pod, nodeInfo *schedulercache.NodeInfo) (bool, []algorit
fit
,
reasons
,
err
=
predicates
.
EssentialPredicates
(
pod
,
nil
,
nodeInfo
)
}
else
{
fit
,
reasons
,
err
=
predicates
.
GeneralPredicates
(
pod
,
nil
,
nodeInfo
)
ncFit
,
ncReasons
:=
NodeConditionPredicates
(
nodeInfo
)
fit
=
ncFit
&&
fit
reasons
=
append
(
reasons
,
ncReasons
...
)
}
if
err
!=
nil
{
return
false
,
predicateFails
,
err
...
...
@@ -1358,26 +1351,6 @@ func Predicates(pod *v1.Pod, nodeInfo *schedulercache.NodeInfo) (bool, []algorit
return
len
(
predicateFails
)
==
0
,
predicateFails
,
nil
}
func
NodeConditionPredicates
(
nodeInfo
*
schedulercache
.
NodeInfo
)
(
bool
,
[]
algorithm
.
PredicateFailureReason
)
{
reasons
:=
[]
algorithm
.
PredicateFailureReason
{}
// If TaintNodesByCondition feature was enabled, account PodToleratesNodeTaints predicates.
if
utilfeature
.
DefaultFeatureGate
.
Enabled
(
features
.
TaintNodesByCondition
)
{
return
true
,
nil
}
for
_
,
c
:=
range
nodeInfo
.
Node
()
.
Status
.
Conditions
{
// TODO: There are other node status that the DaemonSet should ideally respect too,
// e.g. MemoryPressure, and DiskPressure
if
c
.
Type
==
v1
.
NodeOutOfDisk
&&
c
.
Status
==
v1
.
ConditionTrue
{
reasons
=
append
(
reasons
,
predicates
.
ErrNodeOutOfDisk
)
break
}
}
return
len
(
reasons
)
==
0
,
reasons
}
// byCreationTimestamp sorts a list by creation timestamp, using their names as a tie breaker.
type
byCreationTimestamp
[]
*
extensions
.
DaemonSet
...
...
pkg/controller/daemon/daemon_controller_test.go
View file @
97ab99aa
...
...
@@ -47,8 +47,6 @@ import (
"k8s.io/kubernetes/pkg/securitycontext"
labelsutil
"k8s.io/kubernetes/pkg/util/labels"
"k8s.io/kubernetes/plugin/pkg/scheduler/algorithm"
"k8s.io/kubernetes/plugin/pkg/scheduler/algorithm/predicates"
"k8s.io/kubernetes/plugin/pkg/scheduler/schedulercache"
)
var
(
...
...
@@ -503,20 +501,6 @@ func TestNotReadNodeDaemonDoesNotLaunchPod(t *testing.T) {
}
}
// DaemonSets should not place onto OutOfDisk nodes
func
TestOutOfDiskNodeDaemonDoesNotLaunchPod
(
t
*
testing
.
T
)
{
for
_
,
strategy
:=
range
updateStrategies
()
{
ds
:=
newDaemonSet
(
"foo"
)
ds
.
Spec
.
UpdateStrategy
=
*
strategy
manager
,
podControl
,
_
:=
newTestController
(
ds
)
node
:=
newNode
(
"not-enough-disk"
,
nil
)
node
.
Status
.
Conditions
=
[]
v1
.
NodeCondition
{{
Type
:
v1
.
NodeOutOfDisk
,
Status
:
v1
.
ConditionTrue
}}
manager
.
nodeStore
.
Add
(
node
)
manager
.
dsStore
.
Add
(
ds
)
syncAndValidateDaemonSets
(
t
,
manager
,
ds
,
podControl
,
0
,
0
,
0
)
}
}
func
resourcePodSpec
(
nodeName
,
memory
,
cpu
string
)
v1
.
PodSpec
{
return
v1
.
PodSpec
{
NodeName
:
nodeName
,
...
...
@@ -1267,30 +1251,8 @@ func setDaemonSetToleration(ds *extensions.DaemonSet, tolerations []v1.Toleratio
ds
.
Spec
.
Template
.
Spec
.
Tolerations
=
tolerations
}
// DaemonSet should launch a critical pod even when the node is OutOfDisk.
func
TestOutOfDiskNodeDaemonLaunchesCriticalPod
(
t
*
testing
.
T
)
{
for
_
,
strategy
:=
range
updateStrategies
()
{
ds
:=
newDaemonSet
(
"critical"
)
ds
.
Spec
.
UpdateStrategy
=
*
strategy
setDaemonSetCritical
(
ds
)
manager
,
podControl
,
_
:=
newTestController
(
ds
)
node
:=
newNode
(
"not-enough-disk"
,
nil
)
node
.
Status
.
Conditions
=
[]
v1
.
NodeCondition
{{
Type
:
v1
.
NodeOutOfDisk
,
Status
:
v1
.
ConditionTrue
}}
manager
.
nodeStore
.
Add
(
node
)
// Without enabling critical pod annotation feature gate, we shouldn't create critical pod
utilfeature
.
DefaultFeatureGate
.
Set
(
"ExperimentalCriticalPodAnnotation=False"
)
manager
.
dsStore
.
Add
(
ds
)
syncAndValidateDaemonSets
(
t
,
manager
,
ds
,
podControl
,
0
,
0
,
0
)
// Enabling critical pod annotation feature gate should create critical pod
utilfeature
.
DefaultFeatureGate
.
Set
(
"ExperimentalCriticalPodAnnotation=True"
)
syncAndValidateDaemonSets
(
t
,
manager
,
ds
,
podControl
,
1
,
0
,
0
)
}
}
// DaemonSet should launch a critical pod even when the node with OutOfDisk taints.
// TODO(#48843) OutOfDisk taints will be removed in 1.10
func
TestTaintOutOfDiskNodeDaemonLaunchesCriticalPod
(
t
*
testing
.
T
)
{
for
_
,
strategy
:=
range
updateStrategies
()
{
ds
:=
newDaemonSet
(
"critical"
)
...
...
@@ -1462,23 +1424,6 @@ func TestNodeShouldRunDaemonPod(t *testing.T) {
ObjectMeta
:
metav1
.
ObjectMeta
{
Labels
:
simpleDaemonSetLabel
,
},
Spec
:
resourcePodSpec
(
""
,
"50M"
,
"0.5"
),
},
},
},
nodeCondition
:
[]
v1
.
NodeCondition
{{
Type
:
v1
.
NodeOutOfDisk
,
Status
:
v1
.
ConditionTrue
}},
wantToRun
:
true
,
shouldSchedule
:
false
,
shouldContinueRunning
:
true
,
},
{
ds
:
&
extensions
.
DaemonSet
{
Spec
:
extensions
.
DaemonSetSpec
{
Selector
:
&
metav1
.
LabelSelector
{
MatchLabels
:
simpleDaemonSetLabel
},
Template
:
v1
.
PodTemplateSpec
{
ObjectMeta
:
metav1
.
ObjectMeta
{
Labels
:
simpleDaemonSetLabel
,
},
Spec
:
resourcePodSpec
(
""
,
"200M"
,
"0.5"
),
},
},
...
...
@@ -1612,41 +1557,6 @@ func TestUpdateNode(t *testing.T) {
ds
:
newDaemonSet
(
"ds"
),
shouldEnqueue
:
true
,
},
{
test
:
"Node conditions changed"
,
oldNode
:
func
()
*
v1
.
Node
{
node
:=
newNode
(
"node1"
,
nil
)
node
.
Status
.
Conditions
=
[]
v1
.
NodeCondition
{
{
Type
:
v1
.
NodeOutOfDisk
,
Status
:
v1
.
ConditionTrue
},
}
return
node
}(),
newNode
:
newNode
(
"node1"
,
nil
),
ds
:
newDaemonSet
(
"ds"
),
shouldEnqueue
:
true
,
},
{
test
:
"Node conditions not changed"
,
oldNode
:
func
()
*
v1
.
Node
{
node
:=
newNode
(
"node1"
,
nil
)
node
.
Status
.
Conditions
=
[]
v1
.
NodeCondition
{
{
Type
:
v1
.
NodeOutOfDisk
,
Status
:
v1
.
ConditionTrue
},
{
Type
:
v1
.
NodeMemoryPressure
,
Status
:
v1
.
ConditionFalse
},
{
Type
:
v1
.
NodeDiskPressure
,
Status
:
v1
.
ConditionFalse
},
{
Type
:
v1
.
NodeNetworkUnavailable
,
Status
:
v1
.
ConditionFalse
},
}
return
node
}(),
newNode
:
func
()
*
v1
.
Node
{
node
:=
newNode
(
"node1"
,
nil
)
node
.
Status
.
Conditions
=
[]
v1
.
NodeCondition
{
{
Type
:
v1
.
NodeOutOfDisk
,
Status
:
v1
.
ConditionTrue
},
}
return
node
}(),
ds
:
newDaemonSet
(
"ds"
),
shouldEnqueue
:
false
,
},
}
for
_
,
c
:=
range
cases
{
for
_
,
strategy
:=
range
updateStrategies
()
{
...
...
@@ -2205,57 +2115,3 @@ func getQueuedKeys(queue workqueue.RateLimitingInterface) []string {
sort
.
Strings
(
keys
)
return
keys
}
func
TestPredicates
(
t
*
testing
.
T
)
{
type
args
struct
{
pod
*
v1
.
Pod
node
*
v1
.
Node
}
tests
:=
[]
struct
{
name
string
args
args
want
bool
wantRes
[]
algorithm
.
PredicateFailureReason
wantErr
bool
}{
{
name
:
"retrun OutOfDiskErr if outOfDisk"
,
args
:
args
{
pod
:
newPod
(
"pod1-"
,
"node-0"
,
nil
,
nil
),
node
:
&
v1
.
Node
{
ObjectMeta
:
metav1
.
ObjectMeta
{
Name
:
"node-0"
,
},
Status
:
v1
.
NodeStatus
{
Conditions
:
[]
v1
.
NodeCondition
{
{
Type
:
v1
.
NodeOutOfDisk
,
Status
:
v1
.
ConditionTrue
},
},
Allocatable
:
v1
.
ResourceList
{
v1
.
ResourcePods
:
resource
.
MustParse
(
"100"
),
},
},
},
},
want
:
false
,
wantRes
:
[]
algorithm
.
PredicateFailureReason
{
predicates
.
ErrNodeOutOfDisk
},
},
}
for
_
,
tt
:=
range
tests
{
t
.
Run
(
tt
.
name
,
func
(
t
*
testing
.
T
)
{
nodeInfo
:=
schedulercache
.
NewNodeInfo
(
tt
.
args
.
pod
)
nodeInfo
.
SetNode
(
tt
.
args
.
node
)
got
,
res
,
err
:=
Predicates
(
tt
.
args
.
pod
,
nodeInfo
)
if
(
err
!=
nil
)
!=
tt
.
wantErr
{
t
.
Errorf
(
"%s (error): error = %v, wantErr %v"
,
tt
.
name
,
err
,
tt
.
wantErr
)
return
}
if
got
!=
tt
.
want
{
t
.
Errorf
(
"%s (fit): got = %v, want %v"
,
tt
.
name
,
got
,
tt
.
want
)
}
if
!
reflect
.
DeepEqual
(
res
,
tt
.
wantRes
)
{
t
.
Errorf
(
"%s (reasons): got = %v, want %v"
,
tt
.
name
,
res
,
tt
.
wantRes
)
}
})
}
}
pkg/controller/daemon/util/daemonset_util.go
View file @
97ab99aa
...
...
@@ -71,6 +71,7 @@ func CreatePodTemplate(template v1.PodTemplateSpec, generation int64, hash strin
Effect
:
v1
.
TaintEffectNoSchedule
,
})
// TODO(#48843) OutOfDisk taints will be removed in 1.10
if
utilfeature
.
DefaultFeatureGate
.
Enabled
(
features
.
ExperimentalCriticalPodAnnotation
)
&&
kubelettypes
.
IsCritical
(
newTemplate
.
Namespace
,
newTemplate
.
Annotations
)
{
v1helper
.
AddOrUpdateTolerationInPodSpec
(
&
newTemplate
.
Spec
,
&
v1
.
Toleration
{
...
...
pkg/controller/node/node_controller.go
View file @
97ab99aa
...
...
@@ -985,7 +985,6 @@ func (nc *Controller) tryUpdateNodeStatus(node *v1.Node) (time.Duration, v1.Node
// remaining node conditions should also be set to Unknown
remainingNodeConditionTypes
:=
[]
v1
.
NodeConditionType
{
v1
.
NodeOutOfDisk
,
v1
.
NodeMemoryPressure
,
v1
.
NodeDiskPressure
,
// We don't change 'NodeNetworkUnavailable' condition, as it's managed on a control plane level.
...
...
pkg/controller/node/nodecontroller_test.go
View file @
97ab99aa
...
...
@@ -1456,14 +1456,6 @@ func TestMonitorNodeStatusUpdateStatus(t *testing.T) {
LastTransitionTime
:
fakeNow
,
},
{
Type
:
v1
.
NodeOutOfDisk
,
Status
:
v1
.
ConditionUnknown
,
Reason
:
"NodeStatusNeverUpdated"
,
Message
:
"Kubelet never posted node status."
,
LastHeartbeatTime
:
metav1
.
Date
(
2012
,
1
,
1
,
0
,
0
,
0
,
0
,
time
.
UTC
),
LastTransitionTime
:
fakeNow
,
},
{
Type
:
v1
.
NodeMemoryPressure
,
Status
:
v1
.
ConditionUnknown
,
Reason
:
"NodeStatusNeverUpdated"
,
...
...
@@ -1520,13 +1512,6 @@ func TestMonitorNodeStatusUpdateStatus(t *testing.T) {
LastHeartbeatTime
:
metav1
.
Date
(
2015
,
1
,
1
,
12
,
0
,
0
,
0
,
time
.
UTC
),
LastTransitionTime
:
metav1
.
Date
(
2015
,
1
,
1
,
12
,
0
,
0
,
0
,
time
.
UTC
),
},
{
Type
:
v1
.
NodeOutOfDisk
,
Status
:
v1
.
ConditionFalse
,
// Node status hasn't been updated for 1hr.
LastHeartbeatTime
:
metav1
.
Date
(
2015
,
1
,
1
,
12
,
0
,
0
,
0
,
time
.
UTC
),
LastTransitionTime
:
metav1
.
Date
(
2015
,
1
,
1
,
12
,
0
,
0
,
0
,
time
.
UTC
),
},
},
Capacity
:
v1
.
ResourceList
{
v1
.
ResourceName
(
v1
.
ResourceCPU
)
:
resource
.
MustParse
(
"10"
),
...
...
@@ -1551,13 +1536,6 @@ func TestMonitorNodeStatusUpdateStatus(t *testing.T) {
LastHeartbeatTime
:
metav1
.
Date
(
2015
,
1
,
1
,
12
,
0
,
0
,
0
,
time
.
UTC
),
LastTransitionTime
:
metav1
.
Date
(
2015
,
1
,
1
,
12
,
0
,
0
,
0
,
time
.
UTC
),
},
{
Type
:
v1
.
NodeOutOfDisk
,
Status
:
v1
.
ConditionFalse
,
// Node status hasn't been updated for 1hr.
LastHeartbeatTime
:
metav1
.
Date
(
2015
,
1
,
1
,
12
,
0
,
0
,
0
,
time
.
UTC
),
LastTransitionTime
:
metav1
.
Date
(
2015
,
1
,
1
,
12
,
0
,
0
,
0
,
time
.
UTC
),
},
},
Capacity
:
v1
.
ResourceList
{
v1
.
ResourceName
(
v1
.
ResourceCPU
)
:
resource
.
MustParse
(
"10"
),
...
...
@@ -1581,14 +1559,6 @@ func TestMonitorNodeStatusUpdateStatus(t *testing.T) {
LastTransitionTime
:
metav1
.
Time
{
Time
:
metav1
.
Date
(
2015
,
1
,
1
,
12
,
0
,
0
,
0
,
time
.
UTC
)
.
Add
(
time
.
Hour
)},
},
{
Type
:
v1
.
NodeOutOfDisk
,
Status
:
v1
.
ConditionUnknown
,
Reason
:
"NodeStatusUnknown"
,
Message
:
"Kubelet stopped posting node status."
,
LastHeartbeatTime
:
metav1
.
Date
(
2015
,
1
,
1
,
12
,
0
,
0
,
0
,
time
.
UTC
),
LastTransitionTime
:
metav1
.
Time
{
Time
:
metav1
.
Date
(
2015
,
1
,
1
,
12
,
0
,
0
,
0
,
time
.
UTC
)
.
Add
(
time
.
Hour
)},
},
{
Type
:
v1
.
NodeMemoryPressure
,
Status
:
v1
.
ConditionUnknown
,
Reason
:
"NodeStatusNeverUpdated"
,
...
...
@@ -1767,13 +1737,6 @@ func TestMonitorNodeStatusMarkPodsNotReady(t *testing.T) {
LastHeartbeatTime
:
metav1
.
Date
(
2015
,
1
,
1
,
12
,
0
,
0
,
0
,
time
.
UTC
),
LastTransitionTime
:
metav1
.
Date
(
2015
,
1
,
1
,
12
,
0
,
0
,
0
,
time
.
UTC
),
},
{
Type
:
v1
.
NodeOutOfDisk
,
Status
:
v1
.
ConditionFalse
,
// Node status hasn't been updated for 1hr.
LastHeartbeatTime
:
metav1
.
Date
(
2015
,
1
,
1
,
12
,
0
,
0
,
0
,
time
.
UTC
),
LastTransitionTime
:
metav1
.
Date
(
2015
,
1
,
1
,
12
,
0
,
0
,
0
,
time
.
UTC
),
},
},
Capacity
:
v1
.
ResourceList
{
v1
.
ResourceName
(
v1
.
ResourceCPU
)
:
resource
.
MustParse
(
"10"
),
...
...
@@ -1800,13 +1763,6 @@ func TestMonitorNodeStatusMarkPodsNotReady(t *testing.T) {
LastHeartbeatTime
:
metav1
.
Date
(
2015
,
1
,
1
,
12
,
0
,
0
,
0
,
time
.
UTC
),
LastTransitionTime
:
metav1
.
Date
(
2015
,
1
,
1
,
12
,
0
,
0
,
0
,
time
.
UTC
),
},
{
Type
:
v1
.
NodeOutOfDisk
,
Status
:
v1
.
ConditionFalse
,
// Node status hasn't been updated for 1hr.
LastHeartbeatTime
:
metav1
.
Date
(
2015
,
1
,
1
,
12
,
0
,
0
,
0
,
time
.
UTC
),
LastTransitionTime
:
metav1
.
Date
(
2015
,
1
,
1
,
12
,
0
,
0
,
0
,
time
.
UTC
),
},
},
Capacity
:
v1
.
ResourceList
{
v1
.
ResourceName
(
v1
.
ResourceCPU
)
:
resource
.
MustParse
(
"10"
),
...
...
@@ -1837,13 +1793,6 @@ func TestMonitorNodeStatusMarkPodsNotReady(t *testing.T) {
LastHeartbeatTime
:
metav1
.
Date
(
2015
,
1
,
1
,
12
,
0
,
0
,
0
,
time
.
UTC
),
LastTransitionTime
:
metav1
.
Date
(
2015
,
1
,
1
,
12
,
0
,
0
,
0
,
time
.
UTC
),
},
{
Type
:
v1
.
NodeOutOfDisk
,
Status
:
v1
.
ConditionFalse
,
// Node status hasn't been updated for 1hr.
LastHeartbeatTime
:
metav1
.
Date
(
2015
,
1
,
1
,
12
,
0
,
0
,
0
,
time
.
UTC
),
LastTransitionTime
:
metav1
.
Date
(
2015
,
1
,
1
,
12
,
0
,
0
,
0
,
time
.
UTC
),
},
},
Capacity
:
v1
.
ResourceList
{
v1
.
ResourceName
(
v1
.
ResourceCPU
)
:
resource
.
MustParse
(
"10"
),
...
...
@@ -1870,13 +1819,6 @@ func TestMonitorNodeStatusMarkPodsNotReady(t *testing.T) {
LastHeartbeatTime
:
metav1
.
Date
(
2015
,
1
,
1
,
12
,
0
,
0
,
0
,
time
.
UTC
),
LastTransitionTime
:
metav1
.
Date
(
2015
,
1
,
1
,
12
,
0
,
0
,
0
,
time
.
UTC
),
},
{
Type
:
v1
.
NodeOutOfDisk
,
Status
:
v1
.
ConditionFalse
,
// Node status hasn't been updated for 1hr.
LastHeartbeatTime
:
metav1
.
Date
(
2015
,
1
,
1
,
12
,
0
,
0
,
0
,
time
.
UTC
),
LastTransitionTime
:
metav1
.
Date
(
2015
,
1
,
1
,
12
,
0
,
0
,
0
,
time
.
UTC
),
},
},
Capacity
:
v1
.
ResourceList
{
v1
.
ResourceName
(
v1
.
ResourceCPU
)
:
resource
.
MustParse
(
"10"
),
...
...
test/e2e/node/BUILD
View file @
97ab99aa
package(default_visibility = ["//visibility:public"])
load(
"@io_bazel_rules_go//go:def.bzl",
"go_library",
)
load("@io_bazel_rules_go//go:def.bzl", "go_library")
go_library(
name = "go_default_library",
...
...
@@ -12,9 +7,9 @@ go_library(
"framework.go",
"kubelet.go",
"kubelet_perf.go",
"nodeoutofdisk.go",
"security_context.go",
],
visibility = ["//visibility:public"],
deps = [
"//pkg/api/testapi:go_default_library",
"//pkg/kubelet/apis/stats/v1alpha1:go_default_library",
...
...
@@ -22,13 +17,10 @@ go_library(
"//test/e2e/framework:go_default_library",
"//test/utils:go_default_library",
"//test/utils/image:go_default_library",
"//vendor/github.com/google/cadvisor/info/v1:go_default_library",
"//vendor/github.com/onsi/ginkgo:go_default_library",
"//vendor/github.com/onsi/gomega:go_default_library",
"//vendor/k8s.io/api/core/v1:go_default_library",
"//vendor/k8s.io/apimachinery/pkg/api/resource:go_default_library",
"//vendor/k8s.io/apimachinery/pkg/apis/meta/v1:go_default_library",
"//vendor/k8s.io/apimachinery/pkg/fields:go_default_library",
"//vendor/k8s.io/apimachinery/pkg/util/sets:go_default_library",
"//vendor/k8s.io/apimachinery/pkg/util/uuid:go_default_library",
"//vendor/k8s.io/apimachinery/pkg/util/wait:go_default_library",
...
...
@@ -47,4 +39,5 @@ filegroup(
name = "all-srcs",
srcs = [":package-srcs"],
tags = ["automanaged"],
visibility = ["//visibility:public"],
)
test/e2e/node/nodeoutofdisk.go
deleted
100644 → 0
View file @
870406be
This diff is collapsed.
Click to expand it.
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