Skip to content

[Refactor][kubectl-plugin] Share common struct for cluster-related CLI options to reduce duplication #3582

@CheyuWu

Description

@CheyuWu

Search before asking

  • I had searched in the issues and found no similar feature requirement.

Description

Currently, both SubmitJobOptions and CreateWorkerGroupOptions structs contain many overlapping fields related to Ray cluster configuration, such as resource specs (CPU, GPU, memory), image, version, and selectors.

Maintaining these separately leads to duplicated code and increases the risk of inconsistency when updating argument definitions.

Use case

No response

Related issues

#3562 (comment)

Are you willing to submit a PR?

  • Yes I am willing to submit a PR!

Metadata

Metadata

Assignees

No one assigned

    Labels

    clikubectl pluginenhancementNew feature or request

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions