Skip to content

Commit

Permalink
Add BlockedState on invalid datastore
Browse files Browse the repository at this point in the history
  • Loading branch information
mateoflorido committed Mar 22, 2024
1 parent 80a146c commit 6b5b756
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions charms/worker/k8s/src/charm.py
Original file line number Diff line number Diff line change
Expand Up @@ -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")
Expand Down

0 comments on commit 6b5b756

Please sign in to comment.