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

Fix deletion test #275

Merged
merged 4 commits into from
Apr 22, 2024
Merged

Fix deletion test #275

merged 4 commits into from
Apr 22, 2024

Conversation

phvalguima
Copy link
Contributor

@phvalguima phvalguima commented Apr 18, 2024

Removes the need for patch_port() at pebble-ready event. There is no reason to check if we need to patch the port at this event, as port should be toggled to ClusterIP / NodePort in response to client relations exclusively. Also, pebble-ready happens at every restart of the pod, which per-se does not mark as a change on exposing or not the service.

Simplifying the external_connectivity() to make it more readable and adding extra safeguards in the relation checking methods for node-port.

Fixes the tests to consider NodePort or ClusterIP accordingly.

@phvalguima phvalguima force-pushed the fix/pgbouncer-deletion-test branch from 4fa4781 to 361ca51 Compare April 20, 2024 20:22
@phvalguima phvalguima marked this pull request as ready for review April 21, 2024 08:11
Copy link
Contributor

@taurus-forever taurus-forever left a comment

Choose a reason for hiding this comment

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

Good to simplify the code here. Up 2 Dragomir. LGTM.

@dragomirp
Copy link
Contributor

Good to simplify the code here. Up 2 Dragomir. LGTM.

Let's get node port out the door first, we can iterate over it later on.

@phvalguima phvalguima merged commit 80d1d64 into main Apr 22, 2024
34 checks passed
@phvalguima phvalguima deleted the fix/pgbouncer-deletion-test branch April 22, 2024 10:10
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants