mirror of
https://github.com/k3s-io/kubernetes.git
synced 2025-07-29 14:37:00 +00:00
Merge pull request #77419 from alculquicondor/feature/fake-runtime-handler
Store runtimeHandler for the PodSandboxStatus in FakeRuntimeService
This commit is contained in:
commit
5523be3572
@ -181,8 +181,9 @@ func (r *FakeRuntimeService) RunPodSandbox(config *runtimeapi.PodSandboxConfig,
|
|||||||
Network: &runtimeapi.PodSandboxNetworkStatus{
|
Network: &runtimeapi.PodSandboxNetworkStatus{
|
||||||
Ip: FakePodSandboxIP,
|
Ip: FakePodSandboxIP,
|
||||||
},
|
},
|
||||||
Labels: config.Labels,
|
Labels: config.Labels,
|
||||||
Annotations: config.Annotations,
|
Annotations: config.Annotations,
|
||||||
|
RuntimeHandler: runtimeHandler,
|
||||||
},
|
},
|
||||||
RuntimeHandler: runtimeHandler,
|
RuntimeHandler: runtimeHandler,
|
||||||
}
|
}
|
||||||
@ -253,12 +254,13 @@ func (r *FakeRuntimeService) ListPodSandbox(filter *runtimeapi.PodSandboxFilter)
|
|||||||
}
|
}
|
||||||
|
|
||||||
result = append(result, &runtimeapi.PodSandbox{
|
result = append(result, &runtimeapi.PodSandbox{
|
||||||
Id: s.Id,
|
Id: s.Id,
|
||||||
Metadata: s.Metadata,
|
Metadata: s.Metadata,
|
||||||
State: s.State,
|
State: s.State,
|
||||||
CreatedAt: s.CreatedAt,
|
CreatedAt: s.CreatedAt,
|
||||||
Labels: s.Labels,
|
Labels: s.Labels,
|
||||||
Annotations: s.Annotations,
|
Annotations: s.Annotations,
|
||||||
|
RuntimeHandler: s.RuntimeHandler,
|
||||||
})
|
})
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user