mirror of
https://github.com/k3s-io/kubernetes.git
synced 2025-08-10 20:42:26 +00:00
Fix gofmt complaint
This commit is contained in:
parent
74f368f50e
commit
759335ab69
@ -70,20 +70,20 @@ func (d *LimitRangeDescriber) Describe(namespace, name string) (string, error) {
|
||||
fmt.Fprintf(out, "Name:\t%s\n", limitRange.Name)
|
||||
fmt.Fprintf(out, "Type\tResource\tMin\tMax\n")
|
||||
fmt.Fprintf(out, "----\t--------\t---\t---\n")
|
||||
for i, _ := range limitRange.Spec.Limits {
|
||||
for i := range limitRange.Spec.Limits {
|
||||
item := limitRange.Spec.Limits[i]
|
||||
maxResources := item.Max
|
||||
minResources := item.Min
|
||||
|
||||
set := map[api.ResourceName]bool{}
|
||||
for k, _ := range maxResources {
|
||||
for k := range maxResources {
|
||||
set[k] = true
|
||||
}
|
||||
for k, _ := range minResources {
|
||||
for k := range minResources {
|
||||
set[k] = true
|
||||
}
|
||||
|
||||
for k, _ := range set {
|
||||
for k := range set {
|
||||
// if no value is set, we output -
|
||||
maxValue := "-"
|
||||
minValue := "-"
|
||||
|
Loading…
Reference in New Issue
Block a user