Open sed-i opened 2 years ago
If some files were pushed but others failed, when _configure re-enters then should_reload may be false without prometheus ever reloading.
should_reload
https://github.com/canonical/prometheus-k8s-operator/blob/b4c0fd631a8bfbeb7d22b9b6f157f8f25cefc6f6/src/charm.py#L292-L304
we should probably let the error bubble up in this case, assuming the caller checked container.can_connect before this happens. Error state seems appropriate because this really shouldn't happen.
container.can_connect
If some files were pushed but others failed, when _configure re-enters then
should_reload
may be false without prometheus ever reloading.https://github.com/canonical/prometheus-k8s-operator/blob/b4c0fd631a8bfbeb7d22b9b6f157f8f25cefc6f6/src/charm.py#L292-L304