k3s/pkg/util
Kubernetes Submit Queue aa1ec693c3
Merge pull request #62951 from dims/support-nsenter-better-in-non-systemd-envs
Automatic merge from submit-queue. If you want to cherry-pick this change to another branch, please follow the instructions <a href="https://github.com/kubernetes/community/blob/master/contributors/devel/cherry-picks.md">here</a>.

Support nsenter in non-systemd environments

**What this PR does / why we need it**:

In our CI, we run kubekins image for most of the jobs. This is a
debian image with upstart and does not enable systemd. So we should

* Bailout if any binary is missing other than systemd-run.
* SupportsSystemd should check the binary path to correctly
  identify if the systemd-run is present or not
* Pass the errors back to the callers so kubelet is forced to
  fail early when there is a problem. We currently assume
  that all binaries are in the root directory by default which
  is wrong.


**Which issue(s) this PR fixes** *(optional, in `fixes #<issue number>(, fixes #<issue_number>, ...)` format, will close the issue(s) when PR gets merged)*:
Fixes #

**Special notes for your reviewer**:

**Release note**:

```release-note
NONE
```
2018-04-25 01:08:10 -07:00
..
async Autogenerated: hack/update-bazel.sh 2018-02-16 13:43:01 -08:00
bandwidth Autogenerated: hack/update-bazel.sh 2018-02-16 13:43:01 -08:00
config Autogenerated: hack/update-bazel.sh 2018-02-16 13:43:01 -08:00
configz Autogenerated: hack/update-bazel.sh 2018-02-16 13:43:01 -08:00
conntrack Auto-updated BUILD files 2018-02-27 11:18:11 -08:00
dbus Autogenerated: hack/update-bazel.sh 2018-02-16 13:43:01 -08:00
ebtables Autogenerated: hack/update-bazel.sh 2018-02-16 13:43:01 -08:00
env Autogenerated: hack/update-bazel.sh 2018-02-16 13:43:01 -08:00
file Autogenerated: hack/update-bazel.sh 2018-02-16 13:43:01 -08:00
filesystem unpack dynamic kubelet config payloads to files 2018-04-19 09:18:53 -07:00
flag Log the command line flags 2018-02-15 18:04:04 -05:00
flock Autogenerate BUILD files 2017-12-23 13:12:11 -08:00
goroutinemap Merge pull request #59714 from hzxuzhonghu/clean-up-goroutinemap 2018-02-27 12:05:40 -08:00
hash Autogenerated: hack/update-bazel.sh 2018-02-16 13:43:01 -08:00
initsystem Kubeadm - Added initial support for Windows worker nodes to join cluster using kubeadm 2017-11-01 10:36:37 -04:00
interrupt update BUILD files 2017-10-15 18:18:13 -07:00
io Support nsenter in non-systemd environments 2018-04-22 22:10:36 -04:00
ipconfig Autogenerated: hack/update-bazel.sh 2018-02-16 13:43:01 -08:00
ipset fix TODO: test more SetType 2018-03-08 21:00:13 +08:00
iptables add lb source test 2018-03-27 11:31:37 +08:00
ipvs fix wrong error type when formatting 2018-04-08 16:56:06 +08:00
keymutex Autogenerated: hack/update-bazel.sh 2018-02-16 13:43:01 -08:00
labels Autogenerated: hack/update-bazel.sh 2018-02-16 13:43:01 -08:00
limitwriter Autogenerated: hack/update-bazel.sh 2018-02-16 13:43:01 -08:00
maps update BUILD files 2017-10-15 18:18:13 -07:00
metrics Autogenerated: hack/update-bazel.sh 2018-02-16 13:43:01 -08:00
mount Support nsenter in non-systemd environments 2018-04-22 22:10:36 -04:00
net Auto-updated BUILD files 2018-02-27 11:18:11 -08:00
netsh Autogenerated: hack/update-bazel.sh 2018-02-16 13:43:01 -08:00
node Autogenerated: hack/update-bazel.sh 2018-02-16 13:43:01 -08:00
normalizer Clone documentation utility from //pkg/kubectl/cmd/templates 2017-11-16 10:18:00 +01:00
nsenter Support nsenter in non-systemd environments 2018-04-22 22:10:36 -04:00
oom Autogenerated: hack/update-bazel.sh 2018-02-16 13:43:01 -08:00
parsers Autogenerated: hack/update-bazel.sh 2018-02-16 13:43:01 -08:00
pointer pkg/util/pointer: Update `int` pointer functions 2018-03-27 10:30:01 -04:00
procfs Autogenerated: hack/update-bazel.sh 2018-02-16 13:43:01 -08:00
reflector/prometheus rename metric reflector_xx_last_resource_version to reflector_last_resource_version{name="xx"} 2017-11-01 16:34:18 +08:00
removeall Lock subPath volumes 2018-03-05 09:14:44 +01:00
resizefs Perform resize of mounted volume if necessary 2018-01-29 17:49:50 -05:00
resourcecontainer Autogenerate BUILD files 2017-12-23 13:12:11 -08:00
rlimit Autogenerate BUILD files 2017-12-23 13:12:11 -08:00
selinux Autogenerate BUILD files 2017-12-23 13:12:11 -08:00
slice Autogenerated: hack/update-bazel.sh 2018-02-16 13:43:01 -08:00
strings Autogenerated: hack/update-bazel.sh 2018-02-16 13:43:01 -08:00
sysctl update BUILD files 2017-10-15 18:18:13 -07:00
system Autogenerated: hack/update-bazel.sh 2018-02-16 13:43:01 -08:00
tail Merge pull request #59713 from hanxiaoshuai/fix0211 2018-02-22 23:17:38 -08:00
taints Autogenerated: hack/update-bazel.sh 2018-02-16 13:43:01 -08:00
template Autogenerated: hack/update-bazel.sh 2018-02-16 13:43:01 -08:00
term Autogenerate BUILD files 2017-12-23 13:12:11 -08:00
threading Autogenerated: hack/update-bazel.sh 2018-02-16 13:43:01 -08:00
tolerations Autogenerated: hack/update-bazel.sh 2018-02-16 13:43:01 -08:00
version Autogenerated: hack/update-bazel.sh 2018-02-16 13:43:01 -08:00
workqueue/prometheus update BUILD files 2017-10-15 18:18:13 -07:00
BUILD Remove conntrack entry on udp rule add. 2018-02-22 23:34:42 -08:00
verify-util-pkg.sh pkg/util/verify-util-pkg.sh: fix shell return value comparison. 2018-03-23 15:37:03 +02:00