Skip to content

WIP: debug events #9

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

Open
wants to merge 5 commits into
base: master
Choose a base branch
from
Open

WIP: debug events #9

wants to merge 5 commits into from

Conversation

cbandy
Copy link
Owner

@cbandy cbandy commented Mar 8, 2022

Trying it out.

cbandy and others added 4 commits March 8, 2022 09:48
We added this field while implementing rolling updates and chose to
populate it with semantics similar to the appsv1.Deployment controller
which ignores terminating Pods. However, our controller does *not*
ignore terminating PostgreSQL Pods because they are still writing to
disk and still participating in HA quorum.

So, this field now reflects the number of observed Pods, regardless of
their state. This is the same approach taken by the appsv1.StatefulSet
controller. When this field is zero, we can be relatively certain that
all PostgreSQL processes have stopped and disks are idle.

Issue: [sc-13696]
See: https://issue.k8s.io/107920
See: e0a885c
The tests were written before the status fields existed. This also
reduces the scope of variables used only for failure messages.
These tests are flaky in CI and the current failure messages do not show
why. Add a testing package that can format, sort, and filter corev1.Events.
@cbandy cbandy changed the base branch from replica-counts to master March 8, 2022 22:49
@cbandy cbandy closed this Mar 8, 2022
@cbandy cbandy reopened this Mar 8, 2022
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.

1 participant