mirror of
https://github.com/k3s-io/kubernetes.git
synced 2025-07-22 11:21:47 +00:00
Merge pull request #50211 from NuxiNL/util-freebsd
Automatic merge from submit-queue (batch tested with PRs 49869, 47987, 50211, 50804, 50583) Make socket address parsing work on FreeBSD. **What this PR does / why we need it**: I am currently in the process of porting Kubernetes to work on FreeBSD. What is interesting is that I am not interested in using Kubernetes to run Docker containers in this case. I happen to be the author of CloudABI, a sandboxing framework that is available on FreeBSD (and other systems). I want to have a cluster management tool for scheduling these sandboxed processes. Anyway, right now `kubelet` crashes on startup when passing in CRI command line flags, for the reason that it's not able to parse `unix:...` socket addresses. This change fixes this by making the respective Linux-only source file work on FreeBSD as well.
This commit is contained in:
commit
c8cfc5f723
@ -21,7 +21,7 @@ go_library(
|
||||
"util_unsupported.go",
|
||||
] + select({
|
||||
"@io_bazel_rules_go//go/platform:linux_amd64": [
|
||||
"util_linux.go",
|
||||
"util_unix.go",
|
||||
],
|
||||
"@io_bazel_rules_go//go/platform:windows_amd64": [
|
||||
"util_windows.go",
|
||||
|
@ -1,4 +1,4 @@
|
||||
// +build linux
|
||||
// +build freebsd linux
|
||||
|
||||
/*
|
||||
Copyright 2017 The Kubernetes Authors.
|
@ -1,4 +1,4 @@
|
||||
// +build !linux,!windows
|
||||
// +build !freebsd,!linux,!windows
|
||||
|
||||
/*
|
||||
Copyright 2017 The Kubernetes Authors.
|
||||
|
Loading…
Reference in New Issue
Block a user