forked from kata-containers/kata-containers
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
8337: add test cases for guest pull images
- add test cases for guest pull images - need revist after we use container2.0 with 'image pull per runtime class' feature for kata-containers#8337 and kata-containers#8407 Signed-off-by: Da Li Liu <liudali@cn.ibm.com>
- Loading branch information
Showing
7 changed files
with
230 additions
and
13 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
21 changes: 21 additions & 0 deletions
21
tests/integration/kubernetes/runtimeclass_workloads/alpine-pod-with-nydus.yaml
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,21 @@ | ||
# | ||
# Copyright (c) 2023 IBM Corporation | ||
# | ||
# SPDX-License-Identifier: Apache-2.0 | ||
# | ||
apiVersion: v1 | ||
kind: Pod | ||
metadata: | ||
name: alpine-pod-with-nydus | ||
annotations: | ||
io.containerd.cri.runtime-handler: kata | ||
spec: | ||
terminationGracePeriodSeconds: 0 | ||
shareProcessNamespace: true | ||
runtimeClassName: kata | ||
containers: | ||
- name: alpine-container-with-nydus | ||
image: alpine | ||
command: | ||
- "sleep" | ||
- "30" |
19 changes: 19 additions & 0 deletions
19
tests/integration/kubernetes/runtimeclass_workloads/alpine-pod-without-nydus.yaml
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,19 @@ | ||
# | ||
# Copyright (c) 2023 IBM Corporation | ||
# | ||
# SPDX-License-Identifier: Apache-2.0 | ||
# | ||
apiVersion: v1 | ||
kind: Pod | ||
metadata: | ||
name: alpine-pod-without-nydus | ||
spec: | ||
terminationGracePeriodSeconds: 0 | ||
shareProcessNamespace: true | ||
runtimeClassName: kata | ||
containers: | ||
- name: alpine-container-without-nydus | ||
image: alpine | ||
command: | ||
- "sleep" | ||
- "3000" |
18 changes: 18 additions & 0 deletions
18
tests/integration/kubernetes/runtimeclass_workloads/busybox-pod-runc.yaml
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,18 @@ | ||
# | ||
# Copyright (c) 2023 IBM Corporation | ||
# | ||
# SPDX-License-Identifier: Apache-2.0 | ||
# | ||
apiVersion: v1 | ||
kind: Pod | ||
metadata: | ||
name: busybox-pod-runc | ||
spec: | ||
terminationGracePeriodSeconds: 0 | ||
shareProcessNamespace: true | ||
containers: | ||
- name: busybox-container-runc | ||
image: quay.io/prometheus/busybox:latest | ||
command: | ||
- sleep | ||
- "30" |
21 changes: 21 additions & 0 deletions
21
tests/integration/kubernetes/runtimeclass_workloads/busybox-pod-with-nydus.yaml
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,21 @@ | ||
# | ||
# Copyright (c) 2023 IBM Corporation | ||
# | ||
# SPDX-License-Identifier: Apache-2.0 | ||
# | ||
apiVersion: v1 | ||
kind: Pod | ||
metadata: | ||
name: busybox-pod-with-nydus | ||
annotations: | ||
io.containerd.cri.runtime-handler: kata | ||
spec: | ||
terminationGracePeriodSeconds: 0 | ||
shareProcessNamespace: true | ||
runtimeClassName: kata | ||
containers: | ||
- name: busybox-container-with-nydus | ||
image: quay.io/prometheus/busybox:latest | ||
command: | ||
- sleep | ||
- "30" |
19 changes: 19 additions & 0 deletions
19
tests/integration/kubernetes/runtimeclass_workloads/busybox-pod-without-nydus.yaml
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,19 @@ | ||
# | ||
# Copyright (c) 2023 IBM Corporation | ||
# | ||
# SPDX-License-Identifier: Apache-2.0 | ||
# | ||
apiVersion: v1 | ||
kind: Pod | ||
metadata: | ||
name: busybox-pod-without-nydus | ||
spec: | ||
terminationGracePeriodSeconds: 0 | ||
shareProcessNamespace: true | ||
runtimeClassName: kata | ||
containers: | ||
- name: busybox-container-without-nydus | ||
image: quay.io/prometheus/busybox:latest | ||
command: | ||
- sleep | ||
- "30" |