solr-operator icon indicating copy to clipboard operation
solr-operator copied to clipboard

Ability to set custom hostname for SolrCloud

Open mcarroll1 opened this issue 2 years ago • 2 comments

Hello,

Much like the addressability.external.domainName value in the SolrCloud resource, it would be helpful to have something like addressability.external.hostName to specify a particular hostname for external accessibility. It appears now that the hostname is always set to <namespace>-<solrcloud-name>-solrcloud (https://github.com/apache/solr-operator/blob/main/api/v1beta1/solrcloud_types.go#L1339) which is a bit redundant for my team's implementation of one SolrCloud per namespace (we end up with something like solralpha-solralpha-solrcloud.domain.com).

Thanks for your consideration!

mcarroll1 avatar Dec 14 '23 20:12 mcarroll1

Had the same need. Perhaps a configurable service-name template would be cool, where the default could be serviceNameTemplate: %n-%r-solrcloud given that %n=namespace, %r=releaseName.

janhoy avatar Jan 03 '24 20:01 janhoy

Yeah, I agree that could be cool!

HoustonPutman avatar Feb 26 '24 22:02 HoustonPutman