k3s/pkg/util
k8s-merge-robot 5760acf603 Merge pull request #29596 from matttproud/fix/time-leaks/remainder
Automatic merge from submit-queue

pkg/various: plug leaky time.New{Timer,Ticker}s

According to the documentation for Go package time, `time.Ticker` and
`time.Timer` are uncollectable by garbage collector finalizers.  They
leak until otherwise stopped.  This commit ensures that all remaining
instances are stopped upon departure from their relative scopes.

Similar efforts were incrementally done in #29439 and #29114.

```release-note
* pkg/various: plugged various time.Ticker and time.Timer leaks.
```
2016-07-29 14:06:47 -07:00
..
bandwidth Move ExtractPodBandwidthResources test into appropriate package 2016-07-19 14:34:08 -04:00
cache Remove "All rights reserved" from all the headers. 2016-06-29 17:47:36 -07:00
certificates Remove "All rights reserved" from all the headers. 2016-06-29 17:47:36 -07:00
chmod Use Go canonical import paths 2016-07-16 13:48:21 -04:00
chown Use Go canonical import paths 2016-07-16 13:48:21 -04:00
clock Refactor util clock into it's own pkg 2016-07-28 02:29:04 -04:00
codeinspector Check only predicate functions in test 2016-07-08 13:01:41 +02:00
config Use Go canonical import paths 2016-07-16 13:48:21 -04:00
configz Remove "All rights reserved" from all the headers. 2016-06-29 17:47:36 -07:00
crlf Remove "All rights reserved" from all the headers. 2016-06-29 17:47:36 -07:00
crypto Remove "All rights reserved" from all the headers. 2016-06-29 17:47:36 -07:00
dbus Use Go canonical import paths 2016-07-16 13:48:21 -04:00
diff Merge pull request #28441 from smarterclayton/reflect_check 2016-07-05 05:33:28 -07:00
env Remove "All rights reserved" from all the headers. 2016-06-29 17:47:36 -07:00
errors Use Go canonical import paths 2016-07-16 13:48:21 -04:00
exec Use Go canonical import paths 2016-07-16 13:48:21 -04:00
flag Remove "All rights reserved" from all the headers. 2016-06-29 17:47:36 -07:00
flock Remove "All rights reserved" from all the headers. 2016-06-29 17:47:36 -07:00
flowcontrol Refactor util clock into it's own pkg 2016-07-28 02:29:04 -04:00
flushwriter Use Go canonical import paths 2016-07-16 13:48:21 -04:00
framer Remove "All rights reserved" from all the headers. 2016-06-29 17:47:36 -07:00
goroutinemap Merge pull request #29596 from matttproud/fix/time-leaks/remainder 2016-07-29 14:06:47 -07:00
hash Remove "All rights reserved" from all the headers. 2016-06-29 17:47:36 -07:00
homedir Remove "All rights reserved" from all the headers. 2016-06-29 17:47:36 -07:00
httpstream pkg/various: plug leaky time.New{Timer,Ticker}s 2016-07-26 06:20:31 +02:00
integer Remove "All rights reserved" from all the headers. 2016-06-29 17:47:36 -07:00
interrupt Remove "All rights reserved" from all the headers. 2016-06-29 17:47:36 -07:00
intstr Use file tags to generate deep-copies 2016-07-07 16:49:46 -07:00
io Remove "All rights reserved" from all the headers. 2016-06-29 17:47:36 -07:00
iptables Use Go canonical import paths 2016-07-16 13:48:21 -04:00
json Remove "All rights reserved" from all the headers. 2016-06-29 17:47:36 -07:00
jsonpath Use Go canonical import paths 2016-07-16 13:48:21 -04:00
keymutex Remove "All rights reserved" from all the headers. 2016-06-29 17:47:36 -07:00
labels Use Go canonical import paths 2016-07-16 13:48:21 -04:00
limitwriter Use Go canonical import paths 2016-07-16 13:48:21 -04:00
metrics Remove "All rights reserved" from all the headers. 2016-06-29 17:47:36 -07:00
mount Add volume and mount logging 2016-07-21 09:10:00 -04:00
net Revert "Follow on for 1.4 to default HTTP2 on by default" 2016-07-20 08:47:15 -05:00
node Change route controller to use patch to set node condition. 2016-07-12 10:30:33 -07:00
oom Add f.Close() for applyOOMScoreAdj 2016-07-21 13:07:30 -04:00
parsers Remove "All rights reserved" from all the headers. 2016-06-29 17:47:36 -07:00
pod Use Go canonical import paths 2016-07-16 13:48:21 -04:00
procfs Use Go canonical import paths 2016-07-16 13:48:21 -04:00
proxy Use Go canonical import paths 2016-07-16 13:48:21 -04:00
rand Remove "All rights reserved" from all the headers. 2016-06-29 17:47:36 -07:00
replicaset controller: wait for synced old replica sets on Recreate 2016-07-04 18:23:58 +02:00
runtime Allow mounts to run in parallel for non-attachable 2016-07-19 21:54:26 -07:00
selinux Use Go canonical import paths 2016-07-16 13:48:21 -04:00
sets Remove "All rights reserved" from all the headers. 2016-06-29 17:47:36 -07:00
slice Remove "All rights reserved" from all the headers. 2016-06-29 17:47:36 -07:00
strategicpatch Merge pull request #28204 from thockin/cleanup-third_party 2016-07-07 12:13:14 -07:00
strings Remove "All rights reserved" from all the headers. 2016-06-29 17:47:36 -07:00
sysctl Remove "All rights reserved" from all the headers. 2016-06-29 17:47:36 -07:00
system Remove "All rights reserved" from all the headers. 2016-06-29 17:47:36 -07:00
term Not to use SetWinsize in windows 2016-07-27 17:22:30 -07:00
testing Remove "All rights reserved" from all the headers. 2016-06-29 17:47:36 -07:00
threading Remove "All rights reserved" from all the headers. 2016-06-29 17:47:36 -07:00
validation Unexport DNS regexps, lengths are still used 2016-07-03 02:20:11 -07:00
wait Fix race condition found in JitterUntil. 2016-07-28 11:41:02 -05:00
workqueue Refactor util clock into it's own pkg 2016-07-28 02:29:04 -04:00
wsstream Use Go canonical import paths 2016-07-16 13:48:21 -04:00
yaml Remove "All rights reserved" from all the headers. 2016-06-29 17:47:36 -07:00
doc.go Use Go canonical import paths 2016-07-16 13:48:21 -04:00
line_delimiter.go Remove "All rights reserved" from all the headers. 2016-06-29 17:47:36 -07:00
line_delimiter_test.go Remove "All rights reserved" from all the headers. 2016-06-29 17:47:36 -07:00
logs.go Remove "All rights reserved" from all the headers. 2016-06-29 17:47:36 -07:00
resource_container_linux.go Remove "All rights reserved" from all the headers. 2016-06-29 17:47:36 -07:00
resource_container_unsupported.go Remove "All rights reserved" from all the headers. 2016-06-29 17:47:36 -07:00
runner.go Remove "All rights reserved" from all the headers. 2016-06-29 17:47:36 -07:00
runner_test.go Remove "All rights reserved" from all the headers. 2016-06-29 17:47:36 -07:00
string_flag.go Remove "All rights reserved" from all the headers. 2016-06-29 17:47:36 -07:00
template.go Remove "All rights reserved" from all the headers. 2016-06-29 17:47:36 -07:00
template_test.go Remove "All rights reserved" from all the headers. 2016-06-29 17:47:36 -07:00
trace.go Remove "All rights reserved" from all the headers. 2016-06-29 17:47:36 -07:00
umask.go Remove "All rights reserved" from all the headers. 2016-06-29 17:47:36 -07:00
umask_windows.go Remove "All rights reserved" from all the headers. 2016-06-29 17:47:36 -07:00
util.go Remove "All rights reserved" from all the headers. 2016-06-29 17:47:36 -07:00
util_test.go Remove "All rights reserved" from all the headers. 2016-06-29 17:47:36 -07:00
uuid.go Remove "All rights reserved" from all the headers. 2016-06-29 17:47:36 -07:00