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

don't fail if can't save config due to EROFS or EPERM #213

Merged
merged 3 commits into from
Oct 5, 2023

Conversation

xaurx
Copy link
Contributor

@xaurx xaurx commented May 19, 2023

In k8s environments one can have read-only file system or no home directory at all (distroless env),
so don't fail start as we have remote listener anyway.

@google-cla
Copy link

google-cla bot commented May 19, 2023

Thanks for your pull request! It looks like this may be your first contribution to a Google open source project. Before we can look at your pull request, you'll need to sign a Contributor License Agreement (CLA).

View this failed invocation of the CLA check for more information.

For the most up to date status, view the checks section at the bottom of the pull request.

Copy link
Collaborator

@tklauser tklauser left a comment

Choose a reason for hiding this comment

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

Thanks (and sorry for taking so long to review this)

@tklauser tklauser enabled auto-merge (rebase) October 5, 2023 14:05
and gracefulShutdown() should be called on success only.

Signed-off-by: Alex Lyashko <alex.lyashko@gmail.com>
Signed-off-by: Alex Lyashko <alex.lyashko@gmail.com>
agent still works in remote mode and executable environment may not
allow to save any data at all (e.g. in k8s container), so be robust.

Signed-off-by: Alex Lyashko <alex.lyashko@gmail.com>
@tklauser tklauser merged commit dae615b into google:master Oct 5, 2023
1 check passed
tklauser added a commit that referenced this pull request Oct 5, 2023
After #213 the portfile might no longer be written, thus check the
listener to determine whether the agent is already listening.
tklauser added a commit that referenced this pull request Oct 5, 2023
After #213 the portfile might no longer be written, thus check the
listener to determine whether the agent is already listening.
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