Uploaded image for project: 'OpenShift Builds'
  1. OpenShift Builds
  2. BUILD-1774

Command Line Option to Set Runtime Class

XMLWordPrintable

    • Icon: Story Story
    • Resolution: Unresolved
    • Icon: Undefined Undefined
    • None
    • None
    • shp-cli
    • None

      Overview

      This task implements CLI enhancements to support the runtimeClassName feature, allowing users to specify the runtime class when creating builds via the shp CLI.

      Description

      The shp CLI will be enhanced to add flags that set the runtimeClassName for a Build and/or BuildRun. For example, shp build run can have the following new options:

      • --runtime-class=<value>: this would set the respective spec.runtimeClassName value on the generated BuildRun.

      Acceptance Criteria

      • --runtime-class flag added to shp build run
      • Flag correctly sets spec.runtimeClassName on BuildRun
      • Help text updated to document the flag
      • Unit tests verify flag functionality

      Dependencies

      Technical Notes

      • The flag should accept a string value corresponding to a Kubernetes RuntimeClass name
      • The flag should be optional, allowing builds to run without specifying a runtime class
      • Help text should explain what RuntimeClass is and provide examples

      Related GitHub Issue

      This issue corresponds to: shipwright-io/cli#363

      Part of SHIP-0040: Build Runtime Class implementation. See SHIP-0040 for the full enhancement proposal.

              Unassigned Unassigned
              adkaplan@redhat.com Adam Kaplan
              Votes:
              0 Vote for this issue
              Watchers:
              1 Start watching this issue

                Created:
                Updated: