Skip to content

Commit

Permalink
status while peer missing
Browse files Browse the repository at this point in the history
  • Loading branch information
carlcsaposs-canonical committed Oct 9, 2024
1 parent 788750a commit 9e85b09
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions src/kubernetes_charm.py
Original file line number Diff line number Diff line change
Expand Up @@ -94,6 +94,9 @@ def __init__(self, *args) -> None:
)
)
except charm_refresh.PeerRelationMissing:
self.unit.status = ops.MaintenanceStatus("Waiting for peer relation")
if self.unit.is_leader():
self.app.status = ops.MaintenanceStatus("Waiting for peer relation")
exit()

@property
Expand Down

0 comments on commit 9e85b09

Please sign in to comment.