Skip to content
This repository has been archived by the owner on Sep 24, 2021. It is now read-only.

Be flexible with versions #70

Merged
merged 1 commit into from
Jul 8, 2019

Conversation

chuckha
Copy link
Contributor

@chuckha chuckha commented Jul 5, 2019

Signed-off-by: Chuck Ha chuckh@vmware.com

What this PR does / why we need it:
We should be flexible with version numbers. v1.14.1? 1.14.1? whatever, it's all good

There is also a minor fix to be able to rename the management cluster.

NONE

Signed-off-by: Chuck Ha <chuckh@vmware.com>
@k8s-ci-robot k8s-ci-robot added cncf-cla: yes Indicates the PR's author has signed the CNCF CLA. size/XS Denotes a PR that changes 0-9 lines, ignoring generated files. labels Jul 5, 2019
@k8s-ci-robot
Copy link
Contributor

[APPROVALNOTIFIER] This PR is APPROVED

This pull-request has been approved by: chuckha

The full list of commands accepted by this bot can be found here.

The pull request process is described here

Needs approval from an approver in each of these files:

Approvers can indicate their approval by writing /approve in a comment
Approvers can cancel approval by writing /approve cancel in a comment

@k8s-ci-robot k8s-ci-robot added the approved Indicates a PR has been approved by an approver from all required OWNERS files. label Jul 5, 2019
@k8s-ci-robot k8s-ci-robot requested review from detiber and justinsb July 5, 2019 19:08
@chuckha
Copy link
Contributor Author

chuckha commented Jul 5, 2019

fixes #61

/cc @liztio

@k8s-ci-robot k8s-ci-robot requested a review from liztio July 5, 2019 19:09
@@ -291,6 +292,9 @@ func writeKubeConfig(n *nodes.Node, dest string, hostAddress string, hostPort in
}

func image(version string) string {
if !strings.HasPrefix(version, "v") {
version = fmt.Sprintf("v%s", version)
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

its weird we're hardcoding the prefix with a v.

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

why is it weird?

Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Missed the !strings.HasPrefix(version, "v") part. If we're doing that verification, can we also do some sorta semver parameter checking.

Not a blocker.

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

yeah, that's low on the priority list but would be good to make an issue for it

@amy
Copy link
Contributor

amy commented Jul 8, 2019

/lgtm

@k8s-ci-robot k8s-ci-robot added the lgtm Indicates that a PR is ready to be merged. label Jul 8, 2019
@k8s-ci-robot k8s-ci-robot merged commit 0695a88 into kubernetes-retired:master Jul 8, 2019
@chuckha chuckha deleted the versions branch August 16, 2019 02:30
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
approved Indicates a PR has been approved by an approver from all required OWNERS files. cncf-cla: yes Indicates the PR's author has signed the CNCF CLA. lgtm Indicates that a PR is ready to be merged. size/XS Denotes a PR that changes 0-9 lines, ignoring generated files.
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants