Skip to content

[Enhancement]: Per broker annotation template #12167

@shk3

Description

@shk3

Related problem

Strimzi has an annotations field under the listener brokers to allow us to specify annotations for each broker for things like External DNS. However, this config can only be specified per broker, and we don't really have a way to "template" it like what we do with hostTemplate or advertisedHostTemplate. As a result, it's very tedious and error prone for us to maintain this list of broker annotations.

Suggested solution

Have we considered implementing something similar to hostTemplate and advertisedHostTemplate for annotations? For example, we could have an annotationsTemplate at the parent level, which allows us to use those node IDs and pod names.

We would probably want to add the logic here

similar to what's done with hostTemplate here
host = renderHostTemplate(listener.getConfiguration().getHostTemplate(), node);
.

Thanks!

Alternatives

No response

Additional context

No response

Metadata

Metadata

Assignees

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions