Skip to content

Commit

Permalink
Adding resources to E2E test gameserver Spec
Browse files Browse the repository at this point in the history
Decrease the amount of CPU, memory resources per Gameserver.
So that we can exucute bigger STRESS_TEST_LEVEL in the same cluster.
  • Loading branch information
aLekSer authored and markmandel committed Feb 21, 2019
1 parent 992b1bb commit 4d4c356
Showing 1 changed file with 14 additions and 1 deletion.
15 changes: 14 additions & 1 deletion test/e2e/gameserver_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -19,6 +19,8 @@ import (
"testing"
"time"

"k8s.io/apimachinery/pkg/api/resource"

"agones.dev/agones/pkg/apis/stable"
"agones.dev/agones/pkg/apis/stable/v1alpha1"
e2eframework "agones.dev/agones/test/e2e/framework"
Expand Down Expand Up @@ -201,7 +203,18 @@ func defaultGameServer() *v1alpha1.GameServer {
Containers: []corev1.Container{{
Name: "udp-server",
Image: framework.GameServerImage,
ImagePullPolicy: corev1.PullIfNotPresent}},
ImagePullPolicy: corev1.PullIfNotPresent,
Resources: corev1.ResourceRequirements{
Requests: corev1.ResourceList{
corev1.ResourceCPU: resource.MustParse("30m"),
corev1.ResourceMemory: resource.MustParse("32Mi"),
},
Limits: corev1.ResourceList{
corev1.ResourceCPU: resource.MustParse("30m"),
corev1.ResourceMemory: resource.MustParse("32Mi"),
},
},
}},
},
},
},
Expand Down

0 comments on commit 4d4c356

Please sign in to comment.