Use Set instead of map[string]string for container labels

Signed-off-by: Mrunal Patel <mpatel@redhat.com>
This commit is contained in:
Mrunal Patel 2016-10-13 15:45:41 -07:00
parent c6f509b832
commit 50cc7ce940

View file

@ -18,6 +18,7 @@ import (
"github.com/kubernetes-incubator/cri-o/utils" "github.com/kubernetes-incubator/cri-o/utils"
"github.com/opencontainers/runtime-spec/specs-go" "github.com/opencontainers/runtime-spec/specs-go"
"golang.org/x/sys/unix" "golang.org/x/sys/unix"
"k8s.io/kubernetes/pkg/fields"
) )
const ( const (
@ -221,7 +222,7 @@ type Container struct {
name string name string
bundlePath string bundlePath string
logPath string logPath string
labels map[string]string labels fields.Set
sandbox string sandbox string
terminal bool terminal bool
state *ContainerState state *ContainerState