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
7cab32b4
Commit
7cab32b4
authored
Nov 13, 2014
by
bgrant0607
Browse files
Options
Browse Files
Download
Plain Diff
Merge pull request #2185 from brendandburns/history
Add a human readable message to pod state.
parents
143d986b
3fdbb102
Hide whitespace changes
Inline
Side-by-side
Showing
4 changed files
with
17 additions
and
9 deletions
+17
-9
types.go
pkg/api/types.go
+5
-3
types.go
pkg/api/v1beta1/types.go
+5
-3
types.go
pkg/api/v1beta2/types.go
+5
-3
types.go
pkg/api/v1beta3/types.go
+2
-0
No files found.
pkg/api/types.go
View file @
7cab32b4
...
...
@@ -421,9 +421,11 @@ type RestartPolicy struct {
type
PodState
struct
{
Manifest
ContainerManifest
`json:"manifest,omitempty" yaml:"manifest,omitempty"`
Status
PodCondition
`json:"status,omitempty" yaml:"status,omitempty"`
Host
string
`json:"host,omitempty" yaml:"host,omitempty"`
HostIP
string
`json:"hostIP,omitempty" yaml:"hostIP,omitempty"`
PodIP
string
`json:"podIP,omitempty" yaml:"podIP,omitempty"`
// A human readable message indicating details about why the pod is in this state.
Message
string
`json:"message,omitempty" yaml:"message,omitempty"`
Host
string
`json:"host,omitempty" yaml:"host,omitempty"`
HostIP
string
`json:"hostIP,omitempty" yaml:"hostIP,omitempty"`
PodIP
string
`json:"podIP,omitempty" yaml:"podIP,omitempty"`
// The key of this map is the *name* of the container within the manifest; it has one
// entry per container in the manifest. The value of this map is currently the output
...
...
pkg/api/v1beta1/types.go
View file @
7cab32b4
...
...
@@ -385,9 +385,11 @@ type RestartPolicy struct {
type
PodState
struct
{
Manifest
ContainerManifest
`json:"manifest,omitempty" yaml:"manifest,omitempty"`
Status
PodStatus
`json:"status,omitempty" yaml:"status,omitempty"`
Host
string
`json:"host,omitempty" yaml:"host,omitempty"`
HostIP
string
`json:"hostIP,omitempty" yaml:"hostIP,omitempty"`
PodIP
string
`json:"podIP,omitempty" yaml:"podIP,omitempty"`
// A human readable message indicating details about why the pod is in this state.
Message
string
`json:"message,omitempty" yaml:"message,omitempty"`
Host
string
`json:"host,omitempty" yaml:"host,omitempty"`
HostIP
string
`json:"hostIP,omitempty" yaml:"hostIP,omitempty"`
PodIP
string
`json:"podIP,omitempty" yaml:"podIP,omitempty"`
// The key of this map is the *name* of the container within the manifest; it has one
// entry per container in the manifest. The value of this map is currently the output
...
...
pkg/api/v1beta2/types.go
View file @
7cab32b4
...
...
@@ -350,9 +350,11 @@ type RestartPolicy struct {
type
PodState
struct
{
Manifest
ContainerManifest
`json:"manifest,omitempty" yaml:"manifest,omitempty"`
Status
PodStatus
`json:"status,omitempty" yaml:"status,omitempty"`
Host
string
`json:"host,omitempty" yaml:"host,omitempty"`
HostIP
string
`json:"hostIP,omitempty" yaml:"hostIP,omitempty"`
PodIP
string
`json:"podIP,omitempty" yaml:"podIP,omitempty"`
// A human readable message indicating details about why the pod is in this state.
Message
string
`json:"message,omitempty" yaml:"message,omitempty"`
Host
string
`json:"host,omitempty" yaml:"host,omitempty"`
HostIP
string
`json:"hostIP,omitempty" yaml:"hostIP,omitempty"`
PodIP
string
`json:"podIP,omitempty" yaml:"podIP,omitempty"`
// The key of this map is the *name* of the container within the manifest; it has one
// entry per container in the manifest. The value of this map is currently the output
...
...
pkg/api/v1beta3/types.go
View file @
7cab32b4
...
...
@@ -456,6 +456,8 @@ type PodSpec struct {
// state of a system.
type
PodStatus
struct
{
Condition
PodCondition
`json:"condition,omitempty" yaml:"condition,omitempty"`
// A human readable message indicating details about why the pod is in this state.
Message
string
`json:"message,omitempty" yaml:"message,omitempty"`
// Host is the name of the node that this Pod is currently bound to, or empty if no
// assignment has been done.
...
...
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