k3s/pkg
Kubernetes Submit Queue 479ff417b8 Merge pull request #35348 from Random-Liu/kuberuntime-container-logs
Automatic merge from submit-queue

CRI: Add kuberuntime container logs

Based on https://github.com/kubernetes/kubernetes/pull/34858.

The first 2 commits are from #34858. And the last 2 commits are new.

This PR added kuberuntime container logs support and add unit test for it.

I've tested all the functions manually, and I'll send another PR to write a node e2e test for container log.

**_Notice: current implementation doesn't support log rotation**_, which means that:
- It will not retrieve logs in rotated log file.
- If log rotation happens when following the log:
  - If the rotation is using create mode, we'll still follow the old file.
  - If the rotation is using copytruncate, we'll be reading at the original position and get nothing.

To solve these issues, kubelet needs to rotate the log itself, or at least kubelet should be able to control the the behavior of log rotator. These are doable but out of the scope of 1.5 and will be addressed in future release.

@yujuhong @feiskyer @yifan-gu 
/cc @kubernetes/sig-node
2016-11-01 20:47:20 -07:00
..
admission autogenerated 2016-10-21 17:32:32 -07:00
api generated: alternative unsafe conversions 2016-10-31 11:00:29 -04:00
apimachinery autogenerated 2016-10-21 17:32:32 -07:00
apis Add FeatureGates field to KubeletConfiguration 2016-11-01 14:53:50 -07:00
apiserver Correct the article in generated documents 2016-10-31 09:46:29 +10:00
auth fix tests by declaring testdata 2016-10-21 17:32:32 -07:00
capabilities autogenerated 2016-10-21 17:32:32 -07:00
client Merge pull request #35639 from ncdc/lister-gen 2016-11-01 09:29:06 -07:00
cloudprovider Merge pull request #30091 from rootfs/azure-storage 2016-11-01 17:27:14 -07:00
controller Merge pull request #35235 from foxish/node-controller-no-force-deletion 2016-11-01 20:08:57 -07:00
conversion autogenerated 2016-10-21 17:32:32 -07:00
credentialprovider Merge pull request #35013 from justinsb/us_east_2 2016-11-01 18:47:07 -07:00
dns autogenerated 2016-10-24 14:47:27 -07:00
fieldpath autogenerated 2016-10-21 17:32:32 -07:00
fields autogenerated 2016-10-21 17:32:32 -07:00
generated Add FeatureGates field to KubeletConfiguration 2016-11-01 14:53:50 -07:00
genericapiserver Merge pull request #35795 from deads2k/api-33-clean-master.go 2016-11-01 06:50:23 -07:00
healthz autogenerated 2016-10-21 17:32:32 -07:00
httplog autogenerated 2016-10-21 17:32:32 -07:00
hyperkube autogenerated 2016-10-21 17:32:32 -07:00
kubectl Merge pull request #30091 from rootfs/azure-storage 2016-11-01 17:27:14 -07:00
kubelet Merge pull request #35348 from Random-Liu/kuberuntime-container-logs 2016-11-01 20:47:20 -07:00
kubemark Adding a root filesystem override for kubelet mounter 2016-10-26 21:42:59 -07:00
labels autogenerated 2016-10-21 17:32:32 -07:00
master remove non-reuseable bits of MasterServer 2016-10-31 08:50:05 -04:00
metrics autogenerated 2016-10-24 14:47:27 -07:00
probe autogenerated 2016-10-21 17:32:32 -07:00
proxy autogenerated 2016-10-21 17:32:32 -07:00
quota quota controller uses informers if available for pod calculation 2016-10-31 11:38:22 -04:00
registry remove non-reuseable bits of MasterServer 2016-10-31 08:50:05 -04:00
routes autogenerated 2016-10-21 17:32:32 -07:00
runtime Replace negotiation with a new method that can extract info 2016-10-28 11:30:11 -04:00
security fix tests by declaring testdata 2016-10-21 17:32:32 -07:00
securitycontext autogenerated 2016-10-21 17:32:32 -07:00
selection autogenerated 2016-10-21 17:32:32 -07:00
serviceaccount autogenerated 2016-10-21 17:32:32 -07:00
ssh Merge pull request #35323 from mikkeloscar/decode-pem 2016-10-27 02:59:29 -07:00
storage Increase etcd3 compaction frequency 2016-10-31 08:40:13 +01:00
types autogenerated 2016-10-21 17:32:32 -07:00
util Add FeatureGates field to KubeletConfiguration 2016-11-01 14:53:50 -07:00
version rename build/ to build-tools/ 2016-10-24 14:41:56 -07:00
volume Merge pull request #30091 from rootfs/azure-storage 2016-11-01 17:27:14 -07:00
watch move watch.ListWatchUntil to its own package to avoid future import cycle 2016-10-30 13:14:20 -07:00
OWNERS