diff options
author | OpenShift Merge Robot <openshift-merge-robot@users.noreply.github.com> | 2020-06-01 19:41:30 +0200 |
---|---|---|
committer | GitHub <noreply@github.com> | 2020-06-01 19:41:30 +0200 |
commit | 5f1c23dba9f6e02ed2551aabda371d007e9057e2 (patch) | |
tree | 8ba9db4d111bd7379ac09780533d304154b69658 /pkg/domain | |
parent | f559cec6c0d1694cca9530004aaba3c138f621e3 (diff) | |
parent | 990514ea92b9b50dfb95dc0e505e11a21578a649 (diff) | |
download | podman-5f1c23dba9f6e02ed2551aabda371d007e9057e2.tar.gz podman-5f1c23dba9f6e02ed2551aabda371d007e9057e2.tar.bz2 podman-5f1c23dba9f6e02ed2551aabda371d007e9057e2.zip |
Merge pull request #6449 from baude/v2podlabels
Add support for format {{.Label}}
Diffstat (limited to 'pkg/domain')
-rw-r--r-- | pkg/domain/entities/pods.go | 1 | ||||
-rw-r--r-- | pkg/domain/infra/abi/pods.go | 1 |
2 files changed, 2 insertions, 0 deletions
diff --git a/pkg/domain/entities/pods.go b/pkg/domain/entities/pods.go index 1a38a7aa4..37acba6e6 100644 --- a/pkg/domain/entities/pods.go +++ b/pkg/domain/entities/pods.go @@ -29,6 +29,7 @@ type ListPodsReport struct { Name string Namespace string Status string + Labels map[string]string } type ListPodContainer struct { diff --git a/pkg/domain/infra/abi/pods.go b/pkg/domain/infra/abi/pods.go index 16c222cbd..320880920 100644 --- a/pkg/domain/infra/abi/pods.go +++ b/pkg/domain/infra/abi/pods.go @@ -360,6 +360,7 @@ func (ic *ContainerEngine) PodPs(ctx context.Context, options entities.PodPSOpti Name: p.Name(), Namespace: p.Namespace(), Status: status, + Labels: p.Labels(), }) } return reports, nil |