Repository navigation
Search constraint and Install/Upgrade default constraint - #2279
Conversation
|
Thanks for your pull request. Before we can look at your pull request, you'll need to sign a Contributor License Agreement (CLA). 📝 Please follow instructions at https://github.com/kubernetes/kubernetes/wiki/CLA-FAQ to sign the CLA. It may take a couple minutes for the CLA signature to be fully registered; after that, please reply here with a new comment and we'll verify. Thanks.
DetailsInstructions for interacting with me using PR comments are available here. If you have questions or suggestions related to my behavior, please file an issue against the kubernetes/test-infra repository. I understand the commands that are listed here. |
8a7e93f to
e768f1a
Compare
technosophos
left a comment
There was a problem hiding this comment.
Very nice addition! Thanks.
| var constraint *semver.Constraints | ||
| if len(version) == 0 { | ||
| return vs[0], nil | ||
| constraint, _ = semver.NewConstraint("*") |
There was a problem hiding this comment.
Good idea. Elegant way to enforce the SemVer stability constraint.
|
I'm holding this PR for a day while we get the other refactors merged in. Nothing needs changing... I'm just trying to be strategic about the order in which we merge things. |
|
@technosophos sounds good just ping me if I need to modify anything |
|
@sstarcher Can you do a quick re-run of the documentation generator and fix the conflict? Then I'll get this merged. |
e768f1a to
7150fc3
Compare
|
@technosophos done and checks passed |
|
Thanks again, @sstarcher. I'm merging it now. |
Fixes #2270
-v/--versionto specify a version constraint using semver*which will not return pre-release versions. Specifying a version will allow pre-released versions to be specifically installed.From the docs of https://github.com/masterminds/semver