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

Pass CNI confDir and binDir through to whereabouts pod env #544

Merged
merged 1 commit into from
Oct 21, 2024

Conversation

brandond
Copy link
Member

@brandond brandond commented Oct 19, 2024

This ensures that the correct kubeconfig path is written into whereabouts.conf. Ref:

Without this change, the kubeconfig path in the config file is always set to /etc/cni/net.d/whereabouts.d/whereabouts.kubeconfig even if this path is actually mounted from elsewhere on the host, which leads to problems when the whereabouts plugin reads the config file and doesn't find the kubeconfig at the expected location.

See k3s-io/k3s#10869 (comment) for an example of how this can be worked around. Note that configuration_path always needs to be overridden in the NetworkAttachmentDefinition for K3s, as there is no way to globally set the config dir for the whole plugin chain; most things assume /etc/cni/net.d or /etc/kubernetes/cni/net.d.

@brandond brandond requested a review from a team as a code owner October 19, 2024 08:43
@brandond brandond merged commit 8186c74 into rancher:main-source Oct 21, 2024
1 check passed
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.

3 participants