Skip to content

[FEAT cloudctl] - Refactor cluster-version subcommand #85

Open

Description

@jellonek

Priority

(Medium) I'm annoyed but I'll live

User Story

Right now, whole functionality or checking cluster version is combined in the single function, which returns only a possible error of a Printer, which is also calculated in the same function.

Description

This issue is about extracting/separating the functionality of cluster version checking (which then can be e.g. used in implementation of #72 which depends on guessing the cluster version) from the final writing the output to subcommand output.

Acceptance Criteria

  • Code refactored to move the main functionality into internal/ClusterVersion function which then could be consumed by subcommand defined in cmd/
  • Unit tests refactored to skip testing the functionality through cobra.Command interface to more granular units.

Reference Issues

Should be done probably after #84

Activity

  1. added
    featureNew functional capabilities or significant additions to the CLI.
    on Oct 15, 2026
  2. github-actions commented on Oct 15, 2026

    @github-actions

    Thanks for opening this issue! 🎉

    A maintainer will triage it within 5 business days. You can learn more about our issue workflow in the Issue Lifecycle documentation.

    In the meantime, please make sure you have provided:

    • A clear problem statement
    • Steps to reproduce (for bugs)
    • Expected vs actual behavior

    This helps us route your issue faster.

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

    featureNew functional capabilities or significant additions to the CLI.needs-triageNew issue, not yet reviewed

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions