Use Set instead of map[string]string for container labels
Signed-off-by: Mrunal Patel <mpatel@redhat.com>
This commit is contained in:
parent
c6f509b832
commit
50cc7ce940
1 changed files with 2 additions and 1 deletions
|
@ -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
|
||||||
|
|
Loading…
Reference in a new issue