Skip to content

gkctl: implement connect wait timeout#467

Merged
AltraMayor merged 4 commits intoAltraMayor:masterfrom
andrenth:gkctl-connect-wait
Apr 16, 2021
Merged

gkctl: implement connect wait timeout#467
AltraMayor merged 4 commits intoAltraMayor:masterfrom
andrenth:gkctl-connect-wait

Conversation

@andrenth
Copy link
Collaborator

This PR implements a connection timeout command-line option for gkctl. This is useful when running this command right after starting gatekeeper (e.g. via a systemd post-start command). Since it takes a while for gatekeeper to be ready to listen for connections in the dynamic configuration socket, it would be otherwise necessary to run a sleep command before gkctl in the hopes that we have waited enough for the socket to be ready.

The PR also includes a commit to change gkctl's success return code to 0, to ease handling errors in shell scripts, and trivial spacing fixes.

@AltraMayor AltraMayor added this to the First deployment milestone Apr 16, 2021
@AltraMayor AltraMayor added the Operational demand This issue would make Gatekeeper safer and/or cheaper to operate label Apr 16, 2021
Copy link
Owner

@AltraMayor AltraMayor left a comment

Choose a reason for hiding this comment

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

gkctl: return 0 in case of success

Copy link
Owner

@AltraMayor AltraMayor left a comment

Choose a reason for hiding this comment

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

gkctl: wait for dynamic socket to be ready

@AltraMayor AltraMayor merged commit 75fa838 into AltraMayor:master Apr 16, 2021
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

Operational demand This issue would make Gatekeeper safer and/or cheaper to operate

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants