From 01c8785ea474eba5eabfbb8a1b3e73fcf0365ac0 Mon Sep 17 00:00:00 2001 From: Mrunal Patel Date: Mon, 17 Oct 2016 11:28:08 -0700 Subject: [PATCH] Use Set instead of map for storing pod labels Signed-off-by: Mrunal Patel --- server/sandbox.go | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/server/sandbox.go b/server/sandbox.go index 5144f13d..b69e946a 100644 --- a/server/sandbox.go +++ b/server/sandbox.go @@ -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