Check if cgroup cpu limits are defined to get the number of CPUs

This commit is contained in:
Manuel de Brito Fontes 2018-08-25 18:08:12 -03:00 committed by Manuel Alejandro de Brito Fontes
parent 5e584ab693
commit 16fce7444f
No known key found for this signature in database
GPG key ID: 786136016A8BA02A
3 changed files with 77 additions and 1 deletions

View file

@ -18,7 +18,6 @@ package config
import (
"fmt"
"runtime"
"strconv"
"time"
@ -28,6 +27,7 @@ import (
"k8s.io/ingress-nginx/internal/ingress"
"k8s.io/ingress-nginx/internal/ingress/defaults"
"k8s.io/ingress-nginx/internal/runtime"
)
const (