From 990514ea92b9b50dfb95dc0e505e11a21578a649 Mon Sep 17 00:00:00 2001 From: Brent Baude Date: Mon, 1 Jun 2020 09:43:45 -0500 Subject: Add support for format {{.Label}} the pod ps man page says .Label is valid go template format. i dont think the function was actually ever implemented. Fixes #6448 Signed-off-by: Brent Baude --- pkg/api/handlers/utils/pods.go | 1 + 1 file changed, 1 insertion(+) (limited to 'pkg/api/handlers/utils') diff --git a/pkg/api/handlers/utils/pods.go b/pkg/api/handlers/utils/pods.go index fb795fa6a..5b6f6d34d 100644 --- a/pkg/api/handlers/utils/pods.go +++ b/pkg/api/handlers/utils/pods.go @@ -66,6 +66,7 @@ func GetPods(w http.ResponseWriter, r *http.Request) ([]*entities.ListPodsReport Namespace: pod.Namespace(), Status: status, InfraId: infraId, + Labels: pod.Labels(), } for _, ctr := range ctrs { state, err := ctr.State() -- cgit v1.2.3-54-g00ecf