Skip to content

[mandrel-ops] update-quarkus-images: Support adding new release lines (make --prev-version optional) #528

Description

@zakkak

As noted in #520 (comment), --prev-version is currently required in update-quarkus-images, meaning the command can only update existing entries in quarkus-mandrel-builder-image/mandrel.yaml. It cannot handle the case of adding a brand-new Mandrel release line (e.g., the first mandrel-26.0.x release) where there is no previous version to replace.

Current behavior:

  • --prev-version is required = true and the command replaces prevVersionTag strings in mandrel.yaml with the new version
  • If versions.size() != prevVersions.size(), the command aborts

Proposed change:

  • Make --prev-version optional
  • When --prev-version is omitted for a given version, append a new image entry to mandrel.yaml instead of replacing an existing one
  • When --prev-version is provided, keep the current replace behavior

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions