Add namespace support to Kubernetes client (#1446)
* Add namespace support to Kubernetes client * Fix LastUpdateTime Condition
This commit is contained in:
@@ -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"
|
||||
|
Reference in New Issue
Block a user