k3s/pkg/kubelet/kuberuntime
Kubernetes Submit Queue b9b875f0d7 Merge pull request #46105 from sjenning/update-conatiner-resource-cri
Automatic merge from submit-queue (batch tested with PRs 49488, 50407, 46105, 50456, 50258)

Add UpdateContainerResources method to CRI

This is first step toward support for opinionated cpu pinning for certain guaranteed pods.

In order to do this, the kubelet needs to be able to dynamically update the cpuset at the container level, which is managed by the container runtime.  Thus the kubelet needs a method to communicate over the CRI so the runtime can then modify the container cgroup.

This is used in the situation where a core is added or removed from the shared pool to become a exclusive core for a new G pod.  The cpuset for all containers in the shared pool will need to be updated to add or remove that core.

Opening this up now so we can start discussion.  The need for a change to the CRI might be unexpected.

@derekwaynecarr @vishh @ConnorDoyle 

```release-note
NONE
```
2017-08-11 14:14:00 -07:00
..
BUILD Use buildozer to delete licenses() rules except under third_party/ 2017-08-11 09:32:39 -07:00
doc.go cmd/kubelet 2016-11-23 15:53:09 -08:00
fake_kuberuntime_manager.go run hack/update-all 2017-06-22 11:31:03 -07:00
helpers.go run hack/update-all 2017-06-22 11:31:03 -07:00
helpers_test.go follow our go code style: error->err 2017-07-07 09:34:38 +08:00
instrumented_services.go add UpdateContainerResources function to CRI 2017-07-31 20:47:56 -05:00
instrumented_services_test.go Improving test coverage for kubelet/kuberuntime. 2017-06-01 09:43:15 +02:00
kuberuntime_container.go Do not try run preStop hook when the gracePeriod is 0 2017-08-03 07:57:21 +05:30
kuberuntime_container_test.go Do not try run preStop hook when the gracePeriod is 0 2017-08-03 07:57:21 +05:30
kuberuntime_gc.go Update CRI references 2017-06-09 10:16:40 +08:00
kuberuntime_gc_test.go run root-rewrite-v1-..., compile 2017-06-22 10:25:57 -07:00
kuberuntime_image.go run hack/update-all 2017-06-22 11:31:03 -07:00
kuberuntime_image_test.go run hack/update-all 2017-06-22 11:31:03 -07:00
kuberuntime_logs.go run root-rewrite-v1-..., compile 2017-06-22 10:25:57 -07:00
kuberuntime_logs_test.go run hack/update-all 2017-06-22 11:31:03 -07:00
kuberuntime_manager.go Merge pull request #48584 from yiqinguo/yiqinguo_eventtype 2017-07-24 13:52:36 -07:00
kuberuntime_manager_test.go run hack/update-all 2017-06-22 11:31:03 -07:00
kuberuntime_sandbox.go run hack/update-all 2017-06-22 11:31:03 -07:00
kuberuntime_sandbox_test.go run hack/update-all 2017-06-22 11:31:03 -07:00
labels.go run hack/update-all 2017-06-22 11:31:03 -07:00
labels_test.go run hack/update-all 2017-06-22 11:31:03 -07:00
legacy.go Move legacy log symlink to kuberuntime 2017-05-05 11:48:08 -07:00
legacy_test.go Move legacy log symlink to kuberuntime 2017-05-05 11:48:08 -07:00
security_context.go allowPrivilegeEscalation: modify api types & add functionality 2017-07-24 12:52:41 -04:00
security_context_test.go run hack/update-all 2017-06-22 11:31:03 -07:00