Skip to content

create template processor#709

Open
lublak wants to merge 14 commits intowarpstreamlabs:mainfrom
lublak:template_processor
Open

create template processor#709
lublak wants to merge 14 commits intowarpstreamlabs:mainfrom
lublak:template_processor

Conversation

@lublak
Copy link
Copy Markdown
Contributor

@lublak lublak commented Feb 22, 2026

fixes #693

@gregfurman
Copy link
Copy Markdown
Collaborator

This is super neat! Looking forward to giving this a review 👀

@lublak lublak marked this pull request as ready for review February 23, 2026 13:18
@jem-davies jem-davies assigned jem-davies and unassigned jem-davies Mar 14, 2026
Copy link
Copy Markdown
Collaborator

@gregfurman gregfurman left a comment

Choose a reason for hiding this comment

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

Apologies for the delay in review here. Once the conflicts are resolved, and my small comments addresses, this LGTM!

if err != nil {
return nil, err
}
if name == "meta" {
Copy link
Copy Markdown
Collaborator

Choose a reason for hiding this comment

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

Should we not be doing the same for all functions/operators to ensure we don't override defaults? https://pkg.go.dev/text/template#hdr-Functions

func TemplateProcessorSpec() *service.ConfigSpec {
return service.NewConfigSpec().
Categories("Mapping").
Beta().
Copy link
Copy Markdown
Collaborator

Choose a reason for hiding this comment

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

IMO let's comment this out for now and allow this component to be marked as experimental -- will require a make docs run 🙂

Suggested change
Beta().
// Beta().

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.

Add template processor

3 participants