← Back to Pull requests

AUTOSCALE-903: add openshift SDLC files #20

Merged
maxcao13 merged 3 files (336 lines) on Aug 26, 2026 02:36 UTC
View on GitHub
maxcao13 maxcao13 commented on Aug 21, 2026 18:54 UTC
Author

See https://redhat.atlassian.net/browse/AUTOSCALE-814 for details about the overall effort.

Currently coderabbit is not enabled for this repo. That work is tracked in https://redhat.atlassian.net/browse/DPP-21848 (and is blocked on the DPP team).

Diff: 336 lines (+336 / -0) across 3 files Reviewer: joelsmith Review duration: 6222m
All Vouch review confidence checks passed
Residual risk 0.06 = Change Risk (0.41) × (1 − Review Confidence (0.86)). Review depth and reviewer attention state are adequate.
Model 1 · Change Risk (XGBoost)
Score: 0.41 · 336 lines diff across 3 files
0.41
Model 2 · Review Depth (DistilBERT)
Depth Score: 0.90 · 5 substantive comment(s)
0.90
Model 3 · Review Timing & Attention
Session adequacy: 100% · Reviewer familiarity: 35%
85%
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.348
Real PR Conversation Timeline
12 items
openshift-ci-robot openshift-ci-robot commented on Aug 21, 2026 18:54 UTC
Contributor

@maxcao13: This pull request references AUTOSCALE-903 which is a valid jira issue.

Warning: The referenced jira issue has an invalid target version for the target branch this PR targets: expected the task to target the "5.1.0" version, but no target version was set.

<details>

In response to this:

>See https://redhat.atlassian.net/browse/AUTOSCALE-814 for details about the overall effort.

>Currently coderabbit is not enabled for this repo. That work is tracked in https://redhat.atlassian.net/browse/DPP-21848 (and is blocked on the DPP team).

Instructions for interacting with me using PR comments are available here. If you have questions or suggestions related to my behavior, please file an issue against the openshift-eng/jira-lifecycle-plugin repository.
</details>

openshift-ci[bot] openshift-ci[bot] commented on Aug 21, 2026 18:55 UTC
Bot

[APPROVALNOTIFIER] This PR is APPROVED

This pull-request has been approved by: <a href="https://github.com/openshift/kubernetes-sigs-karpenter/pull/20#" title="Author self-approved">maxcao13</a>

The full list of commands accepted by this bot can be found here.

The pull request process is described here

<details >
Needs approval from an approver in each of these files:

  • ~~OWNERS~~ [maxcao13]
  • Approvers can indicate their approval by writing /approve in a comment
    Approvers can cancel approval by writing /approve cancel in a comment
    </details>
    <!-- META={"approvers":[]} -->

    joelsmith joelsmith commented on code on Aug 25, 2026 17:26 UTC
    Code Review
    AGENTS.md:1
    @@ -0,0 +1,88 @@
    +# AGENTS.md: openshift/kubernetes-sigs-karpenter
    +
    +This file provides AI-specific guidance for working in the OpenShift downstream fork of [kubernetes-sigs/karpenter](https://github.com/kubernetes-sigs/karpenter). For contribution guidelines, see [CONTRIBUTING_OPENSHIFT.md](CONTRIBUTING_OPENSHIFT.md).
    +
    +## Project Overview
    +
    +This repo is the Karpenter core library (`module sigs.k8s.io/karpenter`). It is not a product binary. Cloud providers import it and implement `cloudprovider.CloudProvider`. The in-tree KWOK provider is for e2e only.
    +
    +OpenShift consumers `replace` this module to `github.com/openshift/kubernetes-sigs-karpenter`:
    +
    +| Repo | Role |
    +|------|------|
    +| [openshift/aws-karpenter-provider-aws](https://github.com/openshift/aws-karpenter-provider-aws) | AWS provider binary (operand) |
    +| [openshift/Azure-karpenter-provider-azure](https://github.com/openshift/Azure-karpenter-provider-azure) | Azure provider binary (operand) |
    +| [openshift/karpenter-operator](https://github.com/openshift/karpenter-operator) | Deploys the operand and applies CRDs. Embeds NodePool / NodeClaim YAML in `pkg/assets/crds/`. |
    +
    +HyperShift AutoNode runs Karpenter as a hosted-control-plane component against guest-cluster NodePool/NodeClaim objects.

    s/guest-cluster/hosted-cluster/

    joelsmith joelsmith commented on code on Aug 25, 2026 17:29 UTC
    Code Review
    AGENTS.md:1
    @@ -0,0 +1,88 @@
    +# AGENTS.md: openshift/kubernetes-sigs-karpenter
    +
    +This file provides AI-specific guidance for working in the OpenShift downstream fork of [kubernetes-sigs/karpenter](https://github.com/kubernetes-sigs/karpenter). For contribution guidelines, see [CONTRIBUTING_OPENSHIFT.md](CONTRIBUTING_OPENSHIFT.md).
    +
    +## Project Overview
    +
    +This repo is the Karpenter core library (`module sigs.k8s.io/karpenter`). It is not a product binary. Cloud providers import it and implement `cloudprovider.CloudProvider`. The in-tree KWOK provider is for e2e only.
    +
    +OpenShift consumers `replace` this module to `github.com/openshift/kubernetes-sigs-karpenter`:
    +
    +| Repo | Role |
    +|------|------|
    +| [openshift/aws-karpenter-provider-aws](https://github.com/openshift/aws-karpenter-provider-aws) | AWS provider binary (operand) |
    +| [openshift/Azure-karpenter-provider-azure](https://github.com/openshift/Azure-karpenter-provider-azure) | Azure provider binary (operand) |
    +| [openshift/karpenter-operator](https://github.com/openshift/karpenter-operator) | Deploys the operand and applies CRDs. Embeds NodePool / NodeClaim YAML in `pkg/assets/crds/`. |
    +
    +HyperShift AutoNode runs Karpenter as a hosted-control-plane component against guest-cluster NodePool/NodeClaim objects.
    +
    +A change here does not reach a cluster until those consumers bump their `replace`. CRD changes also need the operator's embedded YAML updated.
    +
    +## Upstream / Downstream Relationship
    +
    +This repo tracks [kubernetes-sigs/karpenter](https://github.com/kubernetes-sigs/karpenter). Rebasebot rebases `openshift/kubernetes-sigs-karpenter:main` onto the latest upstream tag. Config lives in [openshift/release](https://github.com/openshift/release/tree/master/ci-operator/config/openshift/kubernetes-sigs-karpenter).
    +
    +### Downstream-only or OpenShift-owned
    +
    +- `OWNERS`, `OWNERS_ALIASES`
    +- `.ci-operator.yaml`
    +- `hack/openshift-toolchain.sh`
    +- `hack/openshift-kwok-e2e.sh`
    +- Makefile targets `openshift-verify`, `openshift-toolchain`, `build-with-openshift`, `apply-with-openshift`
    +- `CONTRIBUTING_OPENSHIFT.md`, `AGENTS.md`, `.coderabbit.yaml`
    +- `.ko.yaml`
    +
    +Go version in `go.mod` are carry patches on files that also exist upstream.
    +
    +Everything else is upstream, including `.github/workflows/` (not used by OpenShift CI). Prefer sending feature and bug-fix work upstream. A downstream patch in upstream-owned files has to be re-applied on every rebase.
    +
    +### Rebase

    This one is maybe a little too minimal. The example has:

    ### Rebase Cycle
    
    Periodically, the `main` branch is rebased onto a newer upstream release. During a rebase:
    

    joelsmith joelsmith commented on Aug 25, 2026 17:35 UTC
    Reviewer

    Looking pretty good. I added a couple of minor suggestions

    joelsmith joelsmith commented on Aug 25, 2026 22:22 UTC
    Contributor

    Looks great, thanks!
    /lgtm

    openshift-merge-bot[bot] openshift-merge-bot[bot] commented on Aug 25, 2026 22:23 UTC
    Bot

    Scheduling tests matching the pipeline_run_if_changed or not excluded by pipeline_skip_if_only_changed parameters:
    /test e2e-kwok

    openshift-merge-bot[bot] openshift-merge-bot[bot] commented on Aug 26, 2026 02:14 UTC
    Bot

    /retest-required

    Remaining retests: 0 against base HEAD 2b8ed744bf1c72cdec27ed7d829a887ac846af89 and 2 for PR HEAD 3409dbaa2680f376977e63236e0b0847ed202813 in total

    maxcao13 maxcao13 commented on Aug 26, 2026 02:35 UTC
    Author
    openshift-ci[bot] openshift-ci[bot] commented on Aug 26, 2026 02:35 UTC
    Bot

    @maxcao13: Overrode contexts on behalf of maxcao13: ci/prow/e2e-kwok

    <details>

    In response to this:

    >/override ci/prow/e2e-kwok

    >we don't need to run this test for .md changes.

    >https://github.com/openshift/release/blob/30e278537d0e6119819f0b3ed6862356029da159/ci-operator/config/openshift/kubernetes-sigs-karpenter/openshift-kubernetes-sigs-karpenter-main.yaml#L52 I guess this should include .coderabbit now.

    Instructions for interacting with me using PR comments are available here. If you have questions or suggestions related to my behavior, please file an issue against the kubernetes-sigs/prow repository.
    </details>

    openshift-ci[bot] openshift-ci[bot] commented on Aug 26, 2026 02:36 UTC
    Bot

    @maxcao13: all tests passed!

    Full PR test history. Your PR dashboard.

    <details>

    Instructions for interacting with me using PR comments are available here. If you have questions or suggestions related to my behavior, please file an issue against the kubernetes-sigs/prow repository. I understand the commands that are listed here.
    </details>
    <!-- test report -->

    Reviewers
    Assignees
    maxcao13 maxcao13
    Labels
    risk: low confidence: 85.9% reviewed
    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: 40.7% (MEDIUM) · Higher = larger blast radius
    40.7%
    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: 85.9% · Lower = rushed or shallow review
    85.9%
    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: 5.7% · Safe to merge
    5.7%