Update pod inspect report to hold current pod status.

Added status field in pod inspect report.
Fixed pod tests to use it.

Signed-off-by: Sujil02 <sushah@redhat.com>
This commit is contained in:
Sujil02
2020-04-20 06:42:51 -04:00
parent e4e42b28df
commit 838df56bcf
3 changed files with 20 additions and 18 deletions

View File

@ -18,6 +18,8 @@ type InspectPodData struct {
Namespace string `json:"Namespace,omitempty"`
// Created is the time when the pod was created.
Created time.Time
// State represents the current state of the pod.
State string `json:"State"`
// Hostname is the hostname that the pod will set.
Hostname string
// Labels is a set of key-value labels that have been applied to the