feat: add message indicating that the user is looking at default limits/reservations

Without this bit of metadata, it appears to the user that the resource limits are just that, whereas this is actually scoped to per-process-type.
This commit is contained in:
Jose Diaz-Gonzalez
2019-05-13 18:18:32 -04:00
parent b60934629e
commit 72fce08e87
2 changed files with 47 additions and 6 deletions

View File

@@ -142,7 +142,9 @@ func reportResourceType(appName string, processType string, resourceType string)
}
message := fmt.Sprintf("resource %v %v information", noun, appName)
if processType != "_default_" {
if processType == "_default_" {
message = fmt.Sprintf("%v [defaults]", message)
} else {
message = fmt.Sprintf("%v (%v)", message, processType)
}
common.LogInfo2Quiet(message)