Commit Graph

2243 Commits (a8fedc86e10790fa034c94b372a9d0d7c3f6dd65)

Author SHA1 Message Date
Aaron Schlesinger e99a378a85 Removing the "no buildable source files" error on non-linux machines 2017-08-31 15:24:04 -07:00
Phu Kieu 8fe16fdf94 Update localkube to use socat with tls auth 2017-08-31 08:34:53 -07:00
Matt Rickard e7aa059b6a Set imagePullPolicy:IfNotPresent on kube-dns 2017-08-30 22:36:21 -07:00
Matt Rickard 57aa3e61a9 Use the build tags for containers/image everywhere 2017-08-30 22:36:21 -07:00
Matt Rickard eb73bad9c5 Cache busybox in integration test 2017-08-30 22:36:21 -07:00
Matt Rickard 6ac177fd7a Make MinikubeRunner implement CommandRunner
It is useful to be able to have a command runner to call directly in the
integration tests
2017-08-30 22:36:21 -07:00
Matt Rickard 967ac2c754 Keep ~/.minikube/cache directory
We shouldn't blow away the cache on every integration test.

keep .minikube for tests

hack/jenkins: Delete VM before manual cleanup
2017-08-30 22:36:21 -07:00
Matt Rickard 55b41415ed Cache images for localkube
This PR introduces caching of localkube images.  It makes a best effort
to cache the essential images localkube needs as minikube starts up.
Currently, the list of cached images is hardcoded, but future work might
entail

1. Cached images as a property of the cluster bootstrapper - to allow
localkube and kubeadm to cache their respective images.
2. Addons contain image information.  Then, we can selectively cache and
preload only the addon images that are enabled.
2017-08-30 22:36:16 -07:00
Matt Rickard 201e5f9eff Vendor changes 2017-08-30 17:46:35 -07:00
Matt Rickard dd91fea301 Merge pull request #1902 from aledbf/icb12
Update nginx ingress controller version to 0.9-beta.12
2017-08-30 17:44:43 -07:00
Matt Rickard b2eb518368 Merge pull request #1897 from r2d4/ipvs-mods
Add additional modules for IPVS
2017-08-30 14:53:36 -07:00
Manuel de Brito Fontes e7cd5aba54 Update nginx ingress controller version to 0.9-beta.12 2017-08-30 18:24:48 -03:00
Matt Rickard b0db008b87 Merge pull request #1886 from r2d4/localkube-bootstrapper
Add localkube as a bootstrapper
2017-08-30 10:51:24 -07:00
Matt Rickard 81f12caa87 Merge pull request #1828 from r2d4/in-tree-kvm
Bring KVM driver in-tree
2017-08-30 10:46:29 -07:00
Matt Rickard 3f10427e2a Merge pull request #1754 from hanks/fix/optional-arn-aws-role
fix(config): make ARN of AWS role input optional
2017-08-29 10:02:49 -07:00
Matt Rickard 54395a6a68 Merge pull request #1896 from r2d4/easy-iso-make
Add makefile rule for linux-defconfig
2017-08-28 16:19:04 -07:00
Matt Rickard a40b2f053e Merge pull request #1895 from r2d4/hyperkit-disk
Change cleanup command to accomodate swap disk
2017-08-28 16:17:58 -07:00
Matt Rickard e64f06ed99 Merge pull request #1873 from r2d4/none-driver-integration
Add target for none driver integration
2017-08-28 14:59:27 -07:00
Matt Rickard 48fd6ecb65 Add localkube as a bootstrapper
Introduce the --bootstraper or -b flag that toggles the cluster
bootstrapper.  The default bootstrapper (and only bootstrapper at this
time) is localkube.

The bootstrapper interface contains all the functions needed to
bootstrap a kubernetes cluster.  It ingests a KubernetesConfig, which
contains all the configuration for the cluster, as well as a
CommandRunner, which is the interface upon which it will run commands
and transfer files to possibly remotely set up the cluster.

This moves the localkube functions out of cluster.go into their own
package at k8s.io/minikube/pkg/minikube/bootstrapper/localkube.
2017-08-28 13:23:41 -07:00
Matt Rickard 6c73183cea Add target for none driver integration
Theres currently no good way to run the integration tests for the none
driver locally.  Now that we've added the e2e target, we can depend on
that.  Running the e2e test binary locally requires the testdata folder
to be in a different path, since it is relative to where the code is
being ran.  I added a testdata-dir flag to the integration tests so we
can set it appropriately for when we want to run the e2e binary by
itself.

I also made the e2e test binary a PHONY target, so we rebuild it each
time.  I had trouble collecting the dependencies on the integration
test packages
2017-08-28 11:56:30 -07:00
Matt Rickard 531e81103f Rename kvm driver to kvm2 2017-08-28 11:52:39 -07:00
Matt Rickard 48b165808c Bring KVM driver in-tree
Add boilerplate

Review feedback
2017-08-28 11:52:35 -07:00
Matt Rickard 1052dda37a Move CalculateDiskSizeInMB to utils to use in kvm 2017-08-28 11:27:34 -07:00
Matt Rickard 2fd858844b Add additional modules for IPVS
Fixes #1894
2017-08-28 11:02:11 -07:00
Matt Rickard d880f6bb2e Add makefile rule for linux-defconfig
I find myself referencing this documentation every time I make kernel
configuration changes.  I've added a simple rule to open the kernel
configuration menu, and then save your changes to the right directory.
2017-08-28 11:01:22 -07:00
Matt Rickard afc8b52fd8 Change cleanup command to accomodate swap disk
Hyperkit was mounting swap disks, which we can't detach with the
hdiutil util like we're using.  Its sufficient to just hdiutil detach
/dev/disk1

```
/dev/disk1	FDisk_partition_scheme
/dev/disk1s1	Linux
/dev/disk1s2	Linux_Swap
```
2017-08-28 10:43:32 -07:00
Matt Rickard 3c9603ad64 Merge pull request #1888 from dragon3/master
Recover "awsregion" parameter for registry-creds addon
2017-08-25 18:02:19 -07:00
Matt Rickard ccb0a1e3fd Merge pull request #1890 from r2d4/sshd
sshd_config and motd
2017-08-25 18:01:13 -07:00
Matt Rickard 555a1ee778 Bump iso to v0.23.3 2017-08-25 14:57:12 -07:00
Matt Rickard bb50f5df36 Add minikube motd for ssh login 2017-08-25 13:29:44 -07:00
Matt Rickard 946d406650 Add sshd_config to minikube iso
Overwrite the default configuration and enable

PrintMotd
PermitTunnel yes
MaxSessions 1000

So that we can run multiplex more ssh connections and do things in
parallel.
2017-08-25 13:28:18 -07:00
Ryuzo Yamamoto 6daef73f8d Recover "awsregion" parameter for registry-cred addon
It seems the "awsregion" parameter was removed in 8ba6f47876 (#1711) unexpectedly.
It caused making incorrect awsecr-cred with unexpected aws region.
2017-08-25 09:39:58 -04:00
hanks 5556ce9436 fix(config): make ARN of AWS role input optional 2017-08-25 15:38:08 +09:00
Matt Rickard 3a0d03f93b Merge pull request #1844 from r2d4/command-runner
Add CommandRunner interface
2017-08-24 15:07:51 -07:00
Jiahao Chen db83dfdd0d README: fix typo
kubernetes cluster componenets -> components
2017-08-24 14:20:45 -07:00
Matt Rickard caa8a540e6 Merge pull request #1776 from dlorenc/hyperkit
WIP: Initial hyperkit driver implementation.
2017-08-24 14:14:47 -07:00
dlorenc a05a4fe35a Code review feedback. 2017-08-24 11:54:59 -07:00
dlorenc 1ac4166b10 Add darwin build tag. 2017-08-24 11:54:59 -07:00
dlorenc b4202d6d02 Unit tests. 2017-08-24 11:54:59 -07:00
dlorenc e3d239929b Jenkins/Makefile targets. 2017-08-24 11:54:59 -07:00
dlorenc 28f9d5dc1a Initial hyperkit driver implementation. 2017-08-24 11:54:59 -07:00
Aaron Prindle 88fef61da2 Merge pull request #1865 from aaron-prindle/none-docs
updated driver documentation to include none driver
2017-08-24 10:33:28 -07:00
Matt Rickard d34142de03 Merge pull request #1879 from r2d4/dot-exe
Rename e2e-windows-amd64 to e2e-windows-amd64.exe
2017-08-23 18:24:35 -07:00
Matt Rickard cac45c3ed8 Use syncmap instead of sync.Atomic 2017-08-23 15:08:32 -07:00
Matt Rickard 7f5e4b7e82 Rename e2e-windows-amd64 to e2e-windows-amd64.exe 2017-08-23 15:01:52 -07:00
Matt Rickard fd921b3997 Review feedback 2017-08-23 14:33:34 -07:00
Matt Rickard fd37e6daec Move setupCerts to use CommandRunners 2017-08-23 14:33:34 -07:00
Matt Rickard 8d4e1d48be Add comments for exported CommandRunner functions 2017-08-23 14:33:34 -07:00
Matt Rickard 7f558f1a11 Move tests over to use FakeCommandRunner 2017-08-23 14:33:34 -07:00
Matt Rickard 5a9ecbe672 Add CommandRunner interface
Two implementations, SSHRunner and ExecRunner allow commands to be run
either through SSH or os.Exec respectively.  This allows the cluster
bootstrappers to be unaware of how they are actually executing the
commands they need.  Copy and Remove functions provide a nice
convenience function for running commands that copy and remove files
respectively.
2017-08-23 14:33:34 -07:00