Skip to content
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

Merged
merged 7 commits into from
Apr 20, 2024
Merged

Improve the juju unit status #72

merged 7 commits into from
Apr 20, 2024

Conversation

addyess
Copy link
Contributor

@addyess addyess commented Apr 19, 2024

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

  • Many of the MaintenanceStatus messages were update to show that they are repeating the same stage of configuration, which may already be applied
  • Improved the worker's status when it's blocked by not being related to the k8s control-plane application

@addyess addyess requested a review from a team as a code owner April 19, 2024 15:56
Copy link
Member

@mateoflorido mateoflorido left a 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

charms/worker/k8s/src/charm.py Outdated Show resolved Hide resolved
charms/worker/k8s/src/charm.py Outdated Show resolved Hide resolved
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"))
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Love it!

@addyess addyess requested a review from mateoflorido April 19, 2024 20:54
Copy link
Member

@mateoflorido mateoflorido left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM 💯

@addyess addyess changed the title [COS] Improve the juju unit status Improve the juju unit status Apr 20, 2024
@addyess addyess merged commit c59f291 into main Apr 20, 2024
34 checks passed
@addyess addyess deleted the akd/improve-juju-unit-status branch April 20, 2024 17:37
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants