Commit Graph

1521 Commits (09e8cce24d43b4b2b1bb9d9f8b57c9876d1dea93)

Author SHA1 Message Date
Andreas Kohn b644c393c2 Use grep -i to check the ISO version
```sh
$ cat ~/.minikube/machines/minikube/config.json | grep ISO
$ cat ~/.minikube/machines/minikube/config.json | grep -i ISO
        "Boot2DockerURL": "file:///Users/andreas/.minikube/cache/iso/minikube-v1.0.6.iso",
```
2017-02-25 10:13:03 +01:00
Matt Rickard 2b7adb5535 Add bootlocal script as custom startup script 2017-02-24 15:57:51 -08:00
dlorenc 45262e853e Merge pull request #1177 from mshahat/master
Minikube installation requirements
2017-02-24 14:53:17 -08:00
Matt Rickard 5b58902ce6 Merge pull request #1178 from r2d4/mac-in-docker
Cross compile mac binary with CGO in docker
2017-02-24 14:01:25 -08:00
Matt Rickard d7850a20ea Merge pull request #1179 from r2d4/deploy-addons-makefile
Rebuild assets on any change in deploy/addons
2017-02-24 14:01:12 -08:00
Matt Rickard b26f0aa66b Merge pull request #1154 from r2d4/svc-tests
Refactor service package and add test coverage
2017-02-24 13:19:07 -08:00
Matt Rickard 941cd51ba8 Rebuild assets on any change in deploy/addons
This makefile dependency is currently only on the folder, not the files
within.  With this PR, the makefile will rebuild the assets when
changes are made to deploy/addons
2017-02-24 11:46:42 -08:00
Matt Rickard d3b4278028 Cross compile mac binary with CGO in docker 2017-02-24 11:03:30 -08:00
Matt Rickard 27e0dac476 Merge pull request #1175 from endocode/dongsu/fix-race-ssh-tests
Fix data races in unit tests
2017-02-24 10:26:05 -08:00
Mohamed Shahat cd10791da5 Minikube installation requirements
Adding internet connection to the list of installation requirements for
initial minikube start. Ref: #1148
2017-02-24 17:12:21 +00:00
Dongsu Park 4eb9e92dff pkg: fix data race around KubeConfigFile
TestSetupKubeConfig fails when running "go test --race", because of
concurrent accesses from multiple goroutines.

```
WARNING: DATA RACE
Write at 0x00c4201cc4b8 by goroutine 16:
k8s.io/minikube/pkg/minikube/kubeconfig.TestSetupKubeConfig.func1()
    k8s.io/minikube/pkg/minikube/kubeconfig/config_test.go:103 +0x23a
testing.tRunner()
    /usr/local/golang/src/testing/testing.go:657 +0x107
```

To fix that, convert KubeConfigFile to an atomic value that stores
string. Callers should run helper functions, SetKubeConfigFile() and
GetKubeConfigFile() instead of direct access to the value.
2017-02-24 17:58:59 +01:00
Dongsu Park 6cf5ba7a28 pkg: fix data race around CommandToOutput
TestGetLocalkubeStatus fails when running "go test --race", because of
concurrent accesses from multiple goroutines.

```
WARNING: DATA RACE
Read at 0x00c420435378 by goroutine 43:
k8s.io/minikube/pkg/minikube/tests.(*SSHServer).Start.func1.1()
    k8s.io/minikube/pkg/minikube/tests/ssh_mock.go:122 +0x389

Previous write at 0x00c420435378 by goroutine 40:
k8s.io/minikube/pkg/minikube/cluster.TestGetLocalkubeStatus()
    k8s.io/minikube/pkg/minikube/cluster/cluster_test.go:359 +0x540
testing.tRunner()
    /usr/local/golang/src/testing/testing.go:657 +0x107
```

To fix that, convert CommandToOutput to an atomic value that stores
the map. Callers should run helper functions, SetCommandToOutput() and
GetCommandToOutput() instead of direct access to the value.
2017-02-24 17:58:59 +01:00
Dongsu Park e22b268f7f pkg: fix data race around HasASessionRequested
TestCreateSSHShell fails when running "go test --race", because of
concurrent accesses from multiple goroutines.

```
WARNING: DATA RACE
Read at 0x00c42025b730 by goroutine 42:
k8s.io/minikube/pkg/minikube/cluster.TestCreateSSHShell()
    k8s.io/minikube/pkg/minikube/cluster/cluster_test.go:523 +0x543
testing.tRunner()
    /usr/local/golang/src/testing/testing.go:657 +0x107

Previous write at 0x00c42025b730 by goroutine 49:
k8s.io/minikube/pkg/minikube/tests.(*SSHServer).Start.func1.1()
    k8s.io/minikube/pkg/minikube/tests/ssh_mock.go:95 +0x743
```

To fix that, convert HadASessionRequested to an atomic variable.
Callers should run helper functions, SetSessionRequested() and
IsSessionRequested() instead of direct access to the variable.
2017-02-24 17:58:10 +01:00
Aaron Prindle f247803779 Merge pull request #1146 from aaron-prindle/transfer-refactor
Refactored file transfer code to better abstract ssh
2017-02-23 14:07:01 -08:00
Matt Rickard 54b692c0b0 Merge pull request #1170 from ankon/pr/admin-masters
Set /O=system:masters for the admin certificate DN
2017-02-23 11:19:11 -08:00
Andreas Kohn 41e20c42f7
Remove the hint to set the RBAC super user 2017-02-23 14:24:08 +01:00
Andreas Kohn bba2ef86ee
Add the 'minikube' user to the 'system:masters' group 2017-02-23 14:20:15 +01:00
Aaron Prindle 64f45f0aac Merge pull request #1169 from aaron-prindle/update-localkube-image
Update localkube image
2017-02-22 15:10:53 -08:00
Aaron Prindle 6b92a99699 Update localkube image 2017-02-22 15:03:42 -08:00
Matt Rickard b78fb926bc Merge pull request #1160 from r2d4/kubeconfig-tests
Add test coverage for SetupKubeConfig
2017-02-22 13:25:54 -08:00
Matt Rickard 7f13944043 Merge pull request #1150 from r2d4/env-tests
Add test coverage for cmd/docker-env
2017-02-22 13:25:34 -08:00
Matt Rickard 7f2f13a2ed Merge pull request #1168 from r2d4/iso-version
Add version info to minikube-iso
2017-02-22 13:25:12 -08:00
Matt Rickard 0bcbd99e1b Add version info to minikube-iso 2017-02-22 11:47:57 -08:00
Matt Rickard c4196b65be Add test coverage for SetupKubeConfig 2017-02-22 11:39:55 -08:00
dlorenc e17c79ba60 Merge pull request #1164 from endocode/dongsu/fix-url-parse-in-golang-1.8
vendor: Better deal with failures under golang 1.8
2017-02-22 11:34:32 -08:00
Aaron Prindle 574c543f4a Refactored file transfer code to better abstract ssh 2017-02-22 09:46:51 -08:00
Aaron Prindle 0f6c85416b Merge pull request #1167 from aaron-prindle/parse-sha-coverage
Added test coverage for ParseSHAFromURL
2017-02-22 09:23:46 -08:00
Dongsu Park 5db5d0cd66 UPDATE_KUBERNETES.md: add notes on bugfix patches and vendor updates
Suggested by @dlorenc.
2017-02-22 16:31:52 +01:00
Dongsu Park f9bfe65fc8 vendor: Better deal with failures under golang 1.8beta1
If minikube is built with go 1.8 or newer, localkube panics immediately
with the following message:

```
Feb 21 15:04:05 minikube localkube[3566]: I0221 15:04:05.712095    3566 services.go:51] Setting service IP to "10.0.0.1" (read-write).
Feb 21 15:04:05 minikube localkube[3566]: panic: parse 127.0.0.1:8080: first path segment in URL cannot contain colon
Feb 21 15:04:05 minikube localkube[3566]: goroutine 151 [running]:
Feb 21 15:04:05 minikube localkube[3566]: k8s.io/minikube/vendor/k8s.io/kubernetes/pkg/client/clientset_generated/internalclientset/typed/core/internalversion.NewForConfigOrDie(0xc420c75380, 0xc420d04d40)
```

This issue was already reported to Kubernetes,
https://github.com/kubernetes/kubernetes/issues/38380. That was already
fixed in Kubernetes, but it's not included in Minikube yet.
So let's cherry-pick the commit to minikube, to avoid the panic.

Original commit message from
https://github.com/kubernetes/kubernetes/pull/38519

```
If there is any error in the initial parsing then we should just try
adding the scheme.

url.Parse(base) has changed in 1.8. Please see the following change
c5ccbdd22b

Fixes https://github.com/kubernetes/kubernetes/issues/38380
```

/cc @dims
2017-02-22 15:10:11 +01:00
Aaron Prindle 68973786d6 Added test coverage for ParseSHAFromURL 2017-02-21 21:33:40 -08:00
Matt Rickard 213857032a Merge pull request #1156 from r2d4/client-tests
Add test coverage for pkg/minikube/machine
2017-02-21 10:26:38 -08:00
Matt Rickard 45e61ab75a Add test coverage for pkg/minikube/machine 2017-02-21 10:26:10 -08:00
Aaron Prindle 3d91f91ede Merge pull request #1159 from aaron-prindle/downloader-tests
Added unit tests to downloader.go
2017-02-21 10:17:57 -08:00
Matt Rickard 4afa80b3e9 Merge pull request #1157 from r2d4/crypto-test
Add test coverage for GenerateSignedCert
2017-02-21 10:17:30 -08:00
Matt Rickard e0a5dbc4f8 Add test coverage for GenerateSignedCert 2017-02-21 10:16:59 -08:00
Matt Rickard f757aee562 Merge pull request #1155 from r2d4/test-cov-kubectl
Add test coverage for MaybeWantKubectlUpdateMessage
2017-02-21 10:15:39 -08:00
Matt Rickard 51d49b6dfa Add test coverage for MaybeWantKubectlUpdateMessage 2017-02-21 10:14:06 -08:00
Matt Rickard 7aaccedadc Add test coverage for cmd/docker-env 2017-02-20 11:30:57 -08:00
Matt Rickard 69f0a9f99a Refactor service package and add test coverage 2017-02-20 11:24:36 -08:00
Aaron Prindle 6959aa0ce2 Added unit tests to downloader.go 2017-02-19 21:01:01 -08:00
Aaron Prindle 3433a3028c Added API Name as configuration option 2017-02-18 15:49:49 -08:00
Aaron Prindle ffcccbd646 Merge pull request #1145 from aaron-prindle/etcd-access
Change etcd to be accessible within pods
2017-02-17 15:41:44 -08:00
Aaron Prindle d3531c9eec Change etcd to be accessible within pods 2017-02-17 15:40:48 -08:00
Matt Rickard 88f8782d97 Merge pull request #1140 from r2d4/service-refactor
Refactor services into its own package
2017-02-17 15:39:36 -08:00
Aaron Prindle bb4b7ceb95 Merge pull request #1106 from aaron-prindle/update-localkube-docker
Updated localkube docker instructions, added build to main makefile
2017-02-17 15:39:28 -08:00
Matt Rickard bc84cb9d43 Merge pull request #1144 from kirs/patch-1
Document how to set vm-driver
2017-02-17 15:08:27 -08:00
Kir Shatrov b130573fed Document how to set vm-driver 2017-02-17 18:02:53 -05:00
Matt Rickard 86b1fd1916 Refactor services into its own package
pkg/minikube/cluster has become too crowded with service related
functions.  I've moved these to their own package, which will make
updating client-go easier because everything will be in one place.

There is still a little bit of work to be done with making
pkg/minikube/cluster free of references to kubernetes packages
2017-02-17 09:58:22 -08:00
Matt Rickard 22c0aecba4 Merge pull request #1141 from dims/force-native-go-ssh-client
Force libmachine to use Native Go SSH client
2017-02-17 09:56:08 -08:00
Matt Rickard 687e775b18 Merge pull request #1138 from r2d4/remove-b2d
Remove b2d from deploy and Makefile
2017-02-17 09:45:28 -08:00