Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

feat(helm): add --app-version flag to 'helm install/upgrade' #4961

Closed
wants to merge 98 commits into from

Conversation

eraac
Copy link

@eraac eraac commented Nov 22, 2018

When 'helm install/upgrade --app-version 1.0.0' is run, this will override the chart app version

Closes #3555

Signed-off-by: Kevin Labesse kevin@labesse.me

Waiting for your feedback, not 100% sure is the most efficient way do to that

Matthew Fisher and others added 11 commits November 1, 2018 14:56
This removes a step required every time we release Helm, making it
simpler to cut a new release.

Signed-off-by: jgleonard <jgleonard@gmail.com>

Signed-off-by: Kevin Labesse <kevin@labesse.me>
Signed-off-by: jgleonard <jgleonard@gmail.com>

Signed-off-by: Kevin Labesse <kevin@labesse.me>
Signed-off-by: jgleonard <jgleonard@gmail.com>

Signed-off-by: Kevin Labesse <kevin@labesse.me>
Signed-off-by: jgleonard <jgleonard@gmail.com>

Signed-off-by: Kevin Labesse <kevin@labesse.me>
…lm upgrade'

When 'helm <install|upgrade> --render-subchart-notes ...' is run, this will include
the notes from the subchart when rendered via Tiller.

Closes helm#2751

Signed-off-by: jgleonard <jgleonard@gmail.com>

Signed-off-by: Kevin Labesse <kevin@labesse.me>
Signed-off-by: Kevin Labesse <kevin@labesse.me>
Signed-off-by: jgleonard <jgleonard@gmail.com>

Signed-off-by: Kevin Labesse <kevin@labesse.me>
Signed-off-by: jgleonard <jgleonard@gmail.com>

Signed-off-by: Kevin Labesse <kevin@labesse.me>
Signed-off-by: jgleonard <jgleonard@gmail.com>

Signed-off-by: Kevin Labesse <kevin@labesse.me>
Signed-off-by: jgleonard <jgleonard@gmail.com>

Signed-off-by: Kevin Labesse <kevin@labesse.me>
The output from helm status is not correct for custom resources. The
HumanReadablePrinter from Kubernetes only outputs the column names when
the type differs from the previous one. This makes the output
inconsistent and also creates problems for putting in the correct line
breaks. This PR sets up a new printer for each type, thereby making sure
that all types are printed with the correct use of line breaks and with
column names.

Signed-off-by: Morten Torkildsen <mortent@google.com>

Signed-off-by: Kevin Labesse <kevin@labesse.me>
@helm-bot helm-bot added size/M Denotes a PR that changes 30-99 lines, ignoring generated files. and removed size/M Denotes a PR that changes 30-99 lines, ignoring generated files. labels Nov 22, 2018
Matthew Fisher and others added 4 commits November 28, 2018 09:59
Signed-off-by: Matthew Fisher <matt.fisher@microsoft.com>
Signed-off-by: Kevin Labesse <kevin@labesse.me>
Signed-off-by: tariqibrahim <tariq.ibrahim@microsoft.com>
Signed-off-by: Kevin Labesse <kevin@labesse.me>
Signed-off-by: Jintao Zhang <zhangjintao9020@gmail.com>
Signed-off-by: Kevin Labesse <kevin@labesse.me>
…elm#4952)

* error message for creating multiple helm chart at a time

Signed-off-by: hanif <abuhanifa@pathao.com>

* Update cmd/helm/create.go

Co-Authored-By: a8uhnf <a8uhnf@users.noreply.github.com>
Signed-off-by: hanif <abuhanifa@pathao.com>

Signed-off-by: Kevin Labesse <kevin@labesse.me>
@bacongobbler
Copy link
Member

Hey, would you mind rebasing to ensure that the windows tests work? We fixed them up in #4897. Sorry for the trouble!

OrthoDex and others added 7 commits November 28, 2018 10:12
* docs: add documentation for the helmignore file

Signed-off-by: Ishaan Malhi <ishaan.malhi@gmail.com>

* docs: rearrange helmignore docs under chart template developer's guide

Signed-off-by: Ishaan Malhi <ishaan.malhi@gmail.com>

Signed-off-by: Kevin Labesse <kevin@labesse.me>
Signed-off-by: Martin Hickey <martin.hickey@ie.ibm.com>
Signed-off-by: Kevin Labesse <kevin@labesse.me>
Due to a regression from a previous change, details about pod resources
does not show up in the status output. This makes sure that the pod type
from core are passed in to the printer so the details are shown in the
output.

Signed-off-by: Morten Torkildsen <mortent@google.com>

Signed-off-by: Kevin Labesse <kevin@labesse.me>
Apply the same procedure to allow missing trailing slash in repo base URLs used in `repo/chart` inputs to `--repo` inputs.

Fixes helm#4954.

Signed-off-by: Luke Hoban <luke@pulumi.com>
Signed-off-by: Kevin Labesse <kevin@labesse.me>
…ployed revision

Signed-off-by: Matt Tucker <ultimateboy@gmail.com>

Signed-off-by: Kevin Labesse <kevin@labesse.me>
fix(storage): when pruning release versions, never delete the last deployed revision
Signed-off-by: Kevin Labesse <kevin@labesse.me>
When 'helm install/upgrade --app-version 1.0.0' is run, this will
override the chart app version

Closes helm#3555

Signed-off-by: Kevin Labesse <kevin@labesse.me>

docs(helm): add --app-version flags for 'helm install/upgrade'

Signed-off-by: Kevin Labesse <kevin@labesse.me>
@helm-bot helm-bot added size/M Denotes a PR that changes 30-99 lines, ignoring generated files. and removed size/M Denotes a PR that changes 30-99 lines, ignoring generated files. labels Nov 28, 2018
* avoid kubernetes import for slice contains logic

Signed-off-by: tariqibrahim <tariq.ibrahim@microsoft.com>

* fix review comments

Signed-off-by: tariqibrahim <tariq.ibrahim@microsoft.com>

Signed-off-by: Kevin Labesse <kevin@labesse.me>
Matthew Fisher and others added 8 commits January 29, 2019 12:34
While deving at a Microsoft Open Hack my group discovered this useful piece of information in this issue comment: helm#1796 (comment)

We found it very useful for our Blue Green CD pipeline and thought others might find it useful as well.

Signed-off-by: Ethan Arrowood <ethan.arrowood@gmail.com>
Signed-off-by: Matthew Fisher <matt.fisher@microsoft.com>
Signed-off-by: Kevin Labesse <kevin@labesse.me>
Signed-off-by: Matthew Fisher <matt.fisher@microsoft.com>
Signed-off-by: Kevin Labesse <kevin@labesse.me>
Signed-off-by: Kevin Labesse <kevin@labesse.me>
* Update using_helm.md

In docs/using_helm.md, it says on line 214 that you can pass in a YAML formatted file, but the example commands following that sentence create JSON code but names the file with a .yml extension. For clarity, I propose saying that it will accept JSON or YAML but clarify in the code that for the example we're making a JSON file.

Signed-off-by: Pablo Canseco <p@blocanse.co>

* update using_helm.md to accurately say that helm install -f only takes a yaml-formatted file.

Signed-off-by: Pablo Canseco <p@blocanse.co>

* updated wording to reflect the fact that -f / --values only accepts YAML

Signed-off-by: Pablo Canseco <p@blocanse.co>

Signed-off-by: Kevin Labesse <kevin@labesse.me>
Signed-off-by: Jacob Silva <jacob.silva0123@gmail.com>
Signed-off-by: Kevin Labesse <kevin@labesse.me>
Signed-off-by: Marcin Kłopotek <marcin.klopotek@gmail.com>
Signed-off-by: Kevin Labesse <kevin@labesse.me>
Signed-off-by: xichengliudui <1693291525@qq.com>
Signed-off-by: Kevin Labesse <kevin@labesse.me>
Signed-off-by: Kevin Labesse <kevin@labesse.me>
@helm-bot helm-bot added size/M Denotes a PR that changes 30-99 lines, ignoring generated files. and removed size/M Denotes a PR that changes 30-99 lines, ignoring generated files. labels Jan 31, 2019
@Stono
Copy link

Stono commented Feb 7, 2019

We have exactly the above use case @bacongobbler , common chart for 100s of app deployment, want this feature mucho (here is a helm ls).

It'd be great if I could programatically set the appVersion at deploy time which means I'd be able to populate appVersion in this list with something which correlates to the application code revision (eg their pipeline build number).

NAME                                      	REVISION	UPDATED                 	STATUS  	CHART                                                	APP VERSION	NAMESPACE
lead-distributor                          	7       	Mon Jan 28 08:54:33 2019	DEPLOYED	platform-helm-at-service-0.1.444                     	           	lead-distributor
lead-oriented-logging-service             	5       	Mon Feb  4 18:56:45 2019	DEPLOYED	platform-helm-at-service-0.1.453                     	           	lead-oriented-logging-service
lighthouse                                	13      	Fri Feb  1 07:51:38 2019	DEPLOYED	platform-helm-at-service-0.1.453                     	           	lighthouse
lighthouse-reporting                      	79      	Mon Feb  4 14:42:30 2019	DEPLOYED	platform-helm-at-service-0.1.453                     	           	lighthouse-reporting
location-service                          	18      	Thu Jan 17 13:06:11 2019	DEPLOYED	platform-helm-at-service-0.1.434                     	           	location-service
location-service-soap                     	8       	Wed Jan 16 09:48:42 2019	DEPLOYED	platform-helm-at-service-0.1.434                     	           	location-service-soap
managing-customer-api                     	12      	Tue Jan 22 08:14:30 2019	DEPLOYED	platform-helm-at-service-0.1.434                     	           	managing-customer-api
managing-vrm-analysis                     	33      	Fri Feb  1 12:33:21 2019	DEPLOYED	platform-helm-at-service-0.1.453                     	           	managing-vrm-analysis
manufacturer-endorsed-display-service     	11      	Thu Jan 31 10:45:48 2019	DEPLOYED	platform-helm-at-service-0.1.446                     	           	manufacturer-endorsed-display-service
manufacturer-insearch-tracker             	21      	Mon Feb  4 17:00:51 2019	DEPLOYED	platform-helm-at-service-0.1.453                     	           	manufacturer-insearch-tracker
manufacturer-network-report               	12      	Tue Feb  5 22:55:58 2019	DEPLOYED	platform-helm-at-service-0.1.454                     	           	manufacturer-network-report
manufacturer-oem-dashboard                	20      	Thu Feb  7 09:48:49 2019	DEPLOYED	platform-helm-at-service-0.1.454                     	           	manufacturer-oem-dashboard
manufacturer-oem-data-exchange            	11      	Wed Jan 16 11:30:17 2019	DEPLOYED	platform-helm-at-service-0.1.434                     	           	manufacturer-oem-data-exchange
manufacturer-oem-ecosystem                	6       	Wed Jan 16 11:30:20 2019	DEPLOYED	platform-helm-at-service-0.1.434                     	           	manufacturer-oem-ecosystem
manufacturer-offsite-marketing            	7       	Wed Jan 16 11:30:15 2019	DEPLOYED	platform-helm-at-service-0.1.434                     	           	manufacturer-offsite-marketing
manufacturer-search-dashboard             	13      	Thu Jan 24 12:32:13 2019	DEPLOYED	platform-helm-at-service-0.1.444                     	           	manufacturer-search-dashboard
manufacturer-user-behaviour               	18      	Thu Feb  7 10:52:34 2019	DEPLOYED	platform-helm-at-service-0.1.454                     	           	manufacturer-user-behaviour
market-insight                            	20      	Thu Jan 24 15:07:34 2019	DEPLOYED	platform-helm-at-service-0.1.444                     	           	market-insight
masterclass-repository                    	8       	Mon Jan 28 17:49:54 2019	DEPLOYED	platform-helm-at-service-0.1.446                     	           	masterclass-repository
mercury-admin                             	47      	Wed Jan 16 10:11:42 2019	DEPLOYED	platform-helm-at-service-0.1.434                     	           	mercury-admin
mercury-admin-tool                        	37      	Wed Jan 23 14:38:01 2019	DEPLOYED	platform-helm-at-service-0.1.441                     	           	mercury-admin-tool
merlin-service-geolocate                  	9       	Wed Jan 16 10:02:24 2019	DEPLOYED	platform-helm-at-service-0.1.434                     	           	merlin-service-geolocate
metrics-triage                            	27      	Wed Jan 16 10:13:41 2019	DEPLOYED	platform-helm-at-service-0.1.434                     	           	metrics-triage

@dhavalc26
Copy link

We too have the exact same case where we want to separate our docker image builds and helm charts...So that only when our code changes should result in change in docker image and not helm chart. It would be very great to see this feature

@eraac
Copy link
Author

eraac commented Feb 24, 2019

@bacongobbler I understand initially Chart.yaml is immutable and my change will break this. Maybe we can add new field into Chart.yaml, allowing or not to override appVersion (or any other fields?) that can by false by default

Copy link
Member

@bacongobbler bacongobbler left a comment

Choose a reason for hiding this comment

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

I have no alternative proposals on how to fix this, so I don't think we should be blocking the pragmatic solution from going forward.

@technosophos or @adamreese when either of you have a minute, would you mind taking a look at this and see if this seems like an okay approach to move forward?

@helm-bot helm-bot added size/L Denotes a PR that changes 100-499 lines, ignoring generated files. and removed size/M Denotes a PR that changes 30-99 lines, ignoring generated files. labels Mar 21, 2019
@helm-bot helm-bot added size/L Denotes a PR that changes 100-499 lines, ignoring generated files. and removed size/L Denotes a PR that changes 100-499 lines, ignoring generated files. labels Mar 21, 2019
@helm-bot helm-bot added size/XXL Denotes a PR that changes 1000+ lines, ignoring generated files. and removed size/L Denotes a PR that changes 100-499 lines, ignoring generated files. labels Mar 21, 2019
@helm-bot helm-bot added size/XXL Denotes a PR that changes 1000+ lines, ignoring generated files. and removed size/XXL Denotes a PR that changes 1000+ lines, ignoring generated files. labels Mar 21, 2019
@eraac eraac closed this Mar 21, 2019
@eraac eraac deleted the feat/app-version branch March 21, 2019 10:31
@eraac
Copy link
Author

eraac commented Mar 21, 2019

My bad ... destroying git history, i will create new pull request
-> #5492

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
size/XXL Denotes a PR that changes 1000+ lines, ignoring generated files.
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet