k3s/pkg/kubelet/kuberuntime
Kubernetes Submit Queue 11a836078d Merge pull request #46444 from jsafrane/node-mount-propagation
Automatic merge from submit-queue (batch tested with PRs 45724, 48051, 46444, 51056, 51605)

Mount propagation in kubelet

Together with #45724 it implements mount propagation as proposed in https://github.com/kubernetes/community/pull/659

There is:

- New alpha annotation that allows user to explicitly set propagation mode for each `VolumeMount` in pod containers (to be replaced with real `VolumeMount.Propagation` field during beta) + validation + tests. "Private" is the default one (= no change to existing pods).

  I know about proposal for real API fields for alpha feature in https://docs.google.com/document/d/1wuoSqHkeT51mQQ7dIFhUKrdi3-1wbKrNWeIL4cKb9zU/edit, but it seems it's not implemented yet. It would save me quite lot of code and ugly annotation.

- Updated CRI API to transport chosen propagation to Docker.

- New `kubelet --experimental-mount-propagation` option to enable the previous bullet without modifying types.go (worked around with changing `KubeletDeps`... not nice, but it's better than adding a parameter to `NewMainKubelet` and removing it in the next release...)

```release-note
kubelet has alpha support for mount propagation. It is disabled by default and it is there for testing only. This feature may be redesigned or even removed in a future release.
```

@derekwaynecarr @dchen1107 @kubernetes/sig-node-pr-reviews
2017-09-02 12:11:07 -07:00
..
BUILD Revert "CPU manager wiring and `none` policy" 2017-09-01 18:17:36 +02:00
doc.go
fake_kuberuntime_manager.go Revert "CPU manager wiring and `none` policy" 2017-09-01 18:17:36 +02:00
helpers.go Rename runtime/default to docker default 2017-08-13 15:42:15 +08: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 Implement mount propagation in kubelet 2017-09-01 21:36:33 +02:00
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 Use local JSON log buffer in parseDockerJSONLog. 2017-08-09 12:41:15 -04:00
kuberuntime_logs_test.go run hack/update-all 2017-06-22 11:31:03 -07:00
kuberuntime_manager.go Revert "CPU manager wiring and `none` policy" 2017-09-01 18:17:36 +02:00
kuberuntime_manager_test.go Refactor kuberuntime test case with sets.String 2017-08-22 19:43:18 +08:00
kuberuntime_sandbox.go Support seccomp profile from container's security context 2017-08-13 15:42:15 +08: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 Support seccomp profile from container's security context 2017-08-13 15:42:15 +08:00
security_context_test.go run hack/update-all 2017-06-22 11:31:03 -07:00