Open jpflouret opened 8 months ago
Sounds generally reasonable to me. Having an annotations
under network
sounds fine to me. To be super clear we could also consider serviceAnnotations
(also under network).
Please note that I have very little time for samba-operator myself these days, so depending on how strongly you want this you may want to look into implementing it yourself or finding someone. I am, of course, happy to review PRs and offer advice.
Adding annotations to the created servcie would allow for additional configuration of the created service. For example, with metallb you could specify the requested address pool to use. Another use case could be specifying the hostname to use with external-dns for registering the load balancer assigned IP address with an external DNS provider (which would address #147).
I would propose that the
SmbCommonConfig
resource should contain anannotations
key either undernetwork
or under a new different key. PerhapsserviceSettings
could be a sibling ofpodSettings
and it could contain additional settings for the service (e.g.loadBalancerIP
).