-
Notifications
You must be signed in to change notification settings - Fork 5k
Upgrade minimum supported k8s version to v1.12 #7723
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Merged
Merged
Changes from all commits
Commits
Show all changes
11 commits
Select commit
Hold shift + click to select a range
0e3950d
Change name of preload test for easier local testing
d0c2b64
remove mem requirement
39e4129
Remove parallelization between updating cluster and setting up certs
c722f3b
reintroduce memory flag
9319a6a
Move preload tests into preload_test.go for better organization
156558c
Merge branch 'master' of https://github.com/kubernetes/minikube into …
3d05a43
Upgrade oldest supported k8s version to v1.12.0
e3b6ba0
fix lint
02bafac
Fix unit test
7a1de72
remove v1alpha1 since we no longer supports k8s versio < 1.12
dac6566
remove testing for v1.11
File filter
Filter by extension
Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
There are no files selected for viewing
This file was deleted.
Oops, something went wrong.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,71 @@ | ||
// +build integration | ||
|
||
/* | ||
Copyright 2020 The Kubernetes Authors All rights reserved. | ||
|
||
Licensed under the Apache License, Version 2.0 (the "License"); | ||
you may not use this file except in compliance with the License. | ||
You may obtain a copy of the License at | ||
|
||
http://www.apache.org/licenses/LICENSE-2.0 | ||
|
||
Unless required by applicable law or agreed to in writing, software | ||
distributed under the License is distributed on an "AS IS" BASIS, | ||
WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. | ||
See the License for the specific language governing permissions and | ||
limitations under the License. | ||
*/ | ||
|
||
package integration | ||
|
||
import ( | ||
"context" | ||
"fmt" | ||
"os/exec" | ||
"strings" | ||
"testing" | ||
) | ||
|
||
func TestPreload(t *testing.T) { | ||
if NoneDriver() { | ||
t.Skipf("skipping %s - incompatible with none driver", t.Name()) | ||
} | ||
|
||
profile := UniqueProfileName("test-preload") | ||
ctx, cancel := context.WithTimeout(context.Background(), Minutes(40)) | ||
defer CleanupWithLogs(t, profile, cancel) | ||
|
||
startArgs := []string{"start", "-p", profile, "--memory=2200", "--alsologtostderr", "-v=3", "--wait=true", "--preload=false"} | ||
startArgs = append(startArgs, StartArgs()...) | ||
k8sVersion := "v1.17.0" | ||
startArgs = append(startArgs, fmt.Sprintf("--kubernetes-version=%s", k8sVersion)) | ||
|
||
rr, err := Run(t, exec.CommandContext(ctx, Target(), startArgs...)) | ||
if err != nil { | ||
t.Fatalf("%s failed: %v", rr.Command(), err) | ||
} | ||
|
||
// Now, pull the busybox image into the VMs docker daemon | ||
image := "busybox" | ||
rr, err = Run(t, exec.CommandContext(ctx, Target(), "ssh", "-p", profile, "--", "docker", "pull", image)) | ||
if err != nil { | ||
t.Fatalf("%s failed: %v", rr.Command(), err) | ||
} | ||
|
||
// Restart minikube with v1.17.3, which has a preloaded tarball | ||
startArgs = []string{"start", "-p", profile, "--memory=2200", "--alsologtostderr", "-v=3", "--wait=true"} | ||
startArgs = append(startArgs, StartArgs()...) | ||
k8sVersion = "v1.17.3" | ||
startArgs = append(startArgs, fmt.Sprintf("--kubernetes-version=%s", k8sVersion)) | ||
rr, err = Run(t, exec.CommandContext(ctx, Target(), startArgs...)) | ||
if err != nil { | ||
t.Fatalf("%s failed: %v", rr.Command(), err) | ||
} | ||
rr, err = Run(t, exec.CommandContext(ctx, Target(), "ssh", "-p", profile, "--", "docker", "images")) | ||
if err != nil { | ||
t.Fatalf("%s failed: %v", rr.Command(), err) | ||
} | ||
if !strings.Contains(rr.Output(), image) { | ||
t.Fatalf("Expected to find %s in output of `docker images`, instead got %s", image, rr.Output()) | ||
} | ||
} |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
Uh oh!
There was an error while loading. Please reload this page.