kubernetes/pkg/kubelet/kuberuntime
Kubernetes Submit Queue c02b784b76
Merge pull request #58172 from NVIDIA/annotations
Automatic merge from submit-queue (batch tested with PRs 58184, 59307, 58172). 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>.

Add annotations to the device plugin API

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

**Which issue(s) this PR fixes** : Related to #56649 but does not fix it

This adds the ability for the device plugins to annotate containers.
Product wise, this allows the NVIDIA device plugin to support CRI-O (which allows hooks through container annotations).

**Special notes for your reviewer**:
/area hw-accelerators
/cc @vishh @jiayingz @vikaschoudhary16 

I'm wondering if it would make sense to fire a blank call to `newContainerAnnotations` at the start of the deviceplugin to get Annotations that are forbidden.
Current behavior is that any Annotations that conflicts with Kubelet will be overwritten by Kubelet.

**Release note**:
```release-note
NONE
```
2018-02-05 13:50:35 -08:00
..
logs Autogenerate BUILD files 2017-12-23 13:12:11 -08:00
BUILD Add a container type to the runtime labels 2018-01-23 13:16:36 +01:00
doc.go cmd/kubelet 2016-11-23 15:53:09 -08:00
fake_kuberuntime_manager.go Fix incorrect localhost seccomp profile path 2017-11-22 02:49:23 +00:00
helpers_test.go Fix incorrect localhost seccomp profile path 2017-11-22 02:49:23 +00:00
helpers.go Fix incorrect localhost seccomp profile path 2017-11-22 02:49:23 +00:00
instrumented_services_test.go add TestStatus to instrumented_services_test 2017-10-17 18:33:02 +08:00
instrumented_services.go CRI: Add a call to reopen log file for a container 2018-01-29 14:05:38 -08:00
kuberuntime_container_test.go Add Annotations from the deviceplugin to the runtime 2018-02-03 19:53:20 +01:00
kuberuntime_container.go Add Annotations from the deviceplugin to the runtime 2018-02-03 19:53:20 +01:00
kuberuntime_gc_test.go Remove unused code in UT files in pkg/ 2018-01-15 16:02:35 +08:00
kuberuntime_gc.go fix #52462. Do not GC exited containers in running pods 2017-09-28 09:37:21 -07:00
kuberuntime_image_test.go run hack/update-all 2017-06-22 11:31:03 -07:00
kuberuntime_image.go kubelet: imagegc: exempt sandbox image 2018-01-17 15:10:44 -06:00
kuberuntime_logs.go Make CRI logs parsing to a library 2017-11-07 10:07:16 +08:00
kuberuntime_manager_test.go Add a container type to the runtime labels 2018-01-23 13:16:36 +01:00
kuberuntime_manager.go Add a container type to the runtime labels 2018-01-23 13:16:36 +01:00
kuberuntime_sandbox_test.go run hack/update-all 2017-06-22 11:31:03 -07:00
kuberuntime_sandbox.go Consolidate DNS codes in kubelet pkg 2017-11-16 21:07:24 -08:00
labels_test.go Add Annotations from the deviceplugin to the runtime 2018-02-03 19:53:20 +01:00
labels.go Add Annotations from the deviceplugin to the runtime 2018-02-03 19:53:20 +01:00
legacy_test.go Move legacy log symlink to kuberuntime 2017-05-05 11:48:08 -07:00
legacy.go Move legacy log symlink to kuberuntime 2017-05-05 11:48:08 -07:00
security_context_test.go security_context_test.go(TestVerifyRunAsNonRoot): add more test cases. 2017-12-20 18:02:52 +01:00
security_context.go kubelet: MustRunAsNonRoot should reject a pod if it has non-numeric USER. 2017-11-29 16:00:00 +01:00