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

Only container-runtime-endpoint wants RuntimeSocket path as URI #2836

Merged
merged 1 commit into from
Jan 23, 2021

Conversation

brandond
Copy link
Member

Proposed Changes

Only container-runtime-endpoint wants RuntimeSocket path as URI

The fix in 5b318d0 set it too early; this field is used by multiple flags and only one of them wants a URI.

Types of Changes

Bugfix

Verification

See steps in linked issue

Linked Issues

#2831

Further Comments

Signed-off-by: Brad Davidson <brad.davidson@rancher.com>
@brandond brandond requested a review from a team as a code owner January 21, 2021 01:07
if strings.HasPrefix(argsMap["container-runtime-endpoint"], unixPrefix) {
argsMap["container-runtime-endpoint"] = cfg.RuntimeSocket
} else {
argsMap["container-runtime-endpoint"] = unixPrefix + cfg.RuntimeSocket
Copy link
Contributor

Choose a reason for hiding this comment

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

shouldnt we just document that we that passing the endpoint should prefix with unix://

Copy link
Member Author

@brandond brandond Jan 22, 2021

Choose a reason for hiding this comment

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

no, because as noted here - only some things want it prefixed with unix://. cadvisor breaks if you prefix it, while kubelet complains if you don't.

@brandond brandond merged commit 8011697 into k3s-io:master Jan 23, 2021
@brandond brandond deleted the fix_2831 branch June 6, 2024 21:18
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.

4 participants