Enhances the DockerConfig design to support more flexible registry resolution for shared manifests across different environments, including air-gapped or network-restricted deployments. Key improvements: - Refactors manifest_registry_map to support structured entries with manifest_registry and override fields. - Implements clear resolution precedence (per-image, per-manifest, global default) via get_effective_source_registry_name(). - Enables declarative overrides so the same manifest files can be reused unchanged, while different environments can redirect all image sources through configuration alone. - Allows mixing images with explicit source_registry fields alongside manifest-level defaults in the same YAML manifest. - Adds targeted unit tests for DockerConfig to validate resolution behavior and enforce JSON5 schema constraints. For example, users can share manifests that reference DockerHub, GCR, or K8s images, and centrally configure all images to be pulled from an internal mirror registry (e.g., Harbor) without modifying the manifests themselves. Change-Id: I9bbd1fe6a23bfa9afada2e4c54399572e1be0ddc Signed-off-by: Andrew Vaillancourt <andrew.vaillancourt@windriver.com>
48 B
48 B