From 6b5b756e50063194681ec7a7a6f97943f9e25c50 Mon Sep 17 00:00:00 2001 From: Mateo Florido Date: Fri, 22 Mar 2024 07:48:58 -0500 Subject: [PATCH] Add BlockedState on invalid datastore --- charms/worker/k8s/src/charm.py | 1 + 1 file changed, 1 insertion(+) diff --git a/charms/worker/k8s/src/charm.py b/charms/worker/k8s/src/charm.py index 6154f10c..f04797e6 100755 --- a/charms/worker/k8s/src/charm.py +++ b/charms/worker/k8s/src/charm.py @@ -269,6 +269,7 @@ def _configure_datastore(self, config: BootstrapConfig): datastore, ", ".join(SUPPORTED_DATASTORES), ) + status.add(ops.BlockedStatus(f"Invalid datastore: {datastore}")) if datastore == "etcd": log.info("Using etcd as external datastore")