mirror of
https://github.com/kata-containers/kata-containers.git
synced 2025-08-02 08:17:01 +00:00
tests: remove manifest v1 test
This test was meant to show support for pulling images with v1 manifest schema versions. The nginxhttps image has been modified in https://hub.docker.com/r/ymqytw/nginxhttps/tags such that we are no longer able to pull it: $ docker pull ymqytw/nginxhttps:1.5 Error response from daemon: missing signature key We may remove this test since schema version 1 manifests are deprecated per https://docs.docker.com/engine/deprecated/#pushing-and-pulling-with-image-manifest-v2-schema-1 : "These legacy formats should no longer be used, and users are recommended to update images to use current formats, or to upgrade to more current images". This schema version was used by old docker versions. Further OCI spec https://github.com/opencontainers/image-spec/blob/main/manifest.md#image-manifest-property-descriptions only supports schema version 2. Signed-off-by: Saul Paredes <saulparedes@microsoft.com>
This commit is contained in:
parent
2bd8fde44a
commit
461efc0dd5
@ -23,5 +23,4 @@ kubernetes:
|
||||
- k8s-limit-range
|
||||
- k8s-number-cpus
|
||||
- k8s-oom
|
||||
- k8s-qos-pods
|
||||
- k8s-pod-manifest-v1.bats
|
||||
- k8s-qos-pods
|
@ -11,5 +11,4 @@ kubernetes:
|
||||
- k8s-inotify
|
||||
- k8s-limit-range
|
||||
- k8s-number-cpus
|
||||
- k8s-oom
|
||||
- k8s-pod-manifest-v1.bats
|
||||
- k8s-oom
|
@ -6,5 +6,4 @@
|
||||
kubernetes:
|
||||
- k8s-caps
|
||||
- k8s-inotify
|
||||
- k8s-sandbox-vcpus-allocation # see https://github.com/kata-containers/kata-containers/issues/9093
|
||||
- k8s-pod-manifest-v1.bats
|
||||
- k8s-sandbox-vcpus-allocation # see https://github.com/kata-containers/kata-containers/issues/9093
|
@ -1,31 +0,0 @@
|
||||
#!/usr/bin/env bats
|
||||
#
|
||||
# Copyright (c) 2024 Microsoft.
|
||||
#
|
||||
# SPDX-License-Identifier: Apache-2.0
|
||||
#
|
||||
|
||||
load "${BATS_TEST_DIRNAME}/../../common.bash"
|
||||
load "${BATS_TEST_DIRNAME}/tests_common.sh"
|
||||
|
||||
setup() {
|
||||
get_pod_config_dir
|
||||
pod_name="nginxhttps"
|
||||
pod_yaml="${pod_config_dir}/pod-manifest-v1.yaml"
|
||||
auto_generate_policy "${pod_config_dir}" "${pod_yaml}"
|
||||
}
|
||||
|
||||
@test "Deploy manifest v1 pod" {
|
||||
|
||||
kubectl create -f "${pod_yaml}"
|
||||
|
||||
# Wait for pod to start
|
||||
kubectl wait --for=condition=Ready --timeout=$timeout pod "$pod_name"
|
||||
}
|
||||
|
||||
teardown() {
|
||||
# Debugging information
|
||||
kubectl describe "pod/$pod_name"
|
||||
|
||||
kubectl delete pod "$pod_name"
|
||||
}
|
@ -86,15 +86,6 @@ else
|
||||
"k8s-nginx-connectivity.bats" \
|
||||
)
|
||||
|
||||
# When testing auto-generated policy, the genpolicy tool:
|
||||
# - Is able to pull this older format container image by pulling through containerd.
|
||||
# - Fails to pull the same container image by using the oci_distribution crate.
|
||||
# Pulling through containerd might not be practical for all users, so both pulling
|
||||
# methods are supported for most container images.
|
||||
if [ "${GENPOLICY_PULL_METHOD}" == "containerd" ]; then
|
||||
K8S_TEST_SMALL_HOST_UNION+=("k8s-pod-manifest-v1.bats")
|
||||
fi
|
||||
|
||||
K8S_TEST_NORMAL_HOST_UNION=( \
|
||||
"k8s-number-cpus.bats" \
|
||||
"k8s-parallel.bats" \
|
||||
|
@ -1,18 +0,0 @@
|
||||
#
|
||||
# Copyright (c) 2024 Microsoft
|
||||
#
|
||||
# SPDX-License-Identifier: Apache-2.0
|
||||
#
|
||||
apiVersion: v1
|
||||
kind: Pod
|
||||
metadata:
|
||||
name: nginxhttps
|
||||
|
||||
spec:
|
||||
runtimeClassName: kata
|
||||
terminationGracePeriodSeconds: 0
|
||||
containers:
|
||||
- name: nginxhttps
|
||||
image: "docker.io/ymqytw/nginxhttps:1.5"
|
||||
ports:
|
||||
- containerPort: 80
|
Loading…
Reference in New Issue
Block a user