Skip to content

Conversation

@adshmh
Copy link
Contributor

@adshmh adshmh commented Nov 23, 2017

Add the option 'app-version' to helm package command. When 'helm package --app-version foo' is run, this will set the AppVersion field to 'foo' in the packaged chart. Fixes #2566

Signed-off-by: Arash Deshmeh adeshmeh@ca.ibm.com

@k8s-ci-robot k8s-ci-robot added cncf-cla: yes Indicates the PR's author has signed the CNCF CLA. size/M Denotes a PR that changes 30-99 lines, ignoring generated files. labels Nov 23, 2017
@bacongobbler
Copy link
Member

Hey @adshmh! Thanks for the PR!

It looks like CI failed on this PR. Would you mind fixing up the tests?

helm docs are out of date. Please run "make docs"

@adshmh adshmh force-pushed the add-app-version-option-to-helm-package branch 2 times, most recently from 475df11 to 73aef75 Compare November 24, 2017 19:02
@adshmh
Copy link
Contributor Author

adshmh commented Nov 24, 2017

@bacongobbler Thanks for the reminder. Fixed the doc issue.

debug("Setting version to %s", p.version)
}

if len(p.appVersion) != 0 {
Copy link
Member

Choose a reason for hiding this comment

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

it's probably simpler to just check if p.appVersion != "" instead of casting to an int.

Copy link
Contributor Author

Choose a reason for hiding this comment

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

Thank you for the review. I have updated the PR.

@bacongobbler
Copy link
Member

one little change and it looks good to go!

When 'helm package --app-version foo' is run, this will
set the AppVersion field to 'foo' in the packaged chart.

Signed-off-by: Arash Deshmeh <adeshmeh@ca.ibm.com>
@adshmh adshmh force-pushed the add-app-version-option-to-helm-package branch from 73aef75 to 9e86970 Compare November 24, 2017 20:18
@asetty
Copy link

asetty commented Oct 2, 2018

On a similar note, it would be nice to have an --app-version flag for helm upgrade / helm install.
I tried passing my desired appVersion with helm upgrade --set but learned that the Values object is not available in the Chart.yaml file. Is there another way to accomplish this? In any case the --app-version flag seems logical to me considering the appVersion field for a Chart/Release is purely informational

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. size/M Denotes a PR that changes 30-99 lines, ignoring generated files.

Projects

None yet

Development

Successfully merging this pull request may close these issues.

4 participants