Skip to content

Feature Request: Optimize d8 mirror to Pull Only Latest Patch Versions for Modules #220

@zerakz

Description

@zerakz

Feature enhancement for the d8 mirror command, specifically regarding how it handles module versions compared to platform versions.

Currently, when mirroring Deckhouse releases using d8 mirror, the tool correctly pulls only the latest patch versions for each minor version. This is efficient.

However, when using d8 mirror pull with the --include-module flag, it appears to pull all minor versions of the specified module, not just the latest patch versions within each minor series.

For example, running:

d8 mirror pull --license='<license>' --source='registry.deckhouse.ru/deckhouse/ee' --no-platform --no-security-db --include-module [email protected] d8-code

This command seems to pull numerous module releases (e.g., 184 images in one case) starting from v1.6.0, rather than just the latest patch releases for each minor series (e.g., v1.6.x, v1.7.x, etc.).

Feature Requests:

Optimize Module Version Pulling: Could d8 mirror be updated to mirror the platform's behavior for modules? That is, when pulling module versions, only fetch the latest patch version for each minor version series, unless explicitly requested otherwise (e.g., with a specific flag). This would significantly reduce the number of images pulled and storage used.

Pre-Pull Summary: Before starting the download process (especially when it might involve pulling many images like the 184 mentioned), could d8 mirror output a summary listing the specific module releases it intends to pull? This would improve transparency and allow users to confirm the scope of the operation.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions