Closed chrisseto closed 3 weeks ago
After a bit more conversion with @vuldin, we realized there's a bit missing here. We'll want to support both commonLabels
, commonAnnotations
, and provide a way to propagate them to PodTemplates (e.g. Jobs and StatefulSets).
I'd prefer to steal kustomize's solution of using an annotations transformer but I don't think it's work implementing all of kustomize in the helm chart.
Maybe splitting this into 4 total fields common{Pod,}{Labels,Annotations}
is the best option for now as it'll be a bit more clear and backwards compatible.
I'm closing this as the original need for this ticket (the ability to set labels/annotations on Job pods) has been solved by this PR https://github.com/redpanda-data/helm-charts/pull/1477.
Reasoning about how label/annotation merging should be handled is difficult as we don't want to suddenly change existing deployments. So I'm going to slap "won't do" on here. Feel free to re-open if this feature is needed/strongly desired.
The redpanda chart currently supports a
commonLabels
field that propagates to allLabels
fields. We should add a similar field for annotations.JIRA Link: K8S-301