mirror of
https://github.com/optim-enterprises-bv/kubernetes.git
synced 2025-11-01 18:58:18 +00:00
kubelet: change map[string]RuntimeHandler to []RuntimeHandler
The map is changed to an array so as to retain the order of the original array propagated from the CRI runtime. Signed-off-by: Akihiro Suda <akihiro.suda.cz@hco.ntt.co.jp>
This commit is contained in:
@@ -109,13 +109,13 @@ func TestHandlerSupportsUserNamespaces(t *testing.T) {
|
||||
defer testKubelet.Cleanup()
|
||||
kubelet := testKubelet.kubelet
|
||||
|
||||
kubelet.runtimeState.setRuntimeHandlers(map[string]kubecontainer.RuntimeHandler{
|
||||
"has-support": {
|
||||
kubelet.runtimeState.setRuntimeHandlers([]kubecontainer.RuntimeHandler{
|
||||
{
|
||||
Name: "has-support",
|
||||
SupportsUserNamespaces: true,
|
||||
},
|
||||
"has-no-support": {
|
||||
Name: "has-support",
|
||||
{
|
||||
Name: "has-no-support",
|
||||
SupportsUserNamespaces: false,
|
||||
},
|
||||
})
|
||||
|
||||
Reference in New Issue
Block a user