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

use sprig join for template functions #14564

Merged
merged 1 commit into from
Nov 15, 2022

Conversation

heybronson
Copy link
Contributor

@heybronson heybronson commented Nov 15, 2022

Switching template join function to Sprig's join, which can handle []interface{} inputs instead of []string only. This makes join easier to use in templates that define variables within the template itself.

Updates existing uses of join to fix the new function signature.

related to: #14547

@k8s-ci-robot k8s-ci-robot added the cncf-cla: yes Indicates the PR's author has signed the CNCF CLA. label Nov 15, 2022
@k8s-ci-robot k8s-ci-robot added area/addons size/XS Denotes a PR that changes 0-9 lines, ignoring generated files. labels Nov 15, 2022
Copy link
Member

@johngmyers johngmyers left a comment

Choose a reason for hiding this comment

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

Thanks!

@k8s-ci-robot k8s-ci-robot added the lgtm "Looks good to me", indicates that a PR is ready to be merged. label Nov 15, 2022
@k8s-ci-robot
Copy link
Contributor

[APPROVALNOTIFIER] This PR is APPROVED

This pull-request has been approved by: johngmyers

The full list of commands accepted by this bot can be found here.

The pull request process is described here

Needs approval from an approver in each of these files:

Approvers can indicate their approval by writing /approve in a comment
Approvers can cancel approval by writing /approve cancel in a comment

@k8s-ci-robot k8s-ci-robot added the approved Indicates a PR has been approved by an approver from all required OWNERS files. label Nov 15, 2022
@k8s-ci-robot k8s-ci-robot merged commit b2357db into kubernetes:master Nov 15, 2022
@k8s-ci-robot k8s-ci-robot added this to the v1.26 milestone Nov 15, 2022
k8s-ci-robot added a commit that referenced this pull request Nov 15, 2022
…4564-upstream-release-1.24

Automated cherry pick of #14564: use sprig join for template functions
k8s-ci-robot added a commit that referenced this pull request Nov 15, 2022
…4564-upstream-release-1.25

Automated cherry pick of #14564: use sprig join for template functions
@heybronson heybronson deleted the sprig-join branch November 16, 2022 16:40
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
approved Indicates a PR has been approved by an approver from all required OWNERS files. area/addons cncf-cla: yes Indicates the PR's author has signed the CNCF CLA. lgtm "Looks good to me", indicates that a PR is ready to be merged. size/XS Denotes a PR that changes 0-9 lines, ignoring generated files.
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants