avaldivieso-meraki opened a new pull request, #6985:
URL: https://github.com/apache/camel-k/pull/6985

   Closes #6984
   
   ## What
   
   Adds an advanced e2e test that verifies the operator `/metrics` endpoint 
over HTTPS with a self-signed certificate.
   
   ## Changes
   
   - Refactored the existing `TestMetrics` into a shared `testMetrics(t, secure 
bool)` helper so the HTTP and HTTPS cases use the same assertions.
   - Added `TestMetricsHTTPS`, which sets `METRICS_CERT_DIR` on the operator to 
enable HTTPS serving via controller-runtime's self-signed certificate.
   - When `secure` is set, the metrics endpoint is scraped through the 
Kubernetes pods proxy using the `https:<pod>:8080` target scheme; the original 
HTTP path is unchanged.
   
   ## Verification
   
   - `gofmt -l` clean; `git diff --check` clean.
   - `go test -tags integration -run '^$' ./e2e/advanced/` compiles.
   - `go vet -tags integration ./e2e/advanced/` clean.
   - Full e2e (`make test-advanced`) requires a cluster and is left to CI.
   


-- 
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

To unsubscribe, e-mail: [email protected]

For queries about this service, please contact Infrastructure at:
[email protected]

Reply via email to