Open HoustonPutman opened 7 months ago
I've fiddled with this enough to think that I understand the use-case. It sounds like we have two paths:
1) The user bootstapped basic auth. In this case, we need to point the exporter to the default auth secret (
Am I on the right path?
Sorry, I missed this. But yes, you are on the right path!
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 theSolrCloud
reference, if none are provided.Docs: https://apache.github.io/solr-operator/docs/solr-prometheus-exporter/#prometheus-exporter-with-basic-auth