Skip to content

Commit 8f9b9c6

Browse files
fix: Prune old helm releases, for real (#98)
1 parent 8b15957 commit 8f9b9c6

1 file changed

Lines changed: 1 addition & 0 deletions

File tree

pkg/helm/chart.go

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -158,6 +158,7 @@ func (c *ActionableChart) Rollback(version int) error {
158158
func (c *ActionableChart) Upgrade(chart *chart.Chart, values map[string]interface{}) (*release.Release, error) {
159159
client := action.NewUpgrade(c.config)
160160
client.Namespace = c.namespace
161+
client.MaxHistory = maxReleasesToKeep
161162
return client.Run(c.releaseName, chart, values)
162163
}
163164

0 commit comments

Comments
 (0)