mirror of
https://github.com/k3s-io/kubernetes.git
synced 2025-08-05 18:24:07 +00:00
Improve 'No resource limits' message
This commit is contained in:
parent
b8b7c376ed
commit
3553de332e
@ -474,7 +474,7 @@ func describeLimitRangeSpec(spec corev1.LimitRangeSpec, prefix string, w PrefixW
|
|||||||
// DescribeLimitRanges merges a set of limit range items into a single tabular description
|
// DescribeLimitRanges merges a set of limit range items into a single tabular description
|
||||||
func DescribeLimitRanges(limitRanges *corev1.LimitRangeList, w PrefixWriter) {
|
func DescribeLimitRanges(limitRanges *corev1.LimitRangeList, w PrefixWriter) {
|
||||||
if len(limitRanges.Items) == 0 {
|
if len(limitRanges.Items) == 0 {
|
||||||
w.Write(LEVEL_0, "No resource limits.\n")
|
w.Write(LEVEL_0, "No LimitRange resource.\n")
|
||||||
return
|
return
|
||||||
}
|
}
|
||||||
w.Write(LEVEL_0, "Resource Limits\n Type\tResource\tMin\tMax\tDefault Request\tDefault Limit\tMax Limit/Request Ratio\n")
|
w.Write(LEVEL_0, "Resource Limits\n Type\tResource\tMin\tMax\tDefault Request\tDefault Limit\tMax Limit/Request Ratio\n")
|
||||||
|
Loading…
Reference in New Issue
Block a user