mirror of
https://github.com/k3s-io/kubernetes.git
synced 2026-01-05 15:37:24 +00:00
Change kublet to serve podInfo instead of containerInfo. Plumb through system.
This commit is contained in:
@@ -157,6 +157,9 @@ const (
|
||||
PodStopped PodStatus = "Stopped"
|
||||
)
|
||||
|
||||
// PodInfo contains one entry for every container with available info.
|
||||
type PodInfo map[string]docker.Container
|
||||
|
||||
// PodState is the state of a pod, used as either input (desired state) or output (current state)
|
||||
type PodState struct {
|
||||
Manifest ContainerManifest `json:"manifest,omitempty" yaml:"manifest,omitempty"`
|
||||
@@ -169,7 +172,7 @@ type PodState struct {
|
||||
// of `docker inspect`. This output format is *not* final and should not be relied
|
||||
// upon.
|
||||
// TODO: Make real decisions about what our info should look like.
|
||||
Info map[string]docker.Container `json:"info,omitempty" yaml:"info,omitempty"`
|
||||
Info PodInfo `json:"info,omitempty" yaml:"info,omitempty"`
|
||||
}
|
||||
|
||||
type PodList struct {
|
||||
|
||||
Reference in New Issue
Block a user