showing status

feature/ui
Karolis Rusenas 2019-05-23 23:17:52 +01:00
parent 0583b012cd
commit 15e193a3e8
1 changed files with 3 additions and 0 deletions

View File

@ -3,6 +3,7 @@ package http
import ( import (
"net/http" "net/http"
"github.com/keel-hq/keel/internal/k8s"
"github.com/keel-hq/keel/internal/policy" "github.com/keel-hq/keel/internal/policy"
) )
@ -16,6 +17,7 @@ type resource struct {
Images []string `json:"images"` Images []string `json:"images"`
Labels map[string]string `json:"labels"` Labels map[string]string `json:"labels"`
Annotations map[string]string `json:"annotations"` Annotations map[string]string `json:"annotations"`
Status k8s.Status `json:"status"`
} }
func (s *TriggerServer) resourcesHandler(resp http.ResponseWriter, req *http.Request) { func (s *TriggerServer) resourcesHandler(resp http.ResponseWriter, req *http.Request) {
@ -38,6 +40,7 @@ func (s *TriggerServer) resourcesHandler(resp http.ResponseWriter, req *http.Req
Labels: v.GetLabels(), Labels: v.GetLabels(),
Annotations: v.GetAnnotations(), Annotations: v.GetAnnotations(),
Images: v.GetImages(), Images: v.GetImages(),
Status: v.GetStatus(),
}) })
} }