Commit Graph

19 Commits (f22efd871aa7173f20ba41dc7e43735daa8dc051)

Author SHA1 Message Date
Medya Gh f17f3408a8 convert all RetryAfter to retry.Expo 2019-08-13 23:48:30 -07:00
tstromberg 9a9f9edf5f First pass at lint-ageddon 2019-05-13 18:31:55 -07:00
Anders F Björklund 4667c28164 Merge branch 'master' into cyclo 2019-03-26 07:16:28 +01:00
Anders F Björklund 00c9846a19 Decrease cyclomatic complexity for code
Mostly by using the "extract method" pattern.

Here was the report (from gocyclo), before:

16 kubeadm (*KubeadmBootstrapper).UpdateCluster pkg/minikube/bootstrapper/kubeadm/kubeadm.go:374:1
16 cluster StartHost pkg/minikube/cluster/cluster.go:64:1
16 tunnel setupRoute pkg/minikube/tunnel/tunnel.go:135:1
16 provision configureAuth pkg/provision/buildroot.go:218:1
21 util setElement pkg/util/config.go:50:1
2019-03-16 22:18:14 +01:00
Anders F Björklund 46640cef68 Address all lint except undocumented and stutter
These two lint warnings still remain, after the cleanup:
"exported ... should have comment or be unexported"

"type name will be used as foo.FooBar by other packages,
 and that stutters; consider calling this Bar"
2019-03-02 22:03:55 +01:00
Thomas Stromberg 055c8002b1 Replace %s format directives with %v for errors.
Previously we were mixed between the two forms. This commit picks %v,
which is consistent with the Kubernetes code base. They both effectively
do the same thing in this case, though %v works with any object, and %s
only with string objects.
2018-09-28 16:05:27 -07:00
Arnaud MAZIN b25f82759f Create empty map if Nil 2018-04-29 18:24:25 -07:00
Arnaud MAZIN 3f9350da72 fmt 2018-04-29 18:24:25 -07:00
Arnaud MAZIN cc41522545 added map[string]string argument parsing for eviction-like arguments 2018-04-29 18:24:25 -07:00
Matt Rickard d56d41b956 Add duration as a configurable type for localkube 2017-07-19 14:16:33 -07:00
Matt Rickard 3b46c27b16 Minikube changes for v1.6.0-alpha.1 2017-03-31 13:23:59 -07:00
dlorenc 964ff65f39 Fix gofmt. 2017-03-14 10:07:34 -07:00
Dale Hamel 107e3324a6 Add support for parsing CIDRs to config 2017-03-07 14:59:36 -05:00
Eden Li c632321122 support componentconfigs with native type aliases
Some componentconfig options are aliased to native convertible types
(e.g. ProxyMode) but FindAndSet() was unable to detect that and so it
wasn't possible to set these values via `--extra-config`.

This change addresses that by using the reflected value's Kind instead
of a type assertion on its interface.

It's also worth noting that any value with the type Duration (e.g.
proxy.IPTablesSyncPeriod) is also unable to be set for the same reason,
but this commit does not address that.

See https://github.com/kubernetes/minikube/issues/1217
2017-03-03 01:29:46 -08:00
Jimmi Dyson 23a1e4ada4
Allow setting string slices in extra config 2017-01-12 12:10:53 +00:00
Dan Lorenc bd0acdf480 Fix the type referenced for PortRange. 2016-11-23 09:04:38 -08:00
dlorenc f72dadbe03 Add PortRange to the extra-config parser. 2016-11-22 09:56:55 -08:00
Dan Lorenc e8d8cc0ba3 Add support for net.IP to the configurator. 2016-10-28 14:33:36 -07:00
dlorenc 8611a455ca Initial configurator commit. 2016-09-30 10:05:14 -07:00