Skip to content

[FEATURE] SHIP-0040: Command line option to set runtime class on Build/BuildRun #363

@adambkaplan

Description

@adambkaplan

Is there an existing feature request for this?

  • I have searched the existing feature requests

Is your feature request related to a problem or use-case? Please describe.

Add command line option to set runtime class on BuildRun objects (and potentially Build objects). Described in SHIP-0040.

Describe the solution that you would like.

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

Describe alternatives you have considered.

n/a

Anything else?

Generated-by: Cursor

Metadata

Metadata

Assignees

Labels

kind/featureCategorizes issue or PR as related to a new feature.

Projects

Status

No status

Relationships

None yet

Development

No branches or pull requests

Issue actions