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(deployments): make spec.revisionHistoryLimit configurable #121

Merged

Conversation

jimeh
Copy link
Contributor

@jimeh jimeh commented Feb 3, 2024

Allow setting the spec.revisionHistoryLimit value on Deployment resources to a custom value.

Allow setting the spec.revisionHistoryLimit value on Deployment
resources to a custom value.
@jimeh jimeh force-pushed the configurable-deployment-revisionhistorylimit branch from b75b5e4 to 9a149c8 Compare February 3, 2024 12:53
@@ -22,7 +22,9 @@ spec:
type: Recreate
{{- end }}
replicas: {{ .replicas }}
revisionHistoryLimit: 2
{{- if (ne (toString $context.Values.mastodon.revisionHistoryLimit) "<nil>") }}
Copy link
Contributor Author

Choose a reason for hiding this comment

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

The use of toString is required to work around a issue with Helm 3.6.0 used in CI, which throws a invalid type error when doing a ne check against nil with a integer value.

@timetinytim
Copy link
Contributor

I'm definitely in favor of more customization. Thank you!

@timetinytim timetinytim merged commit 8e5ab7c into mastodon:main Feb 16, 2024
4 checks passed
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.

2 participants