Commit Graph

4542 Commits (17a407dffb25e5bf4be0c70d518fbf12d5149f18)

Author SHA1 Message Date
dlorenc b17a097c01 Add logging of the storageclass list. 2017-02-27 13:56:57 -08:00
Dan Lorenc 8fd8564acd Add an integration test for pvcs. 2017-02-27 13:43:19 -08:00
Aaron Prindle 9b539db1ff Merge pull request #1143 from upmc-enterprises/registryCredsPrompt
Allow for addons to prompt for data input
2017-02-27 11:19:02 -08:00
Steve Sloka 50cb1f2a32 Fix boilerplate 2017-02-27 13:31:37 -05:00
Aaron Prindle 3db1a4d483 Merge pull request #1195 from endocode/dongsu/fix-9p-mount-kvm
pkg: fix host IP address for KVM driver for 9pfs mount
2017-02-27 10:00:58 -08:00
Steve Sloka 706d02b926 Fix go-client / Refactor k8s util code 2017-02-27 12:52:33 -05:00
Steve Sloka 60d9d1e142 Refactor registry addon 2017-02-27 11:09:09 -05:00
Steve Sloka c3d962b58c Allow for addons to prompt for data input 2017-02-27 11:09:09 -05:00
Dongsu Park ac513ebb1e pkg: fix host IP address for KVM driver for 9pfs mount
In case of KVM driver, "minikube mount" does not work, when mounting any
host directory via 9pfs. That's because in case of the KVM driver, a
different IP address is assigned to the host, 192.168.42.1, while other
drivers assign 10.0.2.2. That's why the following command hangs forever
inside the VM.

```
$ sudo mount -t 9p -o trans=tcp -o port=5640 10.0.2.2 /mount-9p
```

Fix it by changing the host IP address for the KVM driver.
2017-02-27 14:15:33 +01:00
Matt Rickard 6bd1b251d1 Merge pull request #1186 from r2d4/persistence
Reword persistence dir docs to be more clear
2017-02-26 10:06:08 -08:00
Matt Rickard f819214c3f Merge pull request #1190 from trishnaguha/groupname-fix-drivers
libvirt group for Fedora/CentOS/RHEL
2017-02-26 08:57:18 -08:00
trishnaguha f850eda140 libvirt group for Fedora/CentOS/RHEL 2017-02-26 18:00:31 +05:30
dlorenc 5790c3fe6a Merge pull request #1187 from dlorenc/prov
Add a default storage class/provisioner.
2017-02-25 16:03:00 -08:00
Dan Lorenc b7a5ebed1b Add a default storage class/provisioner. 2017-02-25 14:48:04 -08:00
Aaron Prindle 00d212229e Merge pull request #1185 from r2d4/ethtool
Add ethtool to minikube-iso
2017-02-25 12:25:20 -08:00
Aaron Prindle ff81c11b86 Merge pull request #1066 from aaron-prindle/minikube-9p
Added 9p server and a minikube mount command to minikube
2017-02-25 12:07:31 -08:00
Matt Rickard 95b98307c2 Reword persistence dir docs to be more clear 2017-02-25 10:59:48 -08:00
Aaron Prindle 60a5910f88 Added 9p server as well as minikube mount command 2017-02-25 10:08:45 -08:00
Matt Rickard c6be0892cc Merge pull request #1180 from r2d4/bootlocal
Add bootlocal script as custom startup script
2017-02-25 09:55:54 -08:00
Matt Rickard 4e5b2df2bf Add ethtool to minikube-iso 2017-02-25 09:54:52 -08:00
Matt Rickard 08b1992c94 Merge pull request #1183 from ankon/patch-2
Use grep -i to check the ISO version
2017-02-25 09:08:56 -08:00
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