mirror of
https://github.com/k3s-io/kubernetes.git
synced 2025-08-14 22:33:34 +00:00
Fix arm (32-bit) e2e.test compile failure
This commit is contained in:
parent
b00353c3e3
commit
64be85e9de
@ -33,6 +33,10 @@ import (
|
|||||||
"k8s.io/client-go/dynamic"
|
"k8s.io/client-go/dynamic"
|
||||||
)
|
)
|
||||||
|
|
||||||
|
const (
|
||||||
|
noxuInstanceNum int64 = 9223372036854775807
|
||||||
|
)
|
||||||
|
|
||||||
//NewRandomNameCustomResourceDefinition generates a CRD with random name to avoid name conflict in e2e tests
|
//NewRandomNameCustomResourceDefinition generates a CRD with random name to avoid name conflict in e2e tests
|
||||||
func NewRandomNameCustomResourceDefinition(scope apiextensionsv1beta1.ResourceScope) *apiextensionsv1beta1.CustomResourceDefinition {
|
func NewRandomNameCustomResourceDefinition(scope apiextensionsv1beta1.ResourceScope) *apiextensionsv1beta1.CustomResourceDefinition {
|
||||||
// ensure the singular doesn't end in an s for now
|
// ensure the singular doesn't end in an s for now
|
||||||
@ -84,7 +88,7 @@ func NewNoxuInstance(namespace, name string) *unstructured.Unstructured {
|
|||||||
"key": "value",
|
"key": "value",
|
||||||
},
|
},
|
||||||
"num": map[string]interface{}{
|
"num": map[string]interface{}{
|
||||||
"num1": 9223372036854775807,
|
"num1": noxuInstanceNum,
|
||||||
"num2": 1000000,
|
"num2": 1000000,
|
||||||
},
|
},
|
||||||
},
|
},
|
||||||
|
Loading…
Reference in New Issue
Block a user