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
|
.orElse(Collections.emptyMap()); |
similar to what's done with
hostTemplate here
|
host = renderHostTemplate(listener.getConfiguration().getHostTemplate(), node); |
.
Thanks!
Alternatives
No response
Additional context
No response
Related problem
Strimzi has an
annotationsfield 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 withhostTemplateoradvertisedHostTemplate. 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
hostTemplateandadvertisedHostTemplatefor annotations? For example, we could have anannotationsTemplateat the parent level, which allows us to use those node IDs and pod names.We would probably want to add the logic here
strimzi-kafka-operator/cluster-operator/src/main/java/io/strimzi/operator/cluster/model/ListenersUtils.java
Line 409 in b12c2e5
hostTemplateherestrimzi-kafka-operator/cluster-operator/src/main/java/io/strimzi/operator/cluster/model/ListenersUtils.java
Line 515 in b12c2e5
Thanks!
Alternatives
No response
Additional context
No response