Skip to content

Commit

Permalink
Improves docstring of _renew_root_certificate
Browse files Browse the repository at this point in the history
  • Loading branch information
saltiyazan committed Sep 17, 2024
1 parent 621d8e3 commit ff4139b
Showing 1 changed file with 3 additions and 2 deletions.
5 changes: 3 additions & 2 deletions src/charm.py
Original file line number Diff line number Diff line change
Expand Up @@ -298,8 +298,9 @@ def _configure(self, _: EventBase) -> None:
def _renew_root_certificate(self):
"""Generate a new active root CA certificate.
If there is an active CA certificate that is about to expire, generate a new one.
If there is no active CA certificate, generate a new one.
If there is a CA certificate that is about to expire,
move it to the expiring-ca-certificate secret.
Generate a new active CA certificate
"""
if not self.unit.is_leader():
return
Expand Down

0 comments on commit ff4139b

Please sign in to comment.