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

The SolrPrometheusExporter should detect whether to use a basicAuth secret

Open HoustonPutman opened this issue 1 year ago • 2 comments

Currently in the PrometheusExporter spec, you must specify a basicAuthSecret if you have BasicAuth enabled on a solrCloud.

The operator should be able to detect if the SolrCloud is setup to use BasicAuth, and figure out the secret it is using if the use does not provide an explicit basicAuthSecret. This should work very similarly to how the zkConnection info and solrImage are also taken from the SolrCloud reference, if none are provided.

Docs: https://apache.github.io/solr-operator/docs/solr-prometheus-exporter/#prometheus-exporter-with-basic-auth

HoustonPutman avatar Nov 10 '23 21:11 HoustonPutman