Add namespace support to Kubernetes client (#1446)

* Add namespace support to Kubernetes client

* Fix LastUpdateTime Condition
This commit is contained in:
Jake Sanders
2020-03-31 12:03:32 +01:00
committed by GitHub
parent 1222d076f2
commit 3d274ab6a2
3 changed files with 24 additions and 5 deletions

View File

@@ -129,7 +129,7 @@ func (k *kubernetes) getService(labels map[string]string) ([]*service, error) {
// parse out deployment status and inject into service metadata
if len(kdep.Status.Conditions) > 0 {
svc.Metadata["status"] = kdep.Status.Conditions[0].Type
svc.Metadata["started"] = kdep.Status.Conditions[0].LastUpdate
svc.Metadata["started"] = kdep.Status.Conditions[0].LastUpdateTime
delete(svc.Metadata, "error")
} else {
svc.Metadata["status"] = "n/a"