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

provisioner: add dict template function #711

Merged
merged 1 commit into from
Nov 30, 2023

Commits on Nov 29, 2023

  1. provisioner: add dict template function

    Add dict template function inspired by
    https://stackoverflow.com/questions/18276173/calling-a-template-with-several-pipeline-parameters/18276968#18276968
    
    Compared to stackoverflow version it additionally checks for duplicate keys.
    
    Also decided not to use `dict` from github.com/Masterminds/sprig/v3
    as it allows non-string keys, uneven number of arguments and
    does not check for duplicate keys.
    
    Signed-off-by: Alexander Yastrebov <[email protected]>
    AlexanderYastrebov committed Nov 29, 2023
    Configuration menu
    Copy the full SHA
    8a9d95e View commit details
    Browse the repository at this point in the history