Commit Graph

333 Commits (6ee6a82d0a211d8503e0c5b383fb9a1ae4fb6b13)

Author SHA1 Message Date
Matt Rickard ac7d49c124 Don't check kubernetes-version for kubeadm 2017-09-15 10:06:43 -07:00
Matt Rickard 72f7628d35 Add caching for kubeadm 2017-09-14 13:51:41 -07:00
Matt Rickard 49d471f4ba Add experimental kubeadm bootstrapper 2017-09-14 13:51:37 -07:00
Matt Rickard ebbc34d2ba Move drivers to pkg/drivers, share utils
Share most of the disk image setup between hyperkit and kvm drivers.
Move and remove a lot of shared configuration between all the in-tree
drivers: kvm, hyperkit, none.
2017-09-12 14:29:22 -07:00
Matt Rickard cc64fb0544 Merge pull request #1940 from r2d4/vet
golint, go vet, etc. changes
2017-09-11 15:30:52 -07:00
Matt Rickard 53341aa30d golint, go vet, etc. changes 2017-09-11 14:17:58 -07:00
Charlie Drage e959a848ce Update start.go with --vm-driver=none information
Updates the output in order to clarify commands as well as remove the
undeeded indentation.
2017-09-11 14:33:04 -04:00
Matt Rickard c5d6bc9dcf Merge pull request #1935 from krancour/distinct-client-cert
generate distinct cert for use by client
2017-09-08 15:26:25 -07:00
Kent Rancourt c571912b2d generate distinct cert for use by client 2017-09-08 17:54:58 -04:00
Matt Rickard f5e95e9223 Merge pull request #1911 from corlettb/master
Adding optional aws_session_token to configuration options for registry-creds
2017-09-08 11:06:29 -07:00
Aaron Prindle 0f975dd00c Merge pull request #1919 from aaron-prindle/add-files-dir
add files dir creation
2017-09-06 16:27:14 -07:00
Matt Rickard 0e6e930a7d Merge pull request #1881 from r2d4/cache-images-4-minikube
Cache images in minikube
2017-09-06 15:43:04 -07:00
Aaron Prindle cdddafa735 add files dir creation 2017-09-06 15:36:04 -07:00
Matt Rickard 3fb711c8ea Add feature flag for cache-images 2017-09-06 13:36:25 -07:00
Ben Corlett a2d8b1b434 - Passthrough aws region to registry-creds plugin
- Add optional aws_session_token to configuration options for registry-creds for aws sts credentials
2017-09-06 11:01:46 +01:00
Aaron Schlesinger 95c4556b6f Adding proper boilerplate 2017-08-31 16:12:41 -07:00
Aaron Schlesinger e99a378a85 Removing the "no buildable source files" error on non-linux machines 2017-08-31 15:24:04 -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 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 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 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
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
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
Matt Rickard fd921b3997 Review feedback 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
Matt Rickard 793739d46a Remove tests that called exit code 2017-08-22 11:05:59 -07:00
Matt Rickard 6008e1f14f Merge pull request #1853 from r2d4/return-error-code
Exit with non-zero code on error
2017-08-21 13:14:33 -07:00
Matt Rickard 56132b6183 Delete profile config on machine delete
Also, don't print out anything when a profile doesn't exist.
2017-08-20 22:47:14 -07:00
Matt Rickard 5692c2e59c Exit with non-zero code on error
We don't log it, since RootCmd.Execute() will already print it out.
2017-08-20 22:16:17 -07:00
Matt Rickard f19fab24b4 Rename localkube status to cluster status 2017-08-18 11:55:28 -07:00
Sunny e07eb01366 fix(cmd/start): prevent k8s version downgrades
- Create Config struct to store MachineConfig and KubernetesConfig as cluster
configuration.
- Write cluster configuration under $MINIKUBE_HOME/profiles/ directory
when a cluster is launched.
- Load the cluster configuration at `start` and compare the loaded k8s
version with the requested version. Prevent any version downgrade requests.
2017-08-11 18:29:34 +05:30
Matt Rickard 245c4a04de Merge pull request #1785 from r2d4/lint
go lint/vet fixes
2017-08-09 10:44:03 -07:00
Matt Rickard a02541d18b Add 'none' shell for docker-env output
This is for consumers who want the key/value output, but don't need the
shell directives.
2017-08-04 15:46:27 -07:00
Matt Rickard 5531a63b8d go lint/vet fixes 2017-08-04 13:42:10 -07:00
Matt Rickard 45eabf66eb Merge pull request #1720 from r2d4/etcd3
Use etcd embed package, switch apiserver to use etcdv3
2017-07-26 13:42:21 -07:00
Matt Rickard 90dc5c87c9 Don't default to kubenet network plugin
Hostports seem to require extra CNI configuration and the CNI hostport
plugin installed to work properly with kubenet.
2017-07-25 10:07:10 -07:00
Matt Rickard 5e5a0fb971 Merge pull request #1718 from darkowlzz/1683-delete-machine-profile
cmd/minikube: delete accept no arguments
2017-07-24 15:09:34 -07:00
dlorenc 24e08b7337 Fix the way 'minikube status' finds the kubecfg file. 2017-07-24 11:40:15 -07:00
Matt Rickard 8eaf471940 Merge pull request #1727 from r2d4/typo2
\t isn't escaped in ``
2017-07-24 11:21:25 -07:00
Aaron Prindle 29a7d7119a Merge pull request #1436 from Teddy-Schmitz/registry-creds-gcrurl
Add gcrurl env var to registry-creds addon deployment and configuration
2017-07-24 10:16:13 -07:00
Sunny 17ba029cba cmd/minikube: delete accept no arguments
This changeset makes the delete command to error out if any argument is passed
to it.
2017-07-22 18:13:19 +05:30
Matt Rickard ca4de62179 \t isn't escaped in `` 2017-07-21 14:27:49 -07:00
Aaron Prindle c4ab0947c5 Merge pull request #1711 from upmc-enterprises/registryCredsAWSRole
Add additional config options for registry-creds addon / Bump version
2017-07-20 15:20:30 -07:00
Matt Rickard afcee9a5fc Merge pull request #1708 from svanellewee/issue-1608-password-hiding-again
added AskForPasswordValue and 2 tests
2017-07-20 12:02:07 -07:00
Matt Rickard a682bbbfe0 Use embeded etcd package, switch to etcdv3 2017-07-20 11:39:04 -07:00