diff options
author | theunrealgeek <theunrealgeek@gmail.com> | 2020-05-17 00:37:58 -0700 |
---|---|---|
committer | theunrealgeek <theunrealgeek@gmail.com> | 2020-06-02 20:33:16 -0700 |
commit | ce7a9f03146da33007656ded64be3148d6ec8d77 (patch) | |
tree | 6d240193f465a9482cfa71b51b80c753088931f5 /cmd/podman | |
parent | 95ea39edf34e4de4450c1674721ab02a7cf6a327 (diff) | |
download | podman-ce7a9f03146da33007656ded64be3148d6ec8d77.tar.gz podman-ce7a9f03146da33007656ded64be3148d6ec8d77.tar.bz2 podman-ce7a9f03146da33007656ded64be3148d6ec8d77.zip |
supporting k8s Deployment objects
Signed-off-by: Aditya Kamath <theunrealgeek@gmail.com>
Diffstat (limited to 'cmd/podman')
-rw-r--r-- | cmd/podman/play/kube.go | 13 |
1 files changed, 12 insertions, 1 deletions
diff --git a/cmd/podman/play/kube.go b/cmd/podman/play/kube.go index 1fbf24d5e..d2cfe8d43 100644 --- a/cmd/podman/play/kube.go +++ b/cmd/podman/play/kube.go @@ -96,7 +96,18 @@ func kube(cmd *cobra.Command, args []string) error { fmt.Fprintf(os.Stderr, l) } - fmt.Printf("Pod:\n%s\n", report.Pod) + switch len(report.Pods) { + case 0: + return nil + case 1: + fmt.Printf("Pod:\n") + default: + fmt.Printf("Pods:\n") + } + for _, pod := range report.Pods { + fmt.Println(pod) + } + switch len(report.Containers) { case 0: return nil |