add memory limit to all minikube starts in integration test
parent
852bceeef2
commit
5d34a5e7e6
|
@ -756,11 +756,11 @@ func validateServiceCmd(ctx context.Context, t *testing.T, profile string) {
|
|||
|
||||
rr, err := Run(t, exec.CommandContext(ctx, "kubectl", "--context", profile, "create", "deployment", "hello-node", "--image=k8s.gcr.io/echoserver:1.4"))
|
||||
if err != nil {
|
||||
t.Logf("%q failed: %v (may not be an error).", rr.Command(), err)
|
||||
t.Fatalf("failed to create hello-node deployment with this command %q: %v.", rr.Command(), err)
|
||||
}
|
||||
rr, err = Run(t, exec.CommandContext(ctx, "kubectl", "--context", profile, "expose", "deployment", "hello-node", "--type=NodePort", "--port=8080"))
|
||||
if err != nil {
|
||||
t.Logf("%q failed: %v (may not be an error)", rr.Command(), err)
|
||||
t.Fatalf("failed to expose hello-node deployment: %q : %v", rr.Command(), err)
|
||||
}
|
||||
|
||||
if _, err := PodWait(ctx, t, profile, "default", "app=hello-node", Minutes(10)); err != nil {
|
||||
|
|
|
@ -100,7 +100,7 @@ func TestScheduledStopUnix(t *testing.T) {
|
|||
}
|
||||
|
||||
func startMinikube(ctx context.Context, t *testing.T, profile string) {
|
||||
args := append([]string{"start", "-p", profile}, StartArgs()...)
|
||||
args := append([]string{"start", "-p", profile, "--memory=1900"}, StartArgs()...)
|
||||
rr, err := Run(t, exec.CommandContext(ctx, Target(), args...))
|
||||
if err != nil {
|
||||
t.Fatalf("starting minikube: %v\n%s", err, rr.Output())
|
||||
|
|
|
@ -40,7 +40,7 @@ func TestInsufficientStorage(t *testing.T) {
|
|||
ctx, cancel := context.WithTimeout(context.Background(), Minutes(5))
|
||||
defer Cleanup(t, profile, cancel)
|
||||
|
||||
startArgs := []string{"start", "-p", profile, "--output=json", "--wait=true"}
|
||||
startArgs := []string{"start", "-p", profile, "--memory=1900", "--output=json", "--wait=true"}
|
||||
startArgs = append(startArgs, StartArgs()...)
|
||||
c := exec.CommandContext(ctx, Target(), startArgs...)
|
||||
// artificially set /var to 100% capacity
|
||||
|
|
Loading…
Reference in New Issue