Use Set instead of map for storing pod labels

Signed-off-by: Mrunal Patel <mpatel@redhat.com>
This commit is contained in:
Mrunal Patel 2016-10-17 11:28:08 -07:00
parent 63614ff690
commit 01c8785ea4

View file

@ -13,6 +13,7 @@ import (
"github.com/opencontainers/runc/libcontainer/label"
"github.com/opencontainers/runtime-tools/generate"
"golang.org/x/net/context"
"k8s.io/kubernetes/pkg/fields"
pb "k8s.io/kubernetes/pkg/kubelet/api/v1alpha1/runtime"
)
@ -20,7 +21,7 @@ type sandbox struct {
id string
name string
logDir string
labels map[string]string
labels fields.Set
annotations map[string]string
containers oci.Store
processLabel string