Uploaded image for project: 'Red Hat OpenShift Control Planes'
  1. Red Hat OpenShift Control Planes
  2. CNTRLPLANE-1650

Consolidate main branch Tekton pipelines and remove unused parameters

XMLWordPrintable

    • Icon: Task Task
    • Resolution: Unresolved
    • Icon: Major Major
    • None
    • None
    • None
    • None
    • None
    • False
    • Hide

      None

      Show
      None
    • False
    • None
    • None
    • None
    • None

      Consolidate the three main branch component pipelines (hypershift-operator, control-plane-operator, hypershift-shared-ingress) into a single shared pipeline to eliminate duplication and simplify maintenance.

      Changes

      Pipeline Consolidation

      • Create shared pipeline at .tekton/pipelines/common-operator-build.yaml
      • Migrate all 6 main branch PipelineRuns to use pipelineRef with git resolver
      • Reduces code duplication by ~3,500 lines across 6 PipelineRun files

      Parameter Cleanup

      Remove 7 unused parameters from consolidated pipeline:

      • build-args (never referenced)
      • build-args-file (hardcoded to "")
      • build-image-index (hardcoded to "true")
      • build-source-image (hardcoded to "false")
      • privileged-nested (hardcoded to "false")
      • rebuild (hardcoded to "false")
      • skip-checks (hardcoded to "false" - always run security checks)

      Remove obsolete hermetic parameter from 4 PipelineRuns (HERMETIC is now hardcoded to "true" in pipeline tasks)

      Reduce pipeline parameters from 16 to 9 essential parameters.

      Benefits

      • Single source of truth for Tekton task versions
      • Easier to update pipeline behavior across all components
      • Cleaner parameter surface with only essential configuration exposed
      • All builds are hermetic and security checks always run

      Files Changed

      • .tekton/pipelines/common-operator-build.yaml (new)
      • .tekton/control-plane-operator-main-pull-request.yaml
      • .tekton/control-plane-operator-main-push.yaml
      • .tekton/hypershift-operator-main-pull-request.yaml
      • .tekton/hypershift-operator-main-push.yaml
      • .tekton/hypershift-shared-ingress-main-pull-request.yaml
      • .tekton/hypershift-shared-ingress-main-push.yaml

              asegurap1@redhat.com Antoni Segura Puimedon
              asegurap1@redhat.com Antoni Segura Puimedon
              None
              None
              None
              Votes:
              0 Vote for this issue
              Watchers:
              1 Start watching this issue

                Created:
                Updated: