Skip to content
This repository was archived by the owner on Dec 1, 2018. It is now read-only.

Commit a729275

Browse files
authored
Merge pull request #1692 from piosz/kube-ver
Bumped Kubernetes version to v1.7.0-beta.2 in integration tests
2 parents 1aa751d + 9f289b8 commit a729275

File tree

3 files changed

+14
-3
lines changed

3 files changed

+14
-3
lines changed

Makefile

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -34,7 +34,7 @@ ifeq ($(INTERACTIVE), 1)
3434
TTY=-t
3535
endif
3636

37-
SUPPORTED_KUBE_VERSIONS=1.5.4
37+
SUPPORTED_KUBE_VERSIONS=1.7.0-beta.2
3838
TEST_NAMESPACE=heapster-e2e-tests
3939

4040
HEAPSTER_LDFLAGS=-w -X k8s.io/heapster/version.HeapsterVersion=$(VERSION) -X k8s.io/heapster/version.GitCommit=$(GIT_COMMIT)

integration/.jenkins.sh

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,7 @@ export GOBIN="$GOPATH/bin"
77
export PATH="$GOBIN:$PATH"
88

99
# Kubernetes version(s) to run the integration tests against.
10-
kube_version="1.5.4"
10+
kube_version="1.7.0-beta.2"
1111

1212
if ! git diff --name-only origin/master | grep -c -E "*.go|*.sh|.*yaml|Makefile" &> /dev/null; then
1313
echo "This PR does not touch files that require integration testing. Skipping integration tests!"

integration/framework.go

Lines changed: 12 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -129,6 +129,9 @@ func disableClusterMonitoring(kubeBaseDir string) error {
129129
lines[i] = "ENABLE_CLUSTER_MONITORING=false"
130130
} else if strings.Contains(line, "NUM_MINIONS=") {
131131
lines[i] = "NUM_MINIONS=2"
132+
} else if strings.Contains(line, "MASTER_SIZE=") {
133+
// TODO(piosz): remove this once everything fits onto master
134+
lines[i] = "MASTER_SIZE=n1-standard-2"
132135
}
133136
}
134137
output := strings.Join(lines, "\n")
@@ -309,11 +312,19 @@ func downloadAndSetupCluster(version string) (baseDir string, err error) {
309312
}
310313

311314
func newKubeFramework(version string) (kubeFramework, error) {
315+
// Install gcloud components.
316+
// TODO(piosz): move this to the image creation
317+
cmd := exec.Command("gcloud", "components", "install", "alpha", "beta", "kubectl", "--quiet")
318+
glog.V(2).Infof("about to install gcloud components")
319+
if o, err := cmd.CombinedOutput(); err != nil {
320+
return nil, fmt.Errorf("Error while installing gcloud components: %v\n%s", err, o)
321+
}
322+
312323
var err error
313324
kubeBaseDir := ""
314325
if version != "" {
315326
if len(strings.Split(version, ".")) != 3 {
316-
return nil, fmt.Errorf("invalid kubernetes version specified - %q", version)
327+
glog.Warningf("Using not stable version - %q", version)
317328
}
318329
kubeBaseDir, err = downloadAndSetupCluster(version)
319330
if err != nil {

0 commit comments

Comments
 (0)