-
Notifications
You must be signed in to change notification settings - Fork 4
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Improve the juju unit status #72
Conversation
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I love this PR, nice work! Messages are much cleaner now. Few nits, but LGTM
relation = self.model.get_relation("cluster") | ||
assert relation, "Missing cluster relation with k8s" # nosec | ||
if not self.model.get_relation("cluster"): | ||
status.add(ops.BlockedStatus("Missing cluster integration")) |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Love it!
Co-authored-by: Mateo Florido <[email protected]>
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
LGTM 💯
Summary
Since the charm reconcile loops runs the same execution steps over and over, providing meaning descriptions of those stages is important. These changes better describe the stages the charm is stepping through -- not just the early stages
Details