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

refactor: cleanup template functions #624

Merged
merged 5 commits into from
Jul 31, 2024
Merged

Conversation

buchdag
Copy link
Member

@buchdag buchdag commented May 21, 2024

This PR cleans up the template functions.

json / parseJson / sha1 have been made alias of Sprig functions that behave identically:

docker-gen sprig
json mustToJson
parseJson mustFromJson
sha1 sha1sum

trimPrefix / trimSuffix have been removed because Sprig already have functions with the same name that do the same thing.

Sprig function that have the same name as existing docker-gen functions and where thus masked have been made available with the sprig prefix:

  • sprigCoalesce
  • sprigContains
  • sprigDir
  • sprigReplace
  • sprigSplit
  • sprigSplitn

@buchdag buchdag force-pushed the cleanup-template-functions branch from 93ee625 to bb71198 Compare May 21, 2024 20:38
@buchdag buchdag marked this pull request as ready for review July 31, 2024 18:10
@buchdag buchdag merged commit 91ed6da into main Jul 31, 2024
3 checks passed
@buchdag buchdag deleted the cleanup-template-functions branch July 31, 2024 18:10
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant