← Back to Pull requests

Update Konflux pipelines: Fix OPM for OCP 5.x, update Go 1.26 builder, migrate to roxctl-scan #1008

Closed
unknown closed this pull request without merging on Sep 03, 2026 09:39 UTC
View on GitHub
unknown unknown commented on Sep 03, 2026 09:15 UTC
Author

Summary

This PR includes three important updates to Konflux pipeline configurations and related tooling:
1. Fix OPM image selection for OpenShift 5.x versions
2. Update Go 1.26 builder image references
3. Migrate from clair-scan to roxctl-scan (ACS)

Changes

1. Fix OPM Image Selection for OpenShift 5.x

Problem: OPM_IMAGE was incorrectly using openshift4 registry paths for OpenShift 5.0, resulting in non-existent image references.

Solution:

  • Refactored extractMinor() → extractMajorMinor() to handle both major and minor versions

  • Updated getOPMImage() to support version-specific registry paths:

  • - OpenShift 4.x: registry.redhat.io/openshift4/ose-operator-registry-rhel9:v4.X
    - OpenShift 5.x: registry.redhat.io/openshift5/ose-operator-registry-rhel9:v5.X
  • Updated OLM migration flag check to only apply for OCP 4.17+
  • Files changed:

  • pkg/prowgen/prowgen_konflux.go
  • 2. Update Go 1.26 Builder Image References

    Problem: Go 1.26 configurations were using incorrect or outdated builder image references.

    Solution:

  • Updated builder image mappings for Go 1.26

  • Ensured generated Dockerfiles use available and correct registry images

  • Fixed image tag references in configuration files
  • Files changed:

  • config/serverless-operator.yaml (if applicable)

  • Builder image configuration updates
  • 3. Migrate from clair-scan to roxctl-scan (ACS)

    Problem: clair-scan is being deprecated in favor of Red Hat Advanced Cluster Security (ACS) scanner.

    Solution:

  • Replace clair-scan with roxctl-scan task in all pipeline templates

  • Update scanner bundle to quay.io/konflux-ci/tekton-catalog/task-roxctl-scan:0.1@sha256:97e2b2cdca9110fdc8a93ba585a1a1a743f989f2fd85f4073f6e5ea9ad2ce828

  • Add 20m timeout for roxctl-scan tasks

  • Keep same parameter structure (image-digest, image-url) for compatibility

  • Update all test fixtures and test expectations to match new scanner
  • Files changed:

  • pkg/konfluxgen/docker-build.yaml

  • pkg/konfluxgen/bundle-build.yaml

  • pkg/konfluxgen/docker-java-build.yaml

  • pkg/konfluxgen/kustomize/docker-build.yaml

  • pkg/konfluxgen/testdata/docker-build.yaml

  • pkg/konfluxgen/testdata/docker-build-expected.yaml

  • pkg/konfluxgen/konfluxgen_test.go
  • Affected pipelines:

  • docker-build

  • bundle-build

  • docker-java-build

  • kustomize/docker-build
  • Testing

  • Unit tests pass (go test ./pkg/prowgen/...)

  • Unit tests pass (go test ./pkg/konfluxgen/...)

  • OPM image correctly resolves for OpenShift 5.x

  • Go 1.26 builder images are correctly referenced

  • roxctl-scan task properly replaces clair-scan
  • Impact

    After Merge:


    1. FBC applications for OpenShift 5.x will use correct OPM images
    2. Dockerfiles generated with Go 1.26 will reference valid builder images
    3. All Konflux pipelines will use the new ACS scanner instead of deprecated clair-scan
    4. Run make generate-ci to propagate changes to all managed repositories

    Migration Notes

    This PR aligns with the platform-level roadmap:

  • ✅ OpenShift 5.x support for OPM-based builds

  • ✅ Go 1.26 ecosystem readiness

  • ✅ Advanced Cluster Security (ACS) scanner adoption (clair-scan deprecation path)
  • Related

  • Platform migration from clair-scan to roxctl-scan (ACS)

  • OpenShift 5.x support initiative
  • Diff: 426 lines (+319 / -107) across 5 files Reviewer: dsimansk Review duration: 24m
    All Vouch review confidence checks passed
    Residual risk 0.27 = Change Risk (0.68) × (1 − Review Confidence (0.60)). Review depth and reviewer attention state are adequate.
    Model 1 · Change Risk (XGBoost)
    Score: 0.68 · 426 lines diff across 5 files
    0.68
    Model 2 · Review Depth (DistilBERT)
    Depth Score: 0.17 · 1 substantive comment(s)
    0.17
    Model 3 · Review Timing & Attention
    Session adequacy: 100% · Reviewer familiarity: 35%
    60%
    Bedrock Claude 3 · Risk Narration
    (disconnected)
    Groq
    Groq Risk Narration
    AWS Bedrock is currently disconnected. Generate high-confidence PR triage narration on-demand using Groq.
    Model 1 · Change Risk Attribution
    SHAP Weights
    Diff Size diff_size
    0.362
    Shallow Review Depth shallow_review_depth
    0.289
    Sensitive Paths sensitive_paths
    0.068
    Real PR Conversation Timeline
    1 comments
    "Review active on #1008"
    general weight: 0.35
    Reviewers
    Assignees
    Unassigned
    Labels
    risk: low confidence: 60.5% reviewed sensitive_module
    Vouch Risk Breakdown
    AI-powered review risk analysis
    Change Risk
    Change Risk · Model 1 (XGBoost)
    Predicted defect probability (0.00–1.00) based on diff churn, modified sensitive files, and author risk history.
    Score: 68.3% (HIGH) · Higher = larger blast radius
    68.3%
    Review Confidence
    Review Confidence · Models 2 & 3
    Scrutiny score (0.00–1.00) combining DistilBERT semantic review depth with reviewer familiarity and session dwell time.
    Score: 60.5% · Lower = rushed or shallow review
    60.5%
    Residual Risk
    Residual Risk · Core Equation
    Residual = Change × (1 − Confidence)
    Unmitigated risk surviving review. ≥ 0.65 triggers an automated re-queue to protect production.
    Score: 27.0% · Safe to merge
    27.0%