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
6b08ef57
Commit
6b08ef57
authored
May 25, 2018
by
Minhan Xia
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
add ContainersReady condition
parent
2f011d01
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
5 additions
and
0 deletions
+5
-0
types.go
pkg/apis/core/types.go
+2
-0
pod_status.go
pkg/kubelet/types/pod_status.go
+1
-0
types.go
staging/src/k8s.io/api/core/v1/types.go
+2
-0
No files found.
pkg/apis/core/types.go
View file @
6b08ef57
...
@@ -2094,6 +2094,8 @@ const (
...
@@ -2094,6 +2094,8 @@ const (
// PodReasonUnschedulable reason in PodScheduled PodCondition means that the scheduler
// PodReasonUnschedulable reason in PodScheduled PodCondition means that the scheduler
// can't schedule the pod right now, for example due to insufficient resources in the cluster.
// can't schedule the pod right now, for example due to insufficient resources in the cluster.
PodReasonUnschedulable
=
"Unschedulable"
PodReasonUnschedulable
=
"Unschedulable"
// ContainersReady indicates whether all containers in the pod are ready.
ContainersReady
PodConditionType
=
"ContainersReady"
)
)
type
PodCondition
struct
{
type
PodCondition
struct
{
...
...
pkg/kubelet/types/pod_status.go
View file @
6b08ef57
...
@@ -26,6 +26,7 @@ var PodConditionsByKubelet = []v1.PodConditionType{
...
@@ -26,6 +26,7 @@ var PodConditionsByKubelet = []v1.PodConditionType{
v1
.
PodReady
,
v1
.
PodReady
,
v1
.
PodInitialized
,
v1
.
PodInitialized
,
v1
.
PodReasonUnschedulable
,
v1
.
PodReasonUnschedulable
,
v1
.
ContainersReady
,
}
}
// PodConditionByKubelet returns if the pod condition type is owned by kubelet
// PodConditionByKubelet returns if the pod condition type is owned by kubelet
...
...
staging/src/k8s.io/api/core/v1/types.go
View file @
6b08ef57
...
@@ -2312,6 +2312,8 @@ const (
...
@@ -2312,6 +2312,8 @@ const (
// PodReasonUnschedulable reason in PodScheduled PodCondition means that the scheduler
// PodReasonUnschedulable reason in PodScheduled PodCondition means that the scheduler
// can't schedule the pod right now, for example due to insufficient resources in the cluster.
// can't schedule the pod right now, for example due to insufficient resources in the cluster.
PodReasonUnschedulable
=
"Unschedulable"
PodReasonUnschedulable
=
"Unschedulable"
// ContainersReady indicates whether all containers in the pod are ready.
ContainersReady
PodConditionType
=
"ContainersReady"
)
)
// PodCondition contains details for the current condition of this pod.
// PodCondition contains details for the current condition of this pod.
...
...
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