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

Allow resource request/limits when running Builds

XMLWordPrintable

    • Resource quota for Builds
    • False
    • Hide

      None

      Show
      None
    • False
    • Not Selected
    • To Do
    • SECFLOWOTL-250 - Shipwright Parity for "Advanced Builds"
    • 0% To Do, 50% In Progress, 50% Done

      Epic Goal

      • Developer may want to set or request certain resource quotas for their builds

      Why is this important?

      This feature introduces a `stepResources` field in the Build and BuildRun APIs, enabling developers to `override` CPU, memory, or ephemeral storage requirements for specific steps defined in a BuildStrategy or ClusterBuildStrategy, without needing to duplicate and modify the strategy itself. Currently, resource requirements are hardcoded at the strategy level, for which either we need to duplicate strategies for different resource needs or request platform admins to modify shared strategies. With this change, users can specify per-step resource overrides directly in their Build or BuildRun specs, and the controller will merge these overrides at runtime when generating the Tekton TaskRun with BuildRun overrides taking precedence over Build overrides, which in turn override strategy defaults. This follows the existing Shipwright override patterns for parameters, volumes, and env., maintaining API consistency while enabling fine-grained, per-build resource customization.

      Acceptance Criteria (Mandatory)

      • CI - MUST be running successfully with tests automated
      • Release Technical Enablement - Provide necessary release enablement details and documents.
      • ...

      Dependencies (internal and external)

      https://github.com/shipwright-io/build/issues/1894

      Done Checklist

      • Acceptance criteria are met
      • Non-functional properties of the Feature have been validated (such as performance, resource, UX, security or privacy aspects)
      • User Journey automation is delivered
      • Support and SRE teams are provided with enough skills to support the feature in production environment

              rh-ee-anborah Anchita Borah
              avinkuma@redhat.com Avinal Kumar
              Votes:
              0 Vote for this issue
              Watchers:
              2 Start watching this issue

                Created:
                Updated: