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

[CORE-1011] Change liveness probe to not use URI #8128

Merged
merged 2 commits into from
Sep 7, 2022

Conversation

tybritten
Copy link
Contributor

switches the liveness probe to using cli switches instead of URI. URI breaks if the username or password has an @ in it.

Copy link
Member

@jrockway jrockway left a comment

Choose a reason for hiding this comment

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

Looks good. I always worry about spaces and weird characters in shell expansions, but I am not sure what features to help us are available in /bin/sh (versus bash). I'd test this with quotes and spaces in the password if you feel like it.

@tybritten
Copy link
Contributor Author

Good point. We can do this for now but once we switch the pg bouncer image, we could just build a pgpassword file at start https://www.postgresql.org/docs/current/libpq-pgpass.html

@codecov
Copy link

codecov bot commented Sep 7, 2022

Codecov Report

Merging #8128 (f9d3ce3) into master (51affd3) will decrease coverage by 20.44%.
The diff coverage is n/a.

@@            Coverage Diff             @@
##           master   #8128       +/-   ##
==========================================
- Coverage   22.74%   2.30%   -20.45%     
==========================================
  Files         420     331       -89     
  Lines      113061   98517    -14544     
==========================================
- Hits        25717    2268    -23449     
- Misses      82971   95948    +12977     
+ Partials     4373     301     -4072     
Impacted Files Coverage Δ
src/server/auth/db.go 0.00% <0.00%> (-100.00%) ⬇️
src/internal/watch/op.go 0.00% <0.00%> (-100.00%) ⬇️
src/server/license/db.go 0.00% <0.00%> (-100.00%) ⬇️
src/server/identity/db.go 0.00% <0.00%> (-100.00%) ⬇️
src/internal/miscutil/log.go 0.00% <0.00%> (-100.00%) ⬇️
src/internal/dbutil/option.go 0.00% <0.00%> (-100.00%) ⬇️
src/internal/miscutil/math.go 0.00% <0.00%> (-100.00%) ⬇️
src/internal/randutil/rand.go 0.00% <0.00%> (-100.00%) ⬇️
src/internal/pfsload/client.go 0.00% <0.00%> (-100.00%) ⬇️
src/internal/pfsfile/pfsfile.go 0.00% <0.00%> (-100.00%) ⬇️
... and 315 more

📣 We’re building smart automated test selection to slash your CI/CD build times. Learn more

@tybritten tybritten merged commit 6b59d9d into master Sep 7, 2022
@tybritten tybritten deleted the tybritten/fix-liveness-pg branch September 7, 2022 18:07
tybritten added a commit that referenced this pull request Sep 7, 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.

None yet

2 participants