canonical / alertmanager-k8s-operator

This charmed operator automates operation procedures of Alertmanager, the alerting component of Prometheus and Loki, among others.
https://charmhub.io/alertmanager-k8s
Apache License 2.0
4 stars 16 forks source link

Fix client tls #239

Closed sed-i closed 3 months ago

sed-i commented 3 months ago

Issue

In an itest, alertmanager produced Failed to obtain status: Bad response.

This is because the "api" was instantiated without the ca_file.

Solution

Remove leftovers of the old self.api and use instead self.workload.api, which already has the ca_file.