refactor labels used in cri server

remove the duplication of labels used in cri/server
and move them to a common package cri/labels

Signed-off-by: Akhil Mohan <makhil@vmware.com>
This commit is contained in:
Akhil Mohan
2023-10-18 22:14:37 +05:30
committed by Akhil Mohan
parent 45d7f2324d
commit 7e79225cec
5 changed files with 20 additions and 20 deletions

View File

@@ -18,6 +18,7 @@ package server
import (
criconfig "github.com/containerd/containerd/v2/pkg/cri/config"
crilabels "github.com/containerd/containerd/v2/pkg/cri/labels"
cstore "github.com/containerd/containerd/v2/pkg/cri/store/container"
sstore "github.com/containerd/containerd/v2/pkg/cri/store/sandbox"
)
@@ -39,5 +40,5 @@ func (i *criImplementation) ContainerStore() *cstore.Store {
}
func (i *criImplementation) ContainerMetadataExtensionKey() string {
return containerMetadataExtension
return crilabels.ContainerMetadataExtension
}