fix static check errors in vendor/k8s.io/apimachinery/pkg/api/resource
Signed-off-by: Sakura <longfei.shang@daocloud.io>
This commit is contained in:
parent
50fa183d51
commit
9897f33f7d
@ -48,7 +48,6 @@ test/integration/garbagecollector
|
|||||||
test/integration/scheduler_perf
|
test/integration/scheduler_perf
|
||||||
test/integration/ttlcontroller
|
test/integration/ttlcontroller
|
||||||
vendor/k8s.io/apimachinery/pkg/api/meta
|
vendor/k8s.io/apimachinery/pkg/api/meta
|
||||||
vendor/k8s.io/apimachinery/pkg/api/resource
|
|
||||||
vendor/k8s.io/apimachinery/pkg/apis/meta/v1/unstructured
|
vendor/k8s.io/apimachinery/pkg/apis/meta/v1/unstructured
|
||||||
vendor/k8s.io/apimachinery/pkg/apis/meta/v1/unstructured/unstructuredscheme
|
vendor/k8s.io/apimachinery/pkg/apis/meta/v1/unstructured/unstructuredscheme
|
||||||
vendor/k8s.io/apimachinery/pkg/apis/meta/v1/validation
|
vendor/k8s.io/apimachinery/pkg/apis/meta/v1/validation
|
||||||
|
@ -37,12 +37,8 @@ var (
|
|||||||
big1024 = big.NewInt(1024)
|
big1024 = big.NewInt(1024)
|
||||||
|
|
||||||
// Commonly needed inf.Dec values-- treat as read only!
|
// Commonly needed inf.Dec values-- treat as read only!
|
||||||
decZero = inf.NewDec(0, 0)
|
decZero = inf.NewDec(0, 0)
|
||||||
decOne = inf.NewDec(1, 0)
|
decOne = inf.NewDec(1, 0)
|
||||||
decMinusOne = inf.NewDec(-1, 0)
|
|
||||||
decThousand = inf.NewDec(1000, 0)
|
|
||||||
dec1024 = inf.NewDec(1024, 0)
|
|
||||||
decMinus1024 = inf.NewDec(-1024, 0)
|
|
||||||
|
|
||||||
// Largest (in magnitude) number allowed.
|
// Largest (in magnitude) number allowed.
|
||||||
maxAllowed = infDecAmount{inf.NewDec((1<<63)-1, 0)} // == max int64
|
maxAllowed = infDecAmount{inf.NewDec((1<<63)-1, 0)} // == max int64
|
||||||
|
@ -28,11 +28,6 @@ import (
|
|||||||
inf "gopkg.in/inf.v0"
|
inf "gopkg.in/inf.v0"
|
||||||
)
|
)
|
||||||
|
|
||||||
func amount(i int64, exponent int) infDecAmount {
|
|
||||||
// See the below test-- scale is the negative of an exponent.
|
|
||||||
return infDecAmount{inf.NewDec(i, inf.Scale(-exponent))}
|
|
||||||
}
|
|
||||||
|
|
||||||
func dec(i int64, exponent int) infDecAmount {
|
func dec(i int64, exponent int) infDecAmount {
|
||||||
// See the below test-- scale is the negative of an exponent.
|
// See the below test-- scale is the negative of an exponent.
|
||||||
return infDecAmount{inf.NewDec(i, inf.Scale(-exponent))}
|
return infDecAmount{inf.NewDec(i, inf.Scale(-exponent))}
|
||||||
|
Loading…
Reference in New Issue
Block a user