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
bbaff089
Commit
bbaff089
authored
Dec 19, 2014
by
Dawn Chen
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Fixed #2632
parent
ba25ae49
Hide whitespace changes
Inline
Side-by-side
Showing
4 changed files
with
11 additions
and
3 deletions
+11
-3
conversion.go
pkg/api/v1beta1/conversion.go
+3
-1
types.go
pkg/api/v1beta1/types.go
+3
-1
conversion.go
pkg/api/v1beta2/conversion.go
+3
-1
types.go
pkg/api/v1beta2/types.go
+2
-0
No files found.
pkg/api/v1beta1/conversion.go
View file @
bbaff089
...
@@ -225,7 +225,7 @@ func init() {
...
@@ -225,7 +225,7 @@ func init() {
case
newer
.
PodRunning
:
case
newer
.
PodRunning
:
*
out
=
PodRunning
*
out
=
PodRunning
case
newer
.
PodSucceeded
:
case
newer
.
PodSucceeded
:
*
out
=
Pod
Terminat
ed
*
out
=
Pod
Succeed
ed
case
newer
.
PodFailed
:
case
newer
.
PodFailed
:
*
out
=
PodTerminated
*
out
=
PodTerminated
case
newer
.
PodUnknown
:
case
newer
.
PodUnknown
:
...
@@ -248,6 +248,8 @@ func init() {
...
@@ -248,6 +248,8 @@ func init() {
case
PodTerminated
:
case
PodTerminated
:
// Older API versions did not contain enough info to map to PodSucceeded
// Older API versions did not contain enough info to map to PodSucceeded
*
out
=
newer
.
PodFailed
*
out
=
newer
.
PodFailed
case
PodSucceeded
:
*
out
=
newer
.
PodSucceeded
case
PodUnknown
:
case
PodUnknown
:
*
out
=
newer
.
PodUnknown
*
out
=
newer
.
PodUnknown
default
:
default
:
...
...
pkg/api/v1beta1/types.go
View file @
bbaff089
...
@@ -317,10 +317,12 @@ const (
...
@@ -317,10 +317,12 @@ const (
PodWaiting
PodStatus
=
"Waiting"
PodWaiting
PodStatus
=
"Waiting"
// PodRunning means that the pod is up and running.
// PodRunning means that the pod is up and running.
PodRunning
PodStatus
=
"Running"
PodRunning
PodStatus
=
"Running"
// PodTerminated means that the pod has stopped
.
// PodTerminated means that the pod has stopped
with error(s)
PodTerminated
PodStatus
=
"Terminated"
PodTerminated
PodStatus
=
"Terminated"
// PodUnknown means that we failed to obtain info about the pod.
// PodUnknown means that we failed to obtain info about the pod.
PodUnknown
PodStatus
=
"Unknown"
PodUnknown
PodStatus
=
"Unknown"
// PodSucceeded means that the pod has stopped without error(s)
PodSucceeded
PodStatus
=
"Succeeded"
)
)
type
ContainerStateWaiting
struct
{
type
ContainerStateWaiting
struct
{
...
...
pkg/api/v1beta2/conversion.go
View file @
bbaff089
...
@@ -113,7 +113,7 @@ func init() {
...
@@ -113,7 +113,7 @@ func init() {
case
newer
.
PodRunning
:
case
newer
.
PodRunning
:
*
out
=
PodRunning
*
out
=
PodRunning
case
newer
.
PodSucceeded
:
case
newer
.
PodSucceeded
:
*
out
=
Pod
Terminat
ed
*
out
=
Pod
Succeed
ed
case
newer
.
PodFailed
:
case
newer
.
PodFailed
:
*
out
=
PodTerminated
*
out
=
PodTerminated
case
newer
.
PodUnknown
:
case
newer
.
PodUnknown
:
...
@@ -136,6 +136,8 @@ func init() {
...
@@ -136,6 +136,8 @@ func init() {
case
PodTerminated
:
case
PodTerminated
:
// Older API versions did not contain enough info to map to PodSucceeded
// Older API versions did not contain enough info to map to PodSucceeded
*
out
=
newer
.
PodFailed
*
out
=
newer
.
PodFailed
case
PodSucceeded
:
*
out
=
newer
.
PodSucceeded
case
PodUnknown
:
case
PodUnknown
:
*
out
=
newer
.
PodUnknown
*
out
=
newer
.
PodUnknown
default
:
default
:
...
...
pkg/api/v1beta2/types.go
View file @
bbaff089
...
@@ -286,6 +286,8 @@ const (
...
@@ -286,6 +286,8 @@ const (
PodTerminated
PodStatus
=
"Terminated"
PodTerminated
PodStatus
=
"Terminated"
// PodUnknown means that we failed to obtain info about the pod.
// PodUnknown means that we failed to obtain info about the pod.
PodUnknown
PodStatus
=
"Unknown"
PodUnknown
PodStatus
=
"Unknown"
// PodSucceeded means that the pod has stopped without error(s)
PodSucceeded
PodStatus
=
"Succeeded"
)
)
type
ContainerStateWaiting
struct
{
type
ContainerStateWaiting
struct
{
...
...
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