-
Notifications
You must be signed in to change notification settings - Fork 42
Conversation
Signed-off-by: Chuck Ha <chuckh@vmware.com>
[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 |
@@ -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) |
There was a problem hiding this comment.
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
.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
why is it weird?
There was a problem hiding this comment.
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.
There was a problem hiding this comment.
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
/lgtm |
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.