The function KubernetesReleaseVersion is being called in a number of locations during unit tests but by default it uses a "fetch version from URL" approach. - Update the function to return a placeholder version during unit tests. - Update unit tests for this function. - Update strings / comments in other version_tests.go locations. The improvement is significant: time go test k8s.io/kubernetes/cmd/kubeadm/app/... -count=1 before: real 2m47.733s after: real 0m10.234s
9.5 KiB
9.5 KiB