mirror of https://github.com/kubernetes/kops.git
Merge pull request #11997 from spiffxp/rm-kubernetes-release-dev
remove references to kubernetes-release-dev
This commit is contained in:
commit
2d40b76e1a
|
@ -64,7 +64,7 @@ func Test_ParseKubernetesVersion(t *testing.T) {
|
|||
},
|
||||
},
|
||||
{
|
||||
version: "https://storage.googleapis.com/kubernetes-release-dev/ci/v1.4.0-alpha.2.677+ea69570f61af8e/",
|
||||
version: "https://storage.googleapis.com/k8s-release-dev/ci/v1.4.0-alpha.2.677+ea69570f61af8e/",
|
||||
expected: &semver.Version{
|
||||
Major: 1,
|
||||
Minor: 4,
|
||||
|
|
|
@ -41,8 +41,8 @@ func ParseKubernetesVersion(version string) (string, error) {
|
|||
|
||||
// Replace the last part of the version URL path with the contents of the URL's body
|
||||
// Example:
|
||||
// https://storage.googleapis.com/kubernetes-release-dev/ci/latest.txt -> v1.21.0-beta.1.112+576aa2d2470b28%0A
|
||||
// becomes https://storage.googleapis.com/kubernetes-release-dev/ci/v1.21.0-beta.1.112+576aa2d2470b28%0A
|
||||
// https://storage.googleapis.com/k8s-release-dev/ci/latest.txt -> v1.21.0-beta.1.112+576aa2d2470b28%0A
|
||||
// becomes https://storage.googleapis.com/k8s-release-dev/ci/v1.21.0-beta.1.112+576aa2d2470b28%0A
|
||||
pathParts := strings.Split(u.Path, "/")
|
||||
pathParts[len(pathParts)-1] = strings.TrimSpace(b.String())
|
||||
u.Path = strings.Join(pathParts, "/")
|
||||
|
|
Loading…
Reference in New Issue