k3s/pkg/kubelet
Kubernetes Submit Queue b63fab3aaf
Merge pull request #58036 from shlevy/cri-ImageStatus-info
Automatic merge from submit-queue (batch tested with PRs 58171, 58036, 60540). 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>.

dockershim: Return Labels as Info in ImageStatus.

c6ddc749e8 added an Info field to
ImageStatusResponse when Verbose is true. This makes the image's
Labels available in that field, rather than unconditionally returning
an empty map.

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

This PR exposes an image's `Labels` through the CRI. In particular, I want this so I can write an `ImageService` wrapper that delegates all operations to a real `ImageService` but also, when the right `Labels`, ensures any needed [nix store](https://nixos.org/nix/) paths are present on the system when an image is pulled, enabling users to use nix for package distribution while still using containers for isolation and kubernetes for orchestration. In general, though, this should be useful for anything that wants to know about an image's `Labels`

**Special notes for your reviewer**:

I'd prefer to put this change into the `Image` protobuf type instead of putting it into `Info` (gated by `Verbose` or not, available in other requests like `ListImages` or not), but that would be a change to the protocol and it seems `Info` was introduced exactly for this purpose. If it's acceptable to put this into `Image`, I'll rework this.

If this change is acceptable, I will also do the work for `cri-o`, `rktlet`, `frakti`, and `cri-containerd` where applicable.

I have started the process for my employer to sign on to the CLA. I don't have reason to expect it to take long, but because there is more work to do if this change is desired I'd prefer if we can start review before that is completed.

**Release note**:

```release-note
dockershim now makes an Image's Labels available in the Info field of ImageStatusResponse
```
2018-02-28 09:48:23 -08:00
..
apis Merge pull request #59333 from feiskyer/win 2018-02-27 20:34:13 -08:00
cadvisor Merge pull request #59743 from feiskyer/stats 2018-02-23 20:09:32 -08:00
certificate Merge pull request #59316 from smarterclayton/terminate_early 2018-02-21 15:40:41 -08:00
checkpoint Autogenerated: hack/update-bazel.sh 2018-02-16 13:43:01 -08:00
client Autogenerated: hack/update-bazel.sh 2018-02-16 13:43:01 -08:00
cm Merge pull request #60318 from jiayingz/api-change 2018-02-24 21:19:33 -08:00
config Merge pull request #59849 from yue9944882/forcibly-lower-staticpod-name 2018-02-25 18:29:51 -08:00
configmap Autogenerated: hack/update-bazel.sh 2018-02-16 13:43:01 -08:00
container Merge pull request #59842 from ixdy/update-rules_go-02-2018 2018-02-19 22:23:05 -08:00
custommetrics Autogenerated: hack/update-bazel.sh 2018-02-16 13:43:01 -08:00
dockershim Merge pull request #58036 from shlevy/cri-ImageStatus-info 2018-02-28 09:48:23 -08:00
envvars Autogenerated: hack/update-bazel.sh 2018-02-16 13:43:01 -08:00
events Improve messaging on resize 2018-01-29 15:07:51 -05:00
eviction fix running with no eviction thresholds 2018-02-20 13:49:14 -08:00
gpu Autogenerated: hack/update-bazel.sh 2018-02-16 13:43:01 -08:00
images Merge pull request #60448 from Random-Liu/image-cache-return-copy 2018-02-27 10:50:41 -08:00
kubeletconfig expunge the word 'manifest' from Kubelet's config API 2018-02-23 11:44:06 -08:00
kuberuntime Merge pull request #59333 from feiskyer/win 2018-02-27 20:34:13 -08:00
leaky update BUILD files 2017-10-15 18:18:13 -07:00
lifecycle Support cluster-level extended resources in kubelet and kube-scheduler 2018-02-27 17:25:30 -08:00
logs Generated code 2018-02-23 01:42:35 +00:00
metrics Autogenerated: hack/update-bazel.sh 2018-02-16 13:43:01 -08:00
mountpod Autogenerated: hack/update-bazel.sh 2018-02-16 13:43:01 -08:00
network Auto-updated BUILD files 2018-02-27 11:18:11 -08:00
pleg Autogenerated: hack/update-bazel.sh 2018-02-16 13:43:01 -08:00
pod Autogenerated: hack/update-bazel.sh 2018-02-16 13:43:01 -08:00
preemption Autogenerated: hack/update-bazel.sh 2018-02-16 13:43:01 -08:00
prober Autogenerated: hack/update-bazel.sh 2018-02-16 13:43:01 -08:00
qos Make a few code paths compile cleanly with 32-bit Go. 2018-02-27 13:53:32 -08:00
remote Autogenerated: hack/update-bazel.sh 2018-02-16 13:43:01 -08:00
rkt Autogenerated: hack/update-bazel.sh 2018-02-16 13:43:01 -08:00
secret Autogenerated: hack/update-bazel.sh 2018-02-16 13:43:01 -08:00
server Merge pull request #59842 from ixdy/update-rules_go-02-2018 2018-02-19 22:23:05 -08:00
stats Add CPU/Memory pod stats for CRI stats. 2018-02-26 19:29:47 +00:00
status Autogenerated: hack/update-bazel.sh 2018-02-16 13:43:01 -08:00
sysctl clean up sysctl code 2018-02-23 16:41:53 +08:00
types Merge pull request #58835 from ravisantoshgudimetla/critical-pod-with-priority 2018-02-23 11:22:31 -08:00
util Autogenerated: hack/update-bazel.sh 2018-02-16 13:43:01 -08:00
volumemanager Merge pull request #60505 from jsafrane/fix-logf 2018-02-28 06:07:24 -08:00
winstats fix "make test" 2018-02-24 17:39:21 +08:00
BUILD update bazel 2018-02-27 20:23:36 +08:00
OWNERS
active_deadline.go
active_deadline_test.go
doc.go
kubelet.go Merge pull request #60246 from mtaufen/backoff-pleg 2018-02-27 12:05:37 -08:00
kubelet_getters.go collect metrics on the /kubepods cgroup on-demand 2018-02-17 12:32:40 -08:00
kubelet_getters_test.go
kubelet_network.go fix all the typos across the project 2018-02-11 11:04:14 +08:00
kubelet_network_test.go Move DNS related kubelet codes into its own package 2017-11-15 10:56:44 -08:00
kubelet_node_status.go Support cluster-level extended resources in kubelet and kube-scheduler 2018-02-27 17:25:30 -08:00
kubelet_node_status_test.go update import 2018-02-27 20:23:35 +08:00
kubelet_pods.go update import 2018-02-27 20:23:35 +08:00
kubelet_pods_test.go Increment CRI version from v1alpha1 to v1alpha2 2018-02-07 09:06:26 +01:00
kubelet_pods_windows_test.go
kubelet_resources.go apimachinery: remove Scheme.DeepCopy 2017-10-06 14:59:17 +02:00
kubelet_resources_test.go
kubelet_test.go Support cluster-level extended resources in kubelet and kube-scheduler 2018-02-27 17:25:30 -08:00
kubelet_volumes.go use GetFileType per mount.Interface to check hostpath type 2017-09-26 09:57:06 +08:00
kubelet_volumes_test.go update import 2018-02-27 20:23:35 +08:00
oom_watcher.go
oom_watcher_test.go
pod_container_deletor.go
pod_container_deletor_test.go
pod_workers.go kubelet syncPod throws specific events 2017-10-13 10:24:09 -04:00
pod_workers_test.go Correct TestUpdatePod comment 2017-10-20 09:41:18 +08:00
reason_cache.go
reason_cache_test.go
runonce.go
runonce_test.go
runtime.go Remove setInitError. 2018-01-29 21:44:54 -08:00
util.go
volume_host.go update import 2018-02-27 20:23:35 +08:00