Fix ambient metrics scraping for ECK and Elasticsearch/Kibana
Closes #3509.
Ambient ECK metrics scraping currently requests HTTPS from an HTTP listener, while Elasticsearch/Kibana workloads still receive port-15020 scrape annotations despite having no Istio sidecars. Select the ECK monitor scheme together with the existing sidecar mTLS certificate configuration, and emit Elasticsearch/Kibana sidecar scrape annotations only in sidecar mode. Application exporter scraping remains enabled, and explicit user monitor settings retain overlay precedence.
The Elasticsearch/Kibana package monitor guard is fixed separately in elasticsearch-kibana!437. Related ambient scrape fixes are mattermost-operator!169 and vault!325. Package releases and their promotion MRs will carry those chart changes into the umbrella; this MR does not pin unreleased tags.
The combined package branches are also being validated in test-only umbrella!8539.
Validation
- 25 focused Helm unit tests passed across ECK Operator and Elasticsearch/Kibana, including ambient/ztunnel, sidecar TLS, disabled monitoring/Istio, and explicit TLS overrides.
- Helm lint and both values-overlay Bats checks passed.
- Full Helm suite: 690 tests passed; 11 unrelated post-render tests were blocked by macOS Bash's missing
mapfilecommand, and one existing custom-package schema test failed identically on the unchanged release branch. Linux CI Helm unit tests passed; clean-install/upgrade and live scrape verification remain in progress.
Upgrade Notices
ECK metrics scraping now uses HTTP unless sidecar mTLS requires HTTPS; explicit packages.eckOperator.values.serviceMonitor overrides remain supported. Elasticsearch/Kibana application metrics stay enabled, while ambient workloads no longer advertise a nonexistent sidecar scrape port. No manual configuration migration is required.