[Feat] Allow to set OCP --version to only Major.minor version

Open
#628 0 comments 0 reactions 0 assignees View on GitHub

Maintainers usually reply within 3 days

Nobody has claimed this yet.

Assessment

Difficulty
3/5
Estimated time
1-2 days
Newbie friendliness
48/100
Issue type
Feature
Clarity
Mostly clear
Activity status
Stale
Tech stack
go
Domain
cli

Research direction

No files or tests are named in the issue. Start at the --version argument handling and trace how available OCP patch versions are selected for MAPT cluster creation. Done means a major.minor value such as 4.19 resolves to the latest available patch in that minor release, while full major.minor.patch input continues to work.

Written by the indexing model from the issue text.

Description

Currently, creating an SNC using MAPT cluster requires specifying the full major.minor.patch version (e.g., 4.19.5). This forces the user to manually look up the latest available patch for a given minor release. This process is inefficient and can lead to users deploying older, non-latest patch versions by mistake.

Proposed Solution:
Enhance the --version flag to accept a major.minor version string (e.g., 4.19). When a user provides this, the tool should automatically identify and use the latest available patch version within that minor release stream.

This would function as a "latest patch" alias for a specific minor version.

Benefits:

  • Improves User Experience: Simplifies the command and removes the need for manual lookups.
  • Reduces Errors: Prevents the accidental use of outdated patch releases.
  • Increases Efficiency: Speeds up the process of creating up-to-date environments and avoiding manual updates to always set latest available image
Dominant language
Go
Stars
26
Forks
41
Avg merge
3d 14h
Merged PRs (30d)
27

Getting set up

This project ships no dev container, Dockerfile or contributing guide, so setting up is up to you: start from its README, and see our first-contribution guide for the general steps.

First steps

  1. Read the whole issue, then the project's contributing guide.
  2. Comment on the issue to say you are picking it up — it saves two people doing the same work.
  3. Fork the repository and make your change on a branch.
  4. Open a pull request that references the issue number.

More from redhat-developer/mapt

All issues in redhat-developer/mapt

Similar issues

More Go issues

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.