kubernetes/test/e2e/framework
Kubernetes Submit Queue 4505224cd3 Merge pull request #35436 from danwinship/utilversion
Automatic merge from submit-queue

Add a package for handling version numbers (including non-"Semantic" versions)

As noted in #32401, we are using Semantic Version-parsing libraries to parse version numbers that aren't necessarily "Semantic". Although, contrary to what I'd said there, it turns out that this wasn't actually currently a problem for the iptables code, because the regexp used to extract the version number out of the "iptables --version" output only pulled out three components, so given "iptables v1.4.19.1", it would have extracted just "1.4.19". Still, it could be a problem if they later release "1.5" rather than "1.5.0", or if we eventually need to _compare_ against a 4-digit version number.

Also, as noted in #23854, we were also using two different semver libraries in different parts of the code (plus a wrapper around one of them in pkg/version).

This PR adds pkg/util/version, with code to parse and compare both semver and non-semver version strings, and then updates kubernetes to use it everywhere (including getting rid of a bunch of code duplication in kubelet by making utilversion.Version implement the kubecontainer.Version interface directly).

Ironically, this does not actually allow us to get rid of either of the vendored semver libraries, because we still have other dependencies that depend on each of them. (cadvisor uses blang/semver and etcd uses coreos/go-semver)

fixes #32401, #23854
2016-12-13 12:10:38 -08:00
..
BUILD Merge pull request #35436 from danwinship/utilversion 2016-12-13 12:10:38 -08:00
cleanup.go Remove "All rights reserved" from all the headers. 2016-06-29 17:47:36 -07:00
exec_util.go GetOptions - fix tests 2016-12-09 09:42:01 +01:00
federation_util.go Fix package aliases to follow golang convention 2016-11-30 15:40:50 +08:00
framework.go Merge pull request #38462 from gmarek/print 2016-12-09 06:07:57 -08:00
get-kubemark-resource-usage.go Fix resource gatherer for kubemark 2016-12-13 14:59:22 +01:00
google_compute.go Delete regional static-ip instead of global for type=lb 2016-12-07 11:33:04 -08:00
kubelet_stats.go test/e2e 2016-11-23 15:53:09 -08:00
log_size_monitoring.go test/e2e 2016-11-23 15:53:09 -08:00
metrics_util.go test/e2e 2016-11-23 15:53:09 -08:00
networking_utils.go GetOptions - fix tests 2016-12-09 09:42:01 +01:00
nodes_util.go test/e2e 2016-11-23 15:53:09 -08:00
perf_util.go Fix kubelet perf data to make work again for perfdash. 2016-09-30 11:56:02 -07:00
pods.go GetOptions - fix tests 2016-12-09 09:42:01 +01:00
resource_usage_gatherer.go Fix resource gatherer for kubemark 2016-12-13 14:59:22 +01:00
test_context.go Allow for configuring timeout for waiting for nodes 2016-12-13 09:55:34 +01:00
util.go Merge pull request #35436 from danwinship/utilversion 2016-12-13 12:10:38 -08:00