Skip to content
Permalink
Browse files

Merge remote-tracking branch 'origin/master' into release-1.16. Delet…

…ing CHANGELOG-1.13.md CHANGELOG-1.14.md CHANGELOG-1.15.md
  • Loading branch information...
justaugustus committed Aug 20, 2019
2 parents a5d968b + 1719ce7 commit 92639f719ee353219fa2cd19128a93409bb3a1e3
Showing with 38,649 additions and 1,778 deletions.
  1. +57 −0 Godeps/LICENSES
  2. +1 −0 build/tools.go
  3. +0 −2 cluster/addons/dashboard/OWNERS
  4. +4 −1 cmd/kubeadm/app/preflight/checks.go
  5. +8 −1 cmd/kubeadm/app/util/net_test.go
  6. +8 −2 go.mod
  7. +8 −2 go.sum
  8. +304 −0 hack/.staticcheck_failures
  9. +154 −0 hack/verify-staticcheck.sh
  10. +204 −100 pkg/controller/podautoscaler/horizontal_test.go
  11. +1 −1 pkg/kubelet/cm/cpumanager/cpu_manager.go
  12. +2 −2 pkg/kubelet/cm/cpumanager/fake_cpu_manager.go
  13. +4 −2 pkg/kubelet/cm/cpumanager/topology_hints.go
  14. +2 −3 pkg/kubelet/cm/cpumanager/topology_hints_test.go
  15. +25 −6 pkg/kubelet/cm/topologymanager/topology_manager.go
  16. +328 −196 pkg/kubelet/cm/topologymanager/topology_manager_test.go
  17. +1 −0 pkg/kubelet/dockershim/network/cni/BUILD
  18. +34 −21 pkg/kubelet/dockershim/network/cni/cni.go
  19. +1 −1 pkg/volume/azure_dd/attacher.go
  20. +1 −1 pkg/volume/flexvolume/plugin-defaults.go
  21. +1 −1 pkg/volume/flexvolume/plugin.go
  22. +2 −1 plugin/pkg/admission/eventratelimit/admission_test.go
  23. +0 −1 staging/src/k8s.io/api/go.mod
  24. +3 −1 staging/src/k8s.io/api/go.sum
  25. +0 −1 staging/src/k8s.io/apiextensions-apiserver/go.mod
  26. +9 −2 staging/src/k8s.io/apiextensions-apiserver/go.sum
  27. +1 −2 staging/src/k8s.io/apimachinery/go.mod
  28. +3 −1 staging/src/k8s.io/apimachinery/go.sum
  29. +4 −2 staging/src/k8s.io/apimachinery/pkg/api/errors/errors.go
  30. +2 −0 staging/src/k8s.io/apimachinery/pkg/apis/meta/v1/types.go
  31. +0 −1 staging/src/k8s.io/apiserver/go.mod
  32. +5 −1 staging/src/k8s.io/apiserver/go.sum
  33. +3 −3 staging/src/k8s.io/apiserver/pkg/storage/value/metrics.go
  34. +4 −4 staging/src/k8s.io/apiserver/pkg/storage/value/metrics_test.go
  35. +10 −7 staging/src/k8s.io/apiserver/pkg/storage/value/transformer.go
  36. +150 −0 staging/src/k8s.io/apiserver/pkg/storage/value/transformer_test.go
  37. +0 −1 staging/src/k8s.io/cli-runtime/go.mod
  38. +5 −1 staging/src/k8s.io/cli-runtime/go.sum
  39. +0 −1 staging/src/k8s.io/client-go/go.mod
  40. +3 −1 staging/src/k8s.io/client-go/go.sum
  41. +0 −1 staging/src/k8s.io/cloud-provider/go.mod
  42. +3 −1 staging/src/k8s.io/cloud-provider/go.sum
  43. +0 −1 staging/src/k8s.io/cluster-bootstrap/go.mod
  44. +3 −1 staging/src/k8s.io/cluster-bootstrap/go.sum
  45. +2 −1 staging/src/k8s.io/code-generator/go.mod
  46. +10 −2 staging/src/k8s.io/code-generator/go.sum
  47. +0 −1 staging/src/k8s.io/component-base/go.mod
  48. +3 −1 staging/src/k8s.io/component-base/go.sum
  49. +14 −0 staging/src/k8s.io/component-base/metrics/counter.go
  50. +14 −0 staging/src/k8s.io/component-base/metrics/gauge.go
  51. +14 −0 staging/src/k8s.io/component-base/metrics/histogram.go
  52. +5 −0 staging/src/k8s.io/component-base/metrics/metric.go
  53. +14 −0 staging/src/k8s.io/component-base/metrics/summary.go
  54. +1 −2 staging/src/k8s.io/cri-api/go.mod
  55. +2 −1 staging/src/k8s.io/cri-api/go.sum
  56. +0 −1 staging/src/k8s.io/csi-translation-lib/go.mod
  57. +3 −1 staging/src/k8s.io/csi-translation-lib/go.sum
  58. +0 −1 staging/src/k8s.io/kube-aggregator/go.mod
  59. +9 −2 staging/src/k8s.io/kube-aggregator/go.sum
  60. +0 −1 staging/src/k8s.io/kube-controller-manager/go.mod
  61. +3 −1 staging/src/k8s.io/kube-controller-manager/go.sum
  62. +0 −1 staging/src/k8s.io/kube-proxy/go.mod
  63. +3 −1 staging/src/k8s.io/kube-proxy/go.sum
  64. +0 −1 staging/src/k8s.io/kube-scheduler/go.mod
  65. +3 −1 staging/src/k8s.io/kube-scheduler/go.sum
  66. +0 −1 staging/src/k8s.io/kubectl/go.mod
  67. +8 −1 staging/src/k8s.io/kubectl/go.sum
  68. +5 −1 staging/src/k8s.io/kubectl/pkg/describe/versioned/describe.go
  69. +18 −0 staging/src/k8s.io/kubectl/pkg/describe/versioned/describe_test.go
  70. +0 −1 staging/src/k8s.io/kubelet/go.mod
  71. +3 −1 staging/src/k8s.io/kubelet/go.sum
  72. +44 −0 staging/src/k8s.io/legacy-cloud-providers/azure/azure_backoff.go
  73. +26 −2 staging/src/k8s.io/legacy-cloud-providers/azure/azure_client.go
  74. +28 −0 staging/src/k8s.io/legacy-cloud-providers/azure/azure_controller_common.go
  75. +3 −3 staging/src/k8s.io/legacy-cloud-providers/azure/azure_controller_common_test.go
  76. +3 −3 staging/src/k8s.io/legacy-cloud-providers/azure/azure_controller_standard.go
  77. +3 −3 staging/src/k8s.io/legacy-cloud-providers/azure/azure_controller_vmss.go
  78. +293 −6 staging/src/k8s.io/legacy-cloud-providers/azure/azure_vmss.go
  79. +0 −1 staging/src/k8s.io/legacy-cloud-providers/go.mod
  80. +5 −1 staging/src/k8s.io/legacy-cloud-providers/go.sum
  81. +0 −1 staging/src/k8s.io/metrics/go.mod
  82. +9 −2 staging/src/k8s.io/metrics/go.sum
  83. +0 −1 staging/src/k8s.io/node-api/go.mod
  84. +9 −2 staging/src/k8s.io/node-api/go.sum
  85. +0 −1 staging/src/k8s.io/sample-apiserver/go.mod
  86. +9 −2 staging/src/k8s.io/sample-apiserver/go.sum
  87. +0 −1 staging/src/k8s.io/sample-cli-plugin/go.mod
  88. +5 −1 staging/src/k8s.io/sample-cli-plugin/go.sum
  89. +0 −1 staging/src/k8s.io/sample-controller/go.mod
  90. +9 −2 staging/src/k8s.io/sample-controller/go.sum
  91. +4 −4 test/e2e/apimachinery/webhook.go
  92. +1 −0 test/e2e/framework/BUILD
  93. +41 −0 test/e2e/framework/log.go
  94. +1 −0 test/e2e/framework/log/logger.go
  95. +0 −1 test/e2e/framework/volume/BUILD
  96. +10 −11 test/e2e/framework/volume/fixtures.go
  97. +28 −1 vendor/BUILD
  98. +5 −0 vendor/github.com/BurntSushi/toml/.gitignore
  99. +15 −0 vendor/github.com/BurntSushi/toml/.travis.yml
  100. +34 −0 vendor/github.com/BurntSushi/toml/BUILD
  101. +3 −0 vendor/github.com/BurntSushi/toml/COMPATIBLE
  102. +21 −0 vendor/github.com/BurntSushi/toml/COPYING
  103. +19 −0 vendor/github.com/BurntSushi/toml/Makefile
  104. +218 −0 vendor/github.com/BurntSushi/toml/README.md
  105. +509 −0 vendor/github.com/BurntSushi/toml/decode.go
  106. +121 −0 vendor/github.com/BurntSushi/toml/decode_meta.go
  107. +27 −0 vendor/github.com/BurntSushi/toml/doc.go
  108. +568 −0 vendor/github.com/BurntSushi/toml/encode.go
  109. +19 −0 vendor/github.com/BurntSushi/toml/encoding_types.go
  110. +18 −0 vendor/github.com/BurntSushi/toml/encoding_types_1.1.go
  111. +953 −0 vendor/github.com/BurntSushi/toml/lex.go
  112. +592 −0 vendor/github.com/BurntSushi/toml/parse.go
  113. +1 −0 vendor/github.com/BurntSushi/toml/session.vim
  114. +91 −0 vendor/github.com/BurntSushi/toml/type_check.go
  115. +242 −0 vendor/github.com/BurntSushi/toml/type_fields.go
  116. +31 −0 vendor/golang.org/x/tools/go/analysis/BUILD
  117. +213 −0 vendor/golang.org/x/tools/go/analysis/analysis.go
  118. +20 −0 vendor/golang.org/x/tools/go/analysis/diagnostic.go
  119. +41 −0 vendor/golang.org/x/tools/go/analysis/diagnostic_experimental.go
  120. +336 −0 vendor/golang.org/x/tools/go/analysis/doc.go
  121. +27 −0 vendor/golang.org/x/tools/go/analysis/passes/inspect/BUILD
  122. +49 −0 vendor/golang.org/x/tools/go/analysis/passes/inspect/inspect.go
  123. +104 −0 vendor/golang.org/x/tools/go/analysis/validate.go
  124. +5 −5 vendor/golang.org/x/tools/go/{internal/cgo → ast/inspector}/BUILD
  125. +182 −0 vendor/golang.org/x/tools/go/ast/inspector/inspector.go
  126. +216 −0 vendor/golang.org/x/tools/go/ast/inspector/typeof.go
  127. +29 −0 vendor/golang.org/x/tools/go/buildutil/BUILD
  128. +198 −0 vendor/golang.org/x/tools/go/buildutil/allpackages.go
  129. +109 −0 vendor/golang.org/x/tools/go/buildutil/fakecontext.go
  130. +103 −0 vendor/golang.org/x/tools/go/buildutil/overlay.go
  131. +75 −0 vendor/golang.org/x/tools/go/buildutil/tags.go
  132. +212 −0 vendor/golang.org/x/tools/go/buildutil/util.go
  133. +0 −220 vendor/golang.org/x/tools/go/internal/cgo/cgo.go
  134. +0 −39 vendor/golang.org/x/tools/go/internal/cgo/cgo_pkgconfig.go
  135. +0 −3 vendor/golang.org/x/tools/go/packages/BUILD
  136. +1 −1 vendor/golang.org/x/tools/go/packages/external.go
  137. +116 −59 vendor/golang.org/x/tools/go/packages/golist.go
  138. +0 −450 vendor/golang.org/x/tools/go/packages/golist_fallback.go
  139. +0 −318 vendor/golang.org/x/tools/go/packages/golist_fallback_testmain.go
  140. +225 −39 vendor/golang.org/x/tools/go/packages/golist_overlay.go
  141. +194 −79 vendor/golang.org/x/tools/go/packages/packages.go
  142. +23 −0 vendor/golang.org/x/tools/go/types/objectpath/BUILD
  143. +523 −0 vendor/golang.org/x/tools/go/types/objectpath/objectpath.go
  144. +30 −0 vendor/golang.org/x/tools/go/types/typeutil/BUILD
  145. +46 −0 vendor/golang.org/x/tools/go/types/typeutil/callee.go
  146. +31 −0 vendor/golang.org/x/tools/go/types/typeutil/imports.go
  147. +313 −0 vendor/golang.org/x/tools/go/types/typeutil/map.go
  148. +72 −0 vendor/golang.org/x/tools/go/types/typeutil/methodsetcache.go
  149. +52 −0 vendor/golang.org/x/tools/go/types/typeutil/ui.go
  150. +8 −1 vendor/golang.org/x/tools/go/vcs/discovery.go
  151. +2 −13 vendor/golang.org/x/tools/imports/BUILD
  152. +62 −0 vendor/golang.org/x/tools/imports/forward.go
  153. +35 −0 vendor/golang.org/x/tools/internal/imports/BUILD
  154. +54 −54 vendor/golang.org/x/tools/{ → internal}/imports/fix.go
  155. +8 −20 vendor/golang.org/x/tools/{ → internal}/imports/imports.go
  156. +1 −1 vendor/golang.org/x/tools/{ → internal}/imports/mkindex.go
  157. +21 −1 vendor/golang.org/x/tools/{ → internal}/imports/mkstdlib.go
  158. +10 −6 vendor/golang.org/x/tools/{ → internal}/imports/mod.go
  159. +18 −15 vendor/golang.org/x/tools/{ → internal}/imports/sortimports.go
  160. +23 −0 vendor/golang.org/x/tools/{ → internal}/imports/zstdlib.go
  161. +20 −0 vendor/honnef.co/go/tools/LICENSE
  162. +226 −0 vendor/honnef.co/go/tools/LICENSE-THIRD-PARTY
  163. +23 −0 vendor/honnef.co/go/tools/arg/BUILD
  164. +48 −0 vendor/honnef.co/go/tools/arg/arg.go
  165. +39 −0 vendor/honnef.co/go/tools/cmd/staticcheck/BUILD
  166. +15 −0 vendor/honnef.co/go/tools/cmd/staticcheck/README.md
  167. +44 −0 vendor/honnef.co/go/tools/cmd/staticcheck/staticcheck.go
  168. +27 −0 vendor/honnef.co/go/tools/config/BUILD
  169. +224 −0 vendor/honnef.co/go/tools/config/config.go
  170. +10 −0 vendor/honnef.co/go/tools/config/example.conf
  171. +23 −0 vendor/honnef.co/go/tools/deprecated/BUILD
  172. +112 −0 vendor/honnef.co/go/tools/deprecated/stdlib.go
  173. +34 −0 vendor/honnef.co/go/tools/facts/BUILD
  174. +144 −0 vendor/honnef.co/go/tools/facts/deprecated.go
  175. +86 −0 vendor/honnef.co/go/tools/facts/generated.go
  176. +175 −0 vendor/honnef.co/go/tools/facts/purity.go
  177. +24 −0 vendor/honnef.co/go/tools/facts/token.go
  178. +28 −0 vendor/honnef.co/go/tools/functions/BUILD
  179. +54 −0 vendor/honnef.co/go/tools/functions/loops.go
  180. +46 −0 vendor/honnef.co/go/tools/functions/pure.go
  181. +24 −0 vendor/honnef.co/go/tools/functions/terminates.go
  182. +31 −0 vendor/honnef.co/go/tools/go/types/typeutil/BUILD
  183. +46 −0 vendor/honnef.co/go/tools/go/types/typeutil/callee.go
  184. +75 −0 vendor/honnef.co/go/tools/go/types/typeutil/identical.go
  185. +31 −0 vendor/honnef.co/go/tools/go/types/typeutil/imports.go
  186. +319 −0 vendor/honnef.co/go/tools/go/types/typeutil/map.go
  187. +72 −0 vendor/honnef.co/go/tools/go/types/typeutil/methodsetcache.go
  188. +52 −0 vendor/honnef.co/go/tools/go/types/typeutil/ui.go
  189. +28 −0 vendor/honnef.co/go/tools/internal/cache/BUILD
  190. +474 −0 vendor/honnef.co/go/tools/internal/cache/cache.go
  191. +85 −0 vendor/honnef.co/go/tools/internal/cache/default.go
  192. +176 −0 vendor/honnef.co/go/tools/internal/cache/hash.go
  193. +27 −0 vendor/honnef.co/go/tools/internal/passes/buildssa/BUILD
  194. +116 −0 vendor/honnef.co/go/tools/internal/passes/buildssa/buildssa.go
  195. +23 −0 vendor/honnef.co/go/tools/internal/renameio/BUILD
  196. +83 −0 vendor/honnef.co/go/tools/internal/renameio/renameio.go
  197. +29 −0 vendor/honnef.co/go/tools/internal/sharedcheck/BUILD
  198. +70 −0 vendor/honnef.co/go/tools/internal/sharedcheck/lint.go
  199. +40 −0 vendor/honnef.co/go/tools/lint/BUILD
  200. +28 −0 vendor/honnef.co/go/tools/lint/LICENSE
  201. +491 −0 vendor/honnef.co/go/tools/lint/lint.go
  202. +29 −0 vendor/honnef.co/go/tools/lint/lintdsl/BUILD
  203. +400 −0 vendor/honnef.co/go/tools/lint/lintdsl/lintdsl.go
  204. +41 −0 vendor/honnef.co/go/tools/lint/lintutil/BUILD
  205. +24 −0 vendor/honnef.co/go/tools/lint/lintutil/format/BUILD
  206. +135 −0 vendor/honnef.co/go/tools/lint/lintutil/format/format.go
  207. +7 −0 vendor/honnef.co/go/tools/lint/lintutil/stats.go
  208. +10 −0 vendor/honnef.co/go/tools/lint/lintutil/stats_bsd.go
  209. +10 −0 vendor/honnef.co/go/tools/lint/lintutil/stats_posix.go
  210. +392 −0 vendor/honnef.co/go/tools/lint/lintutil/util.go
  211. +970 −0 vendor/honnef.co/go/tools/lint/runner.go
  212. +20 −0 vendor/honnef.co/go/tools/lint/stats.go
  213. +27 −0 vendor/honnef.co/go/tools/loader/BUILD
  214. +197 −0 vendor/honnef.co/go/tools/loader/loader.go
  215. +23 −0 vendor/honnef.co/go/tools/printf/BUILD
  216. +11 −0 vendor/honnef.co/go/tools/printf/fuzz.go
  217. +197 −0 vendor/honnef.co/go/tools/printf/printf.go
  218. +40 −0 vendor/honnef.co/go/tools/simple/BUILD
  219. +15 −0 vendor/honnef.co/go/tools/simple/CONTRIBUTING.md
  220. +223 −0 vendor/honnef.co/go/tools/simple/analysis.go
  221. +425 −0 vendor/honnef.co/go/tools/simple/doc.go
  222. +1,816 −0 vendor/honnef.co/go/tools/simple/lint.go
  223. +50 −0 vendor/honnef.co/go/tools/ssa/BUILD
  224. +28 −0 vendor/honnef.co/go/tools/ssa/LICENSE
  225. +195 −0 vendor/honnef.co/go/tools/ssa/blockopt.go
  226. +2,379 −0 vendor/honnef.co/go/tools/ssa/builder.go
  227. +169 −0 vendor/honnef.co/go/tools/ssa/const.go
  228. +270 −0 vendor/honnef.co/go/tools/ssa/create.go
  229. +125 −0 vendor/honnef.co/go/tools/ssa/doc.go
  230. +343 −0 vendor/honnef.co/go/tools/ssa/dom.go
  231. +469 −0 vendor/honnef.co/go/tools/ssa/emit.go
  232. +765 −0 vendor/honnef.co/go/tools/ssa/func.go
  233. +7 −0 vendor/honnef.co/go/tools/ssa/identical.go
  234. +7 −0 vendor/honnef.co/go/tools/ssa/identical_17.go
  235. +657 −0 vendor/honnef.co/go/tools/ssa/lift.go
  236. +123 −0 vendor/honnef.co/go/tools/ssa/lvalue.go
  237. +239 −0 vendor/honnef.co/go/tools/ssa/methods.go
  238. +100 −0 vendor/honnef.co/go/tools/ssa/mode.go
  239. +435 −0 vendor/honnef.co/go/tools/ssa/print.go
  240. +535 −0 vendor/honnef.co/go/tools/ssa/sanity.go
  241. +293 −0 vendor/honnef.co/go/tools/ssa/source.go
  242. +1,745 −0 vendor/honnef.co/go/tools/ssa/ssa.go
  243. +3 −0 vendor/honnef.co/go/tools/ssa/staticcheck.conf
  244. +271 −0 vendor/honnef.co/go/tools/ssa/testmain.go
  245. +119 −0 vendor/honnef.co/go/tools/ssa/util.go
  246. +290 −0 vendor/honnef.co/go/tools/ssa/wrappers.go
  247. +5 −0 vendor/honnef.co/go/tools/ssa/write.go
  248. +24 −0 vendor/honnef.co/go/tools/ssautil/BUILD
  249. +58 −0 vendor/honnef.co/go/tools/ssautil/ssautil.go
  250. +54 −0 vendor/honnef.co/go/tools/staticcheck/BUILD
  251. +15 −0 vendor/honnef.co/go/tools/staticcheck/CONTRIBUTING.md
  252. +525 −0 vendor/honnef.co/go/tools/staticcheck/analysis.go
  253. +21 −0 vendor/honnef.co/go/tools/staticcheck/buildtag.go
  254. +764 −0 vendor/honnef.co/go/tools/staticcheck/doc.go
  255. +25 −0 vendor/honnef.co/go/tools/staticcheck/knowledge.go
  256. +3,360 −0 vendor/honnef.co/go/tools/staticcheck/lint.go
  257. +321 −0 vendor/honnef.co/go/tools/staticcheck/rules.go
  258. +58 −0 vendor/honnef.co/go/tools/staticcheck/structtag.go
  259. +33 −0 vendor/honnef.co/go/tools/staticcheck/vrp/BUILD
  260. +73 −0 vendor/honnef.co/go/tools/staticcheck/vrp/channel.go
  261. +476 −0 vendor/honnef.co/go/tools/staticcheck/vrp/int.go
  262. +273 −0 vendor/honnef.co/go/tools/staticcheck/vrp/slice.go
  263. +258 −0 vendor/honnef.co/go/tools/staticcheck/vrp/string.go
  264. +1,056 −0 vendor/honnef.co/go/tools/staticcheck/vrp/vrp.go
  265. +41 −0 vendor/honnef.co/go/tools/stylecheck/BUILD
  266. +111 −0 vendor/honnef.co/go/tools/stylecheck/analysis.go
  267. +154 −0 vendor/honnef.co/go/tools/stylecheck/doc.go
  268. +629 −0 vendor/honnef.co/go/tools/stylecheck/lint.go
  269. +264 −0 vendor/honnef.co/go/tools/stylecheck/names.go
  270. +36 −0 vendor/honnef.co/go/tools/unused/BUILD
  271. +54 −0 vendor/honnef.co/go/tools/unused/edge.go
  272. +109 −0 vendor/honnef.co/go/tools/unused/edgekind_string.go
  273. +82 −0 vendor/honnef.co/go/tools/unused/implements.go
  274. +1,964 −0 vendor/honnef.co/go/tools/unused/unused.go
  275. +27 −0 vendor/honnef.co/go/tools/version/BUILD
  276. +46 −0 vendor/honnef.co/go/tools/version/buildinfo.go
  277. +6 −0 vendor/honnef.co/go/tools/version/buildinfo111.go
  278. +42 −0 vendor/honnef.co/go/tools/version/version.go
  279. +37 −3 vendor/modules.txt

Some generated files are not rendered by default. Learn more.

@@ -29,6 +29,7 @@ import (
_ "golang.org/x/lint/golint"
_ "gotest.tools"
_ "gotest.tools/gotestsum"
_ "honnef.co/go/tools/cmd/staticcheck"
_ "k8s.io/code-generator/cmd/go-to-protobuf"
_ "k8s.io/code-generator/cmd/go-to-protobuf/protoc-gen-gogo"
_ "k8s.io/gengo/examples/deepcopy-gen/generators"
@@ -7,9 +7,7 @@ approvers:
- maciaszczykm
reviewers:
- cheld
- cupofcat
- danielromlein
- ianlewis
- konryd
- mhenc
- rf232
@@ -208,7 +208,10 @@ func (poc PortOpenCheck) Check() (warnings, errorList []error) {
errorList = []error{errors.Errorf("Port %d is in use", poc.port)}
}
if ln != nil {
ln.Close()
if err = ln.Close(); err != nil {
warnings = append(warnings,
errors.Errorf("when closing port %d, encountered %v", poc.port, err))
}
}

return nil, errorList
@@ -19,6 +19,7 @@ package util
import (
"errors"
"os"
"strings"
"testing"
)

@@ -37,6 +38,12 @@ func TestGetHostname(t *testing.T) {
result: "overridden",
expectedErr: nil,
},
{
desc: "overridden hostname uppercase",
hostname: "OVERRIDDEN",
result: "overridden",
expectedErr: nil,
},
{
desc: "hostname contains only spaces",
hostname: " ",
@@ -46,7 +53,7 @@ func TestGetHostname(t *testing.T) {
{
desc: "empty parameter",
hostname: "",
result: hostname,
result: strings.ToLower(hostname),
expectedErr: err,
},
}
10 go.mod
@@ -134,7 +134,7 @@ require (
golang.org/x/oauth2 v0.0.0-20190402181905-9f3314589c9a
golang.org/x/sys v0.0.0-20190616124812-15dcb6c0061f
golang.org/x/time v0.0.0-20161028155119-f51c12702a4d
golang.org/x/tools v0.0.0-20190614205625-5aca471b1d59
golang.org/x/tools v0.0.0-20190621195816-6e04913cbbac
gonum.org/v1/gonum v0.0.0-20190331200053-3d26580ed485
google.golang.org/api v0.0.0-20181220000619-583d854617af
google.golang.org/grpc v1.13.0
@@ -143,6 +143,7 @@ require (
gopkg.in/yaml.v2 v2.2.2
gotest.tools v2.2.0+incompatible
gotest.tools/gotestsum v0.3.5
honnef.co/go/tools v0.0.1-2019.2.2
k8s.io/api v0.0.0
k8s.io/apiextensions-apiserver v0.0.0
k8s.io/apimachinery v0.0.0
@@ -285,6 +286,7 @@ replace (
github.com/google/certificate-transparency-go => github.com/google/certificate-transparency-go v1.0.21
github.com/google/go-cmp => github.com/google/go-cmp v0.3.0
github.com/google/gofuzz => github.com/google/gofuzz v1.0.0
github.com/google/renameio => github.com/google/renameio v0.1.0
github.com/google/uuid => github.com/google/uuid v1.1.1
github.com/googleapis/gnostic => github.com/googleapis/gnostic v0.0.0-20170729233727-0c5108395e2d
github.com/gophercloud/gophercloud => github.com/gophercloud/gophercloud v0.1.0
@@ -374,6 +376,7 @@ replace (
github.com/quobyte/api => github.com/quobyte/api v0.1.2
github.com/remyoudompheng/bigfft => github.com/remyoudompheng/bigfft v0.0.0-20170806203942-52369c62f446
github.com/robfig/cron => github.com/robfig/cron v1.1.0
github.com/rogpeppe/go-internal => github.com/rogpeppe/go-internal v1.3.0
github.com/rubiojr/go-vhd => github.com/rubiojr/go-vhd v0.0.0-20160810183302-0bfd3b39853c
github.com/russross/blackfriday => github.com/russross/blackfriday v1.5.2
github.com/satori/go.uuid => github.com/satori/go.uuid v1.2.0
@@ -410,13 +413,14 @@ replace (
golang.org/x/image => golang.org/x/image v0.0.0-20190227222117-0694c2d4d067
golang.org/x/lint => golang.org/x/lint v0.0.0-20181217174547-8f45f776aaf1
golang.org/x/mobile => golang.org/x/mobile v0.0.0-20190312151609-d3739f865fa6
golang.org/x/mod => golang.org/x/mod v0.0.0-20190513183733-4bf6d317e70e
golang.org/x/net => golang.org/x/net v0.0.0-20190812203447-cdfb69ac37fc
golang.org/x/oauth2 => golang.org/x/oauth2 v0.0.0-20190402181905-9f3314589c9a
golang.org/x/sync => golang.org/x/sync v0.0.0-20181108010431-42b317875d0f
golang.org/x/sys => golang.org/x/sys v0.0.0-20190209173611-3b5209105503
golang.org/x/text => golang.org/x/text v0.3.1-0.20181227161524-e6919f6577db
golang.org/x/time => golang.org/x/time v0.0.0-20161028155119-f51c12702a4d
golang.org/x/tools => golang.org/x/tools v0.0.0-20190313210603-aa82965741a9
golang.org/x/tools => golang.org/x/tools v0.0.0-20190621195816-6e04913cbbac
gonum.org/v1/gonum => gonum.org/v1/gonum v0.0.0-20190331200053-3d26580ed485
gonum.org/v1/netlib => gonum.org/v1/netlib v0.0.0-20190331212654-76723241ea4e
google.golang.org/api => google.golang.org/api v0.0.0-20181220000619-583d854617af
@@ -425,6 +429,7 @@ replace (
google.golang.org/grpc => google.golang.org/grpc v1.13.0
gopkg.in/airbrake/gobrake.v2 => gopkg.in/airbrake/gobrake.v2 v2.0.9
gopkg.in/check.v1 => gopkg.in/check.v1 v1.0.0-20180628173108-788fd7840127
gopkg.in/errgo.v2 => gopkg.in/errgo.v2 v2.1.0
gopkg.in/fsnotify.v1 => gopkg.in/fsnotify.v1 v1.4.7
gopkg.in/gcfg.v1 => gopkg.in/gcfg.v1 v1.2.0
gopkg.in/gemnasium/logrus-airbrake-hook.v2 => gopkg.in/gemnasium/logrus-airbrake-hook.v2 v2.1.2
@@ -437,6 +442,7 @@ replace (
gopkg.in/yaml.v2 => gopkg.in/yaml.v2 v2.2.2
gotest.tools => gotest.tools v2.2.0+incompatible
gotest.tools/gotestsum => gotest.tools/gotestsum v0.3.5
honnef.co/go/tools => honnef.co/go/tools v0.0.1-2019.2.2
k8s.io/api => ./staging/src/k8s.io/api
k8s.io/apiextensions-apiserver => ./staging/src/k8s.io/apiextensions-apiserver
k8s.io/apimachinery => ./staging/src/k8s.io/apimachinery
10 go.sum
@@ -206,6 +206,7 @@ github.com/google/go-cmp v0.3.0 h1:crn/baboCvb5fXaQ0IJ1SGTsTVrWpDsCWC8EGETZijY=
github.com/google/go-cmp v0.3.0/go.mod h1:8QqcDgzrUqlUb/G2PQTWiueGozuR1884gddMywk6iLU=
github.com/google/gofuzz v1.0.0 h1:A8PeW59pxE9IoFRqBp37U+mSNaQoZ46F1f0f863XSXw=
github.com/google/gofuzz v1.0.0/go.mod h1:dBl0BpW6vV/+mYPU4Po3pmUjxk6FQPldtuIdl/M65Eg=
github.com/google/renameio v0.1.0/go.mod h1:KWCgfxg9yswjAJkECMjeO8J8rahYeXnNhOm40UhjYkI=
github.com/google/uuid v1.1.1 h1:Gkbcsh/GbpXz7lPftLA3P6TYMwjCLYm83jiFQZF/3gY=
github.com/google/uuid v1.1.1/go.mod h1:TIyPZe4MgqvfeYDBFedMoGGpEw/LqOeaOT+nhxU+yHo=
github.com/googleapis/gnostic v0.0.0-20170729233727-0c5108395e2d h1:7XGaL1e6bYS1yIonGp9761ExpPPV1ui0SAC59Yube9k=
@@ -367,6 +368,7 @@ github.com/quobyte/api v0.1.2/go.mod h1:jL7lIHrmqQ7yh05OJ+eEEdHr0u/kmT1Ff9iHd+4H
github.com/remyoudompheng/bigfft v0.0.0-20170806203942-52369c62f446/go.mod h1:uYEyJGbgTkfkS4+E/PavXkNJcbFIpEtjt2B0KDQ5+9M=
github.com/robfig/cron v1.1.0 h1:jk4/Hud3TTdcrJgUOBgsqrZBarcxl6ADIjSC2iniwLY=
github.com/robfig/cron v1.1.0/go.mod h1:JGuDeoQd7Z6yL4zQhZ3OPEVHB7fL6Ka6skscFHfmt2k=
github.com/rogpeppe/go-internal v1.3.0/go.mod h1:M8bDsm7K2OlrFYOpmOWEs/qY81heoFRclV5y23lUDJ4=
github.com/rubiojr/go-vhd v0.0.0-20160810183302-0bfd3b39853c h1:ht7N4d/B7Ezf58nvMNVF3OlvDlz9pp+WHVcRNS0nink=
github.com/rubiojr/go-vhd v0.0.0-20160810183302-0bfd3b39853c/go.mod h1:DM5xW0nvfNNm2uytzsvhI3OnX8uzaRAg8UX/CnDqbto=
github.com/russross/blackfriday v1.5.2 h1:HyvC0ARfnZBqnXwABFeSZHpKvJHJJfPz81GNueLj0oo=
@@ -435,6 +437,7 @@ golang.org/x/image v0.0.0-20190227222117-0694c2d4d067/go.mod h1:kZ7UVZpmo3dzQBMx
golang.org/x/lint v0.0.0-20181217174547-8f45f776aaf1 h1:rJm0LuqUjoDhSk2zO9ISMSToQxGz7Os2jRiOL8AWu4c=
golang.org/x/lint v0.0.0-20181217174547-8f45f776aaf1/go.mod h1:UVdnD1Gm6xHRNCYTkRU2/jEulfH38KcIWyp/GAMgvoE=
golang.org/x/mobile v0.0.0-20190312151609-d3739f865fa6/go.mod h1:z+o9i4GpDbdi3rU15maQ/Ox0txvL9dWGYEHz965HBQE=
golang.org/x/mod v0.0.0-20190513183733-4bf6d317e70e/go.mod h1:mXi4GBBbnImb6dmsKGUJ2LatrhH/nqhxcFungHvyanc=
golang.org/x/net v0.0.0-20190812203447-cdfb69ac37fc h1:gkKoSkUmnU6bpS/VhkuO27bzQeSA51uaEfbOW5dNb68=
golang.org/x/net v0.0.0-20190812203447-cdfb69ac37fc/go.mod h1:mL1N/T3taQHkDXs73rZJwtUhF3w3ftmwwsq0BUmARs4=
golang.org/x/oauth2 v0.0.0-20190402181905-9f3314589c9a h1:tImsplftrFpALCYumobsd0K86vlAs/eXGFms2txfJfA=
@@ -447,8 +450,8 @@ golang.org/x/text v0.3.1-0.20181227161524-e6919f6577db h1:6/JqlYfC1CCaLnGceQTI+s
golang.org/x/text v0.3.1-0.20181227161524-e6919f6577db/go.mod h1:bEr9sfX3Q8Zfm5fL9x+3itogRgK3+ptLWKqgva+5dAk=
golang.org/x/time v0.0.0-20161028155119-f51c12702a4d h1:TnM+PKb3ylGmZvyPXmo9m/wktg7Jn/a/fNmr33HSj8g=
golang.org/x/time v0.0.0-20161028155119-f51c12702a4d/go.mod h1:tRJNPiyCQ0inRvYxbN9jk5I+vvW/OXSQhTDSoE431IQ=
golang.org/x/tools v0.0.0-20190313210603-aa82965741a9 h1:7Pf/N3ln54fsGsAPsSwSfFhxXGKWHMIRUI/T5x1GP90=
golang.org/x/tools v0.0.0-20190313210603-aa82965741a9/go.mod h1:n7NCudcB/nEzxVGmLbDWY5pfWTLqBcC2KZ6jyYvM4mQ=
golang.org/x/tools v0.0.0-20190621195816-6e04913cbbac h1:MQEvx39qSf8vyrx3XRaOe+j1UDIzKwkYOVObRgGPVqI=
golang.org/x/tools v0.0.0-20190621195816-6e04913cbbac/go.mod h1:/rFqwRUd4F7ZHNgwSSTFct+R/Kf4OFW1sUzUTQQTgfc=
gonum.org/v1/gonum v0.0.0-20190331200053-3d26580ed485 h1:OB/uP/Puiu5vS5QMRPrXCDWUPb+kt8f1KW8oQzFejQw=
gonum.org/v1/gonum v0.0.0-20190331200053-3d26580ed485/go.mod h1:2ltnJ7xHfj0zHS40VVPYEAAMTa3ZGguvHGBSJeRWqE0=
gonum.org/v1/netlib v0.0.0-20190331212654-76723241ea4e h1:jRyg0XfpwWlhEV8mDfdNGBeSJM2fuyh9Yjrnd8kF2Ts=
@@ -464,6 +467,7 @@ google.golang.org/grpc v1.13.0/go.mod h1:yo6s7OP7yaDglbqo1J04qKzAhqBH6lvTonzMVmE
gopkg.in/airbrake/gobrake.v2 v2.0.9/go.mod h1:/h5ZAUhDkGaJfjzjKLSjv6zCL6O0LLBxU4K+aSYdM/U=
gopkg.in/check.v1 v1.0.0-20180628173108-788fd7840127 h1:qIbj1fsPNlZgppZ+VLlY7N33q108Sa+fhmuc+sWQYwY=
gopkg.in/check.v1 v1.0.0-20180628173108-788fd7840127/go.mod h1:Co6ibVJAznAaIkqp8huTwlJQCZ016jof/cbN4VW5Yz0=
gopkg.in/errgo.v2 v2.1.0/go.mod h1:hNsd1EY+bozCKY1Ytp96fpM3vjJbqLJn88ws8XvfDNI=
gopkg.in/fsnotify.v1 v1.4.7 h1:xOHLXZwVvI9hhs+cLKq5+I5onOuwQLhQwiu63xxlHs4=
gopkg.in/fsnotify.v1 v1.4.7/go.mod h1:Tz8NjZHkW78fSQdbUxIjBTcgA1z1m8ZHf0WmKUhAMys=
gopkg.in/gcfg.v1 v1.2.0 h1:0HIbH907iBTAntm+88IJV2qmJALDAh8sPekI9Vc1fm0=
@@ -486,6 +490,8 @@ gotest.tools v2.2.0+incompatible h1:VsBPFP1AI068pPrMxtb/S8Zkgf9xEmTLJjfM+P5UIEo=
gotest.tools v2.2.0+incompatible/go.mod h1:DsYFclhRJ6vuDpmuTbkuFWG+y2sxOXAzmJt81HFBacw=
gotest.tools/gotestsum v0.3.5 h1:VePOWRsuWFYpfp/G8mbmOZKxO5T3501SEGQRUdvq7h0=
gotest.tools/gotestsum v0.3.5/go.mod h1:Mnf3e5FUzXbkCfynWBGOwLssY7gTQgCHObK9tMpAriY=
honnef.co/go/tools v0.0.1-2019.2.2 h1:TEgegKbBqByGUb1Coo1pc2qIdf2xw6v0mYyLSYtyopE=
honnef.co/go/tools v0.0.1-2019.2.2/go.mod h1:a3bituU0lyd329TUQxRnasdCoJDkEUEAqEt0JzvZhAg=
k8s.io/gengo v0.0.0-20190813173942-955ffa8fcfc9 h1:/gJp8cw8+k4AxBNGZ5u5eRoCOzH3WVpY02K654HNiyU=
k8s.io/gengo v0.0.0-20190813173942-955ffa8fcfc9/go.mod h1:ezvh/TsK7cY6rbqRK0oQQ8IAqLxYwwyPxAX1Pzy0ii0=
k8s.io/heapster v1.2.0-beta.1 h1:lUsE/AHOMHpi3MLlBEkaU8Esxm5QhdyCrv1o7ot0s84=

0 comments on commit 92639f7

Please sign in to comment.
You can’t perform that action at this time.