Files
test/resources/image_manifests/stx-third-party-test-images.yaml
Andrew Vaillancourt 58f64e27f7 Add granular Docker image sync operations
Add support for syncing and removing individual images from manifests
alongside the existing bulk manifest processing.

- Add sync_image_from_manifest() for individual image syncing
- Add remove_image_from_manifest() for selective image removal
- Add image_exists_in_local_registry() for sync confirmation
- Expand test_docker_image_sync tests to illustrate usage
- Add unit tests

This maintains backward compatibility while enabling fine-grained
control for test scenarios requiring individual image management.

Change-Id: Ied9d1595d4c6b406fe0f029893ea84409191d3c2
Signed-off-by: Andrew Vaillancourt <andrew.vaillancourt@windriver.com>
2025-07-10 04:42:04 -04:00

46 lines
1.5 KiB
YAML

# ------------------------------------------------------------------------------
# Image Manifest: `stx-third-party-test-images.yaml`
#
# This manifest defines third-party, publicly available Docker images used
# in StarlingX test suites such as `testcases/cloud_platform/sanity/`.
#
# Images are sourced from registries like DockerHub, registry.k8s.io, and GCR,
# and may be mirrored to the local StarlingX registry (e.g., `registry.local:9001`)
# during system setup or as part of an on-demand test image sync.
#
# Notes:
# - Each image entry must include `name` and `tag`.
# - Image names must include their full namespace (e.g., `google-samples/node-hello`).
# - Registry URLs and credentials are defined in:
# `config/docker/files/default.json5`
#
# Registry resolution priority (from most to least specific):
# 1. `source_registry` field on the individual image entry (recommended)
# 2. `manifest_registry_map` in the Docker config
# 3. `default_source_registry` fallback
# ------------------------------------------------------------------------------
images:
# DockerHub images
- name: "busybox"
tag: "1.36.1"
source_registry: "dockerhub"
- name: "calico/ctl"
tag: "v3.27.0"
source_registry: "dockerhub"
# k8s images
- name: "pause"
tag: "3.9"
source_registry: "k8s"
- name: "e2e-test-images/resource-consumer"
tag: "1.10"
source_registry: "k8s"
# GCR images
- name: "google-samples/node-hello"
tag: "1.0"
source_registry: "gcr"