mirror of
https://github.com/kata-containers/kata-containers.git
synced 2025-04-29 20:24:31 +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}"
|
cat << EOF > "${pod_yaml}"
|
||||||
metadata:
|
metadata:
|
||||||
name: busybox-sandbox1
|
name: busybox-sandbox1
|
||||||
|
namespace: default
|
||||||
|
uid: busybox-sandbox1-uid
|
||||||
EOF
|
EOF
|
||||||
|
|
||||||
#TestContainerSwap has created its own container_yaml.
|
#TestContainerSwap has created its own container_yaml.
|
||||||
@ -174,6 +176,8 @@ EOF
|
|||||||
cat << EOF > "${container_yaml}"
|
cat << EOF > "${container_yaml}"
|
||||||
metadata:
|
metadata:
|
||||||
name: busybox-killed-vmm
|
name: busybox-killed-vmm
|
||||||
|
namespace: default
|
||||||
|
uid: busybox-killed-vmm-uid
|
||||||
image:
|
image:
|
||||||
image: "$image"
|
image: "$image"
|
||||||
command:
|
command:
|
||||||
@ -318,6 +322,8 @@ function TestContainerSwap() {
|
|||||||
cat << EOF > "${container_yaml}"
|
cat << EOF > "${container_yaml}"
|
||||||
metadata:
|
metadata:
|
||||||
name: busybox-swap
|
name: busybox-swap
|
||||||
|
namespace: default
|
||||||
|
uid: busybox-swap-uid
|
||||||
annotations:
|
annotations:
|
||||||
io.katacontainers.container.resource.swappiness: "100"
|
io.katacontainers.container.resource.swappiness: "100"
|
||||||
io.katacontainers.container.resource.swap_in_bytes: "1610612736"
|
io.katacontainers.container.resource.swap_in_bytes: "1610612736"
|
||||||
@ -348,6 +354,8 @@ EOF
|
|||||||
cat << EOF > "${container_yaml}"
|
cat << EOF > "${container_yaml}"
|
||||||
metadata:
|
metadata:
|
||||||
name: busybox-swap
|
name: busybox-swap
|
||||||
|
namespace: default
|
||||||
|
uid: busybox-swap-uid
|
||||||
annotations:
|
annotations:
|
||||||
io.katacontainers.container.resource.swappiness: "100"
|
io.katacontainers.container.resource.swappiness: "100"
|
||||||
linux:
|
linux:
|
||||||
@ -378,6 +386,8 @@ EOF
|
|||||||
cat << EOF > "${container_yaml}"
|
cat << EOF > "${container_yaml}"
|
||||||
metadata:
|
metadata:
|
||||||
name: busybox-swap
|
name: busybox-swap
|
||||||
|
namespace: default
|
||||||
|
uid: busybox-swap-uid
|
||||||
annotations:
|
annotations:
|
||||||
io.katacontainers.container.resource.swappiness: "100"
|
io.katacontainers.container.resource.swappiness: "100"
|
||||||
image:
|
image:
|
||||||
|
Loading…
Reference in New Issue
Block a user