Repository navigation
Conversation
Signed-off-by: Ross Fairbanks <[email protected]>
Signed-off-by: Ross Fairbanks <[email protected]>
| } | ||
| obj.Spec.Template.Spec.Containers[0].Image = opts.SelectImage() | ||
| obj.Spec.Template.Spec.Containers[0].ImagePullPolicy = opts.pullPolicy() | ||
| if opts.MaxHistory > 0 { |
There was a problem hiding this comment.
how would a user unset this value?
There was a problem hiding this comment.
Good point. If opts.MaxHistory is not set should we revert to the default of 0?
@bacongobbler I'd appreciate hearing what you think is the best approach? Thanks!
| } | ||
| obj.Spec.Template.Spec.Containers[0].Image = opts.SelectImage() | ||
| obj.Spec.Template.Spec.Containers[0].ImagePullPolicy = opts.pullPolicy() | ||
| if opts.MaxHistory > 0 { |
There was a problem hiding this comment.
Good point. If opts.MaxHistory is not set should we revert to the default of 0?
@bacongobbler I'd appreciate hearing what you think is the best approach? Thanks!
|
|
||
| // updateEnv updates the existing env vars and allows env vars to be removed | ||
| // by name. | ||
| func updateEnv(existing []v1.EnvVar, env []v1.EnvVar, remove []string) []v1.EnvVar { |
There was a problem hiding this comment.
Also, this came from the previous PR and I have a doubt now. Do we need to be able to remove env vars?
As doesn't TILLER_HISTORY_MAX always need to be set.
|
Any update on this? |
|
Hey @alexcurtin, thanks for the ping. Unfortunately, we won't be able to get this feature into 2.15, which will be the last feature release for Helm 2. Because Tiller is no longer present in Helm 3, it is hard to justify larger changes (which could incur support overhead) to that subsystem. The good news is that workarounds exist, and because Tiller is not present in Helm 3, when you've upgraded you should no longer need this workaround. Thanks! |
What this PR does / why we need it:
This PR sets
--history-maxon existing clusters. It is a replacement for #3454 and includes the unit tests added in af316d3. I've tested locally and is working OK.closes #3414
Special notes for your reviewer:
I changed the unit tests in af316d3 quite a lot to try and sync them with the other tests. The code change is basically unchanged from the original PR.
If applicable: