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

proxy-server: change --delete-existing-uds-file default to true. #498

Merged
merged 1 commit into from Jun 28, 2023

Conversation

jkh52
Copy link
Contributor

@jkh52 jkh52 commented Jun 12, 2023

This is followup from discusssion at #476

@k8s-ci-robot
Copy link
Contributor

[APPROVALNOTIFIER] This PR is APPROVED

This pull-request has been approved by: jkh52

The full list of commands accepted by this bot can be found here.

The pull request process is described here

Needs approval from an approver in each of these files:

Approvers can indicate their approval by writing /approve in a comment
Approvers can cancel approval by writing /approve cancel in a comment

@k8s-ci-robot k8s-ci-robot added the cncf-cla: yes Indicates the PR's author has signed the CNCF CLA. label Jun 12, 2023
@k8s-ci-robot k8s-ci-robot added approved Indicates a PR has been approved by an approver from all required OWNERS files. size/XS Denotes a PR that changes 0-9 lines, ignoring generated files. labels Jun 12, 2023
@jkh52
Copy link
Contributor Author

jkh52 commented Jun 12, 2023

/assign @guettli
/assign @cheftako

@k8s-ci-robot
Copy link
Contributor

@jkh52: GitHub didn't allow me to assign the following users: guettli.

Note that only kubernetes-sigs members with read permissions, repo collaborators and people who have commented on this issue/PR can be assigned. Additionally, issues/PRs can only have 10 assignees at the same time.
For more information please see the contributor guide

In response to this:

/assign @guettli
/assign @cheftako

Instructions for interacting with me using PR comments are available here. If you have questions or suggestions related to my behavior, please file an issue against the kubernetes/test-infra repository.

@cheftako
Copy link
Contributor

/hold OK with the change as long as we discuss it in the public Konnectivity server meeting first.

@k8s-ci-robot k8s-ci-robot added the do-not-merge/hold Indicates that a PR should not merge because someone has issued a /hold command. label Jun 13, 2023
@ipochi
Copy link
Contributor

ipochi commented Jun 14, 2023

@jkh52 @cheftako

Technical reasons aside for wanting to set the default as true. Just in general I feel that if you want to set any bool flag, you set it explicitly such as (--delete-exisiting-uds-file), if it is not set then the default should be assumed to be false.

Wouldn't it make setting the flag --delete-existing-uds-file redundant if the default is true.

@guettli
Copy link

guettli commented Jun 15, 2023

@ipochi

Wouldn't it make setting the flag --delete-existing-uds-file redundant if the default is true.

I had the same idea on my mind. I think there is no reason to not delete the file. An alternative would be to make all the things which systemd does to ensure servers don't get accidentaly created twice. But this makes no sense, since this script gets run by systemd (at least in the places I am aware of).

@jkh52
Copy link
Contributor Author

jkh52 commented Jun 15, 2023

@ipochi

Wouldn't it make setting the flag --delete-existing-uds-file redundant if the default is true.

I had the same idea on my mind. I think there is no reason to not delete the file. An alternative would be to make all the things which systemd does to ensure servers don't get accidentaly created twice. But this makes no sense, since this script gets run by systemd (at least in the places I am aware of).

If we go this route (let's say option B), we should mark the flag deprecated for some time: example.

I only slightly prefer option A (this PR currently), and if I'm in the minority I'll switch to B. @cheftako do you have an opinion?

It does seem true that getUdsListener cannot possibly succeed if udsName already exists.

@elmiko
Copy link
Contributor

elmiko commented Jun 28, 2023

/unhold

@k8s-ci-robot k8s-ci-robot removed the do-not-merge/hold Indicates that a PR should not merge because someone has issued a /hold command. label Jun 28, 2023
@jkh52
Copy link
Contributor Author

jkh52 commented Jun 28, 2023

This was discussed in the OSS biweekly this morning: Meeting Notes. From discussion: a cluster administrator running multiple proxy servers on a single host could possibly want to manage UDS file cleanup in some careful or particular way. There was unanimous consensus to go forward with keeping the flag rather than hardcoding the cleanup.

@cheftako
Copy link
Contributor

/lgtm

@k8s-ci-robot k8s-ci-robot added the lgtm "Looks good to me", indicates that a PR is ready to be merged. label Jun 28, 2023
@k8s-ci-robot k8s-ci-robot merged commit 0b0dc50 into kubernetes-sigs:master Jun 28, 2023
5 of 6 checks passed
@jkh52 jkh52 mentioned this pull request Aug 11, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
approved Indicates a PR has been approved by an approver from all required OWNERS files. cncf-cla: yes Indicates the PR's author has signed the CNCF CLA. lgtm "Looks good to me", indicates that a PR is ready to be merged. size/XS Denotes a PR that changes 0-9 lines, ignoring generated files.
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

6 participants