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

Keep only 1 historical helm release per app on cluster #211

Merged
merged 2 commits into from
Dec 21, 2021

Conversation

aleksej-paschenko
Copy link
Contributor

Currently, we don't specify MaxHistory and a number of helm releases
keeps growing meaning ketch creates lots of secrets named
sh.helm.release.v1.<app-name>.v<version>.

Type of change

  • Bug fix (non-breaking change which fixes an issue)
  • New feature (non-breaking change which adds functionality)

   Currently, we don't specify MaxHistory and a number of helm releases
keeps growing meaning ketch creates lots of secrets named
"sh.helm.release.v1.<app-name>.v<version>".
@aleksej-paschenko aleksej-paschenko changed the title Keep only 10 helm releases per app on cluster Keep only 1 historical helm release per app on cluster Dec 21, 2021
@@ -91,6 +94,10 @@ func (c HelmClient) UpdateChart(tv TemplateValuer, config ChartConfig, opts ...I
}
updateClient := action.NewUpgrade(c.cfg)
updateClient.Namespace = c.namespace
// MaxHistory=0 means there is an unlimited number of k8s secrets per application,
Copy link
Contributor

Choose a reason for hiding this comment

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

We might need to update comments, we are only mentioning secrets here but helm docs say:

MaxHistory specifies the maximum number of historical releases that will be retained, including the most recent release.
Values of 0 or less are ignored (meaning no limits are imposed).

Copy link
Contributor

@itsksaurabh itsksaurabh left a comment

Choose a reason for hiding this comment

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

Looks great just added a minor suggestion. :)

@aleksej-paschenko aleksej-paschenko merged commit 009a4d6 into main Dec 21, 2021
@aleksej-paschenko aleksej-paschenko deleted the max-history branch December 21, 2021 14:33
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants