Skip to content

Search constraint and Install/Upgrade default constraint - #2279

Merged
technosophos merged 1 commit into
helm:masterfrom
sstarcher:search_constraint
Apr 18, 2017
Merged

technosophos merged 1 commit into
helm:masterfrom
sstarcher:search_constraint

Conversation

@sstarcher

Copy link
Copy Markdown
Contributor

Fixes #2270

  • helm search now has added support for -v/--version to specify a version constraint using semver
  • Helm Install/Upgrade when not specifying a version will apply a semver constraint of * 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

SemVer comparisons without a pre-release value will skip pre-release versions. For example, >1.2.3 will skip pre-releases when looking at a list of values while >1.2.3-alpha.1 will evaluate pre-releases.

@k8s-ci-robot

Copy link
Copy Markdown

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.


Details

Instructions 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.

@k8s-ci-robot k8s-ci-robot added the cncf-cla: no Indicates the PR's author has not signed the CNCF CLA. label Apr 15, 2017
@k8s-ci-robot k8s-ci-robot added cncf-cla: yes Indicates the PR's author has signed the CNCF CLA. and removed cncf-cla: no Indicates the PR's author has not signed the CNCF CLA. labels Apr 15, 2017

@technosophos technosophos left a comment

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

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

Very nice addition! Thanks.

Comment thread pkg/repo/index.go
var constraint *semver.Constraints
if len(version) == 0 {
return vs[0], nil
constraint, _ = semver.NewConstraint("*")

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

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

Good idea. Elegant way to enforce the SemVer stability constraint.

@technosophos

Copy link
Copy Markdown
Member

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.

@sstarcher

Copy link
Copy Markdown
Contributor Author

@technosophos sounds good just ping me if I need to modify anything

@technosophos

Copy link
Copy Markdown
Member

@sstarcher Can you do a quick re-run of the documentation generator and fix the conflict? Then I'll get this merged.

@sstarcher

Copy link
Copy Markdown
Contributor Author

@technosophos done and checks passed

@technosophos technosophos added this to the 2.4.0 - Features milestone Apr 18, 2017
@technosophos

Copy link
Copy Markdown
Member

Thanks again, @sstarcher. I'm merging it now.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

cncf-cla: yes Indicates the PR's author has signed the CNCF CLA. feature in progress

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants