add status for kapp
@@ -93,6 +93,7 @@ type ApplicationDetails struct {
*Application `json:",inline"`
Metrics MetricHistories `json:"metrics"`
Roles []string `json:"roles"`
+ Status string `json:"status"` // Active or Terminating
}
type CreateOrUpdateApplicationRequest struct {
@@ -160,6 +161,7 @@ func (builder *Builder) BuildApplicationDetails(namespace coreV1.Namespace) (*Ap
Memory: applicationMetric.Memory,
},
Roles: roles,
+ Status: string(namespace.Status.Phase),
}, nil
}
