Closed tommyjcarpenter closed 4 months ago
you can merge/patch any k8s yaml right in:
service:
merge:
metadata:
annotations:
your-annotation: here
Full reference of resources that support merge/patch: https://artifacthub.io/packages/helm/nats/nats#values
@caleblloyd what if the value of this has to use $.Values
? eg
your-annotation: {{ $.Values...}}
https://artifacthub.io/packages/helm/nats/nats#templating-values
example:
service:
merge:
metadata:
annotations:
your-annotation:
$tplYaml: |
{{ $.Values.myValue }}
What motivated this proposal?
we need to add an
external-dns
service annotation ifnats.service.enabled
is on, for our production setup that gives DNS names toLoadBalancer
services.What is the proposed change?
https://github.com/nats-io/k8s/blob/main/helm/charts/nats/files/service.yaml#L3
this section should include a way to specifiy service annotations
something like
Who benefits from this change?
anybody who wants an external-dns annotation or any other service annotations.
What alternatives have you evaluated?
we are turning the builtin service off and instead adding our own custom service on, but this is hacky and we would like to use the builtin.