cri-o/server
Dongsu Park 2080744963 server: fix panic when assigning entry to nil map
When running cri-tests with cri-o, I found out that cri-o panicked
immediately with the following message. Fix it by accessing to the
labels map only if it's non-nil.

```
panic: assignment to entry in nil map

goroutine 57 [running]:
.../cri-o/server.(*Server).RunPodSandbox(0xc42048e000, 0x7efcad4cd400,
0xc42066ec90, 0xc4201703d0, 0x0, 0x0, 0x0)
        .../cri-o/server/sandbox_run.go:225 +0xda5
.../cri-o/vendor/k8s.io/kubernetes/pkg/kubelet/apis/cri/v1alpha1/runtime
._RuntimeService_RunPodSandbox_Handler(0x21793e0, 0xc42048e000,
0x7efcad4cd400, 0xc42066ec90, 0xc4204fe780, 0x0, 0x0, 0x0, 0x0, 0x0)
        .../cri-o/vendor/k8s.io/kubernetes/pkg/kubelet/apis/cri/v1alpha1/runtime/api.pb.go:3645 +0x279
.../cri-o/vendor/google.golang.org/grpc.(*Server).processUnaryRPC(0xc420
09e3c0, 0x33e79c0, 0xc4203d1950, 0xc42080a000, 0xc4202bb980, 0x33b1d58,
0xc42066ec60, 0x0, 0x0)
        .../cri-o/vendor/google.golang.org/grpc/server.go:638 +0x99c
```

Signed-off-by: Dongsu Park <dongsu@kinvolk.io>
2017-09-29 16:19:21 +02:00
..
apparmor Rename ocid to crio. 2017-05-12 09:56:06 -04:00
seccomp container_create: fix seccomp annotations 2017-09-25 21:08:11 +02:00
config.go Make kpod parse configuration file 2017-09-01 11:14:40 -05:00
container_attach.go *: update kube vendor to v1.7.4 2017-08-22 17:32:14 +02:00
container_create.go Merge pull request #917 from runcom/fixes-rc3-0 2017-09-25 14:55:42 -07:00
container_exec.go *: update kube vendor to v1.7.4 2017-08-22 17:32:14 +02:00
container_execsync.go *: update kube vendor to v1.7.4 2017-08-22 17:32:14 +02:00
container_list.go *: update kube vendor to v1.7.4 2017-08-22 17:32:14 +02:00
container_portforward.go *: update kube vendor to v1.7.4 2017-08-22 17:32:14 +02:00
container_remove.go Implement kpod rm 2017-09-05 14:35:36 -04:00
container_start.go *: update kube vendor to v1.7.4 2017-08-22 17:32:14 +02:00
container_stats.go *: update kube vendor to v1.7.4 2017-08-22 17:32:14 +02:00
container_stats_list.go *: update kube vendor to v1.7.4 2017-08-22 17:32:14 +02:00
container_status.go oci: wait a while for exit file to show up 2017-08-29 11:25:51 +02:00
container_stop.go Implement kpod rm 2017-09-05 14:35:36 -04:00
container_updateruntimeconfig.go *: update kube vendor to v1.7.4 2017-08-22 17:32:14 +02:00
image_fs_info.go *: update kube vendor to v1.7.4 2017-08-22 17:32:14 +02:00
image_list.go server: image_list: report image size 2017-08-31 17:50:25 +02:00
image_pull.go *: update kube vendor to v1.7.4 2017-08-22 17:32:14 +02:00
image_remove.go *: update kube vendor to v1.7.4 2017-08-22 17:32:14 +02:00
image_status.go *: update kube vendor to v1.7.4 2017-08-22 17:32:14 +02:00
inspect.go Add crio annotations to container endpoint 2017-09-25 11:59:40 -07:00
inspect_test.go Add crio annotations to container endpoint 2017-09-25 11:59:40 -07:00
naming.go server: Rename infra container to POD 2017-09-01 08:47:55 -07:00
runtime_status.go *: update kube vendor to v1.7.4 2017-08-22 17:32:14 +02:00
sandbox_list.go *: update kube vendor to v1.7.4 2017-08-22 17:32:14 +02:00
sandbox_network.go sandbox_network: pass sandbox to newPodNetwork 2017-09-25 21:08:11 +02:00
sandbox_remove.go server: Add special k8s label to infra containers 2017-09-01 10:25:04 -07:00
sandbox_run.go server: fix panic when assigning entry to nil map 2017-09-29 16:19:21 +02:00
sandbox_status.go *: store sandbox IP 2017-09-02 02:05:12 +02:00
sandbox_stop.go server: clean up sandbox network when running the sandbox fails 2017-09-11 14:19:27 -05:00
server.go Merge pull request #852 from runcom/fixies-42 2017-09-07 07:37:37 -07:00
utils.go sandbox_network: pass sandbox to newPodNetwork 2017-09-25 21:08:11 +02:00
version.go *: update kube vendor to v1.7.4 2017-08-22 17:32:14 +02:00