Skip to content

ADD support for updating TILLER_HISTORY_MAX when upgrading - #3454

Closed
mattclegg wants to merge 3 commits into
helm:masterfrom
mattclegg:issue-3414
Closed

mattclegg wants to merge 3 commits into
helm:masterfrom
mattclegg:issue-3414

Conversation

@mattclegg

@mattclegg mattclegg commented Feb 5, 2018 •

Copy link
Copy Markdown
Contributor

When doing a helm init --max-history=N --upgrade --debug, the returned deployment manifest shows TILLER_HISTORY_MAX env var set on the deployment with the correct value.
But when doing a kubectl log <tiller_pod>, it shows Max history per release is 0. Doing a describe on the deployment also shows that the TILLER_HISTORY_MAX is missing.

@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://git.k8s.io/community/CLA.md#the-contributor-license-agreement 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 cncf-cla: no Indicates the PR's author has not signed the CNCF CLA. size/XS Denotes a PR that changes 0-9 lines, ignoring generated files. 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 Feb 5, 2018
@k8s-ci-robot k8s-ci-robot added size/M Denotes a PR that changes 30-99 lines, ignoring generated files. and removed size/XS Denotes a PR that changes 0-9 lines, ignoring generated files. labels Feb 5, 2018
@Nowaker

Nowaker commented Apr 11, 2018

Copy link
Copy Markdown

Can someone look into this? Looks like we have a fix for #3414 that's been sitting here for 2 months! 😄 @bacongobbler?

@bacongobbler

bacongobbler commented Apr 11, 2018 •

Copy link
Copy Markdown
Member

The code here looks very frail and I'm afraid of introducing new bugs. I'd feel more confident moving forward with this fix if there were unit tests in place though! Would you mind adding some unit tests around updateEnv?

@carlosjgp

Copy link
Copy Markdown

@mattclegg Did you have time to add those test?

Do you need help with them? I might be able to give you a hand if needed 😃

@gmanolache

Copy link
Copy Markdown

+1

1 similar comment
@jmlrt

jmlrt commented Jun 15, 2018

Copy link
Copy Markdown

👍

@davidchua

Copy link
Copy Markdown

Hi guys,

I've taken the liberty to try working on the tests but I'm not sure how to send a PR to a PR and I'm not sure how to move this forward. Any comments/help will be appreciated.

davidchua@af316d3

cc @mattclegg

@mleneveut

Copy link
Copy Markdown

@bacongobbler can we merge this as there is some unit tests now ?

@gramidt

gramidt commented Mar 5, 2019

Copy link
Copy Markdown

LGTM!

@bacongobbler

Copy link
Copy Markdown
Member

those unit tests have not been merged into this PR. If someone wants to incorporate those changes @davidchua suggested and re-open a new PR, we can take a look into it.

@gramidt

gramidt commented Mar 5, 2019

Copy link
Copy Markdown

@bacongobbler I'll incorporate those changes and re-open a new PR as recommended. Thank you for all of your help!

@rossf7

rossf7 commented Jun 10, 2019

Copy link
Copy Markdown

I've opened a new PR #5867 as suggested here. I checked in #helm-dev that this made sense. Thx! @bacongobbler

@mattclegg
mattclegg deleted the issue-3414 branch October 9, 2019 07:50
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.