mirror of
https://github.com/kata-containers/kata-containers.git
synced 2025-04-28 19:54:35 +00:00
ci: cri-containerd: Add namespace / uid to the pods
Otherwise crictl will fail to remove them with: ``` getting sandbox status of pod "$pod": metadata.Name, metadata.Namespace or metadata.Uid is not in metadata "..." ``` A huge shout out to Steven Horsman for helping to debug this one. Signed-off-by: Fabiano Fidêncio <fabiano.fidencio@intel.com>
This commit is contained in:
parent
a84773652c
commit
56767001cb
@ -167,6 +167,8 @@ function testContainerStart() {
|
||||
cat << EOF > "${pod_yaml}"
|
||||
metadata:
|
||||
name: busybox-sandbox1
|
||||
namespace: default
|
||||
uid: busybox-sandbox1-uid
|
||||
EOF
|
||||
|
||||
#TestContainerSwap has created its own container_yaml.
|
||||
@ -174,6 +176,8 @@ EOF
|
||||
cat << EOF > "${container_yaml}"
|
||||
metadata:
|
||||
name: busybox-killed-vmm
|
||||
namespace: default
|
||||
uid: busybox-killed-vmm-uid
|
||||
image:
|
||||
image: "$image"
|
||||
command:
|
||||
@ -318,6 +322,8 @@ function TestContainerSwap() {
|
||||
cat << EOF > "${container_yaml}"
|
||||
metadata:
|
||||
name: busybox-swap
|
||||
namespace: default
|
||||
uid: busybox-swap-uid
|
||||
annotations:
|
||||
io.katacontainers.container.resource.swappiness: "100"
|
||||
io.katacontainers.container.resource.swap_in_bytes: "1610612736"
|
||||
@ -348,6 +354,8 @@ EOF
|
||||
cat << EOF > "${container_yaml}"
|
||||
metadata:
|
||||
name: busybox-swap
|
||||
namespace: default
|
||||
uid: busybox-swap-uid
|
||||
annotations:
|
||||
io.katacontainers.container.resource.swappiness: "100"
|
||||
linux:
|
||||
@ -378,6 +386,8 @@ EOF
|
||||
cat << EOF > "${container_yaml}"
|
||||
metadata:
|
||||
name: busybox-swap
|
||||
namespace: default
|
||||
uid: busybox-swap-uid
|
||||
annotations:
|
||||
io.katacontainers.container.resource.swappiness: "100"
|
||||
image:
|
||||
|
Loading…
Reference in New Issue
Block a user