← Back to Pull requests

MULTIARCH-5543: Migrate Operator SDK to minimum supported version 1.33 #707

Merged
pkenchap merged 78 files (246 lines) on Dec 19, 2025 02:11 UTC
View on GitHub
pkenchap pkenchap commented on Dec 05, 2025 08:46 UTC
Author

These are the migration todo checklist :

  • PROJECT: go.kubebuilder.io/v4 layout

  • API: apis/ to api/ and api/v1beta1/ with +groupName

  • Controllers: controllers/ to internal/controller/

  • main.go: root (multi-binary with cmd/enoexec-daemon/)

  • Dockerfile: Updated COPY paths

  • Webhooks: v1 APIs + modern cert-manager
  • Diff: 246 lines (+123 / -123) across 78 files Reviewer: AnnaZivkovic Review duration: 19765m
    All Vouch review confidence checks passed
    Residual risk 0.11 = Change Risk (0.88) × (1 − Review Confidence (0.87)). Review depth and reviewer attention state are adequate.
    Model 1 · Change Risk (XGBoost)
    Score: 0.88 · 246 lines diff across 78 files
    0.88
    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: 50%
    87%
    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.330
    Sensitive Paths sensitive_paths
    0.088
    Mass File Touch mass_file_touch
    0.080
    Real PR Conversation Timeline
    25 items
    openshift-ci-robot openshift-ci-robot commented on Dec 05, 2025 08:46 UTC
    Contributor

    @pkenchap: This pull request references MULTIARCH-5543 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 story to target the "4.21.0" version, but no target version was set.

    <details>

    In response to this:

    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>

    pkenchap pkenchap commented on Dec 05, 2025 08:46 UTC
    Author

    /assign @pkenchap

    openshift-ci-robot openshift-ci-robot commented on Dec 08, 2025 14:08 UTC
    Contributor

    @pkenchap: This pull request references MULTIARCH-5543 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 story to target the "4.21.0" version, but no target version was set.

    <details>

    In response to this:

    >These are the migration todo checklist :

    >- [ ] PROJECT: go.kubebuilder.io/v4 layout

    >- [ ] API: apis/ to api/ and api/v1beta1/ with +groupName
    >- [ ] Controllers: controllers/ to internal/controller/
    >- [ ] main.go: root (multi-binary with cmd/enoexec-daemon/)
    >- [ ] Dockerfile: Updated COPY paths
    >- [ ] Webhooks: v1 APIs + modern cert-manager

    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-robot openshift-ci-robot commented on Dec 08, 2025 14:08 UTC
    Contributor

    @pkenchap: This pull request references MULTIARCH-5543 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 story to target the "4.21.0" version, but no target version was set.

    <details>

    In response to this:

    >These are the migration todo checklist :

    >- [x] PROJECT: go.kubebuilder.io/v4 layout

    >- [ ] API: apis/ to api/ and api/v1beta1/ with +groupName
    >- [ ] Controllers: controllers/ to internal/controller/
    >- [ ] main.go: root (multi-binary with cmd/enoexec-daemon/)
    >- [ ] Dockerfile: Updated COPY paths
    >- [ ] Webhooks: v1 APIs + modern cert-manager

    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-robot openshift-ci-robot commented on Dec 08, 2025 14:08 UTC
    Contributor

    @pkenchap: This pull request references MULTIARCH-5543 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 story to target the "4.21.0" version, but no target version was set.

    <details>

    In response to this:

    >These are the migration todo checklist :

    >- [x] PROJECT: go.kubebuilder.io/v4 layout

    >- [x] API: apis/ to api/ and api/v1beta1/ with +groupName
    >- [ ] Controllers: controllers/ to internal/controller/
    >- [ ] main.go: root (multi-binary with cmd/enoexec-daemon/)
    >- [ ] Dockerfile: Updated COPY paths
    >- [ ] Webhooks: v1 APIs + modern cert-manager

    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-robot openshift-ci-robot commented on Dec 08, 2025 14:08 UTC
    Contributor

    @pkenchap: This pull request references MULTIARCH-5543 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 story to target the "4.21.0" version, but no target version was set.

    <details>

    In response to this:

    >These are the migration todo checklist :

    >- [x] PROJECT: go.kubebuilder.io/v4 layout

    >- [x] API: apis/ to api/ and api/v1beta1/ with +groupName
    >- [x] Controllers: controllers/ to internal/controller/
    >- [x] main.go: root (multi-binary with cmd/enoexec-daemon/)
    >- [ ] Dockerfile: Updated COPY paths
    >- [ ] Webhooks: v1 APIs + modern cert-manager

    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-robot openshift-ci-robot commented on Dec 08, 2025 14:08 UTC
    Contributor

    @pkenchap: This pull request references MULTIARCH-5543 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 story to target the "4.21.0" version, but no target version was set.

    <details>

    In response to this:

    >These are the migration todo checklist :

    >- [x] PROJECT: go.kubebuilder.io/v4 layout

    >- [x] API: apis/ to api/ and api/v1beta1/ with +groupName
    >- [x] Controllers: controllers/ to internal/controller/
    >- [x] main.go: root (multi-binary with cmd/enoexec-daemon/)
    >- [x] Dockerfile: Updated COPY paths
    >- [x] Webhooks: v1 APIs + modern cert-manager

    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>

    prb112 prb112 commented on Dec 09, 2025 01:49 UTC
    Contributor

    multiarch-tuning-operator-e2e-olm-kustomize has issues in hack/deploy-and-e2e.sh.

    + operator-sdk run bundle registry.build01.ci.openshift.org/ci-op-fcibdpwk/pipeline@sha256:a0d2a9826a16160d25390dcb480ae17d7c7cb1c5cef498f7bfcc6f41a204b432 -n openshift-multiarch-tuning-operator --security-context-config restricted --timeout=10m
    Error: no plugin could be resolved with key "go.kubebuilder.io/v4" for project version "3"
    

    To resolve, I think you need to update https://github.com/outrigger-project/multiarch-tuning-operator/blob/main/bundle.konflux.Dockerfile

    AnnaZivkovic AnnaZivkovic commented on code on Dec 12, 2025 01:21 UTC
    Code Review
    cmd/main.go:1
    @@ -60,14 +60,14 @@ import (
     
    AnnaZivkovic AnnaZivkovic commented on code on Dec 12, 2025 17:31 UTC
    Code Review
    cmd/main.go:1
    @@ -60,14 +60,14 @@ import (
     

    Sorry to ask you to move this again, but can we put it in cmd/main.go? That way when we try to run operator-sdk create it can find the main file

    AnnaZivkovic AnnaZivkovic commented on Dec 12, 2025 17:33 UTC
    Contributor

    Can you update all of the deprecated fields in config/ ?
    You should be able to find some examples here https://github.com/kubernetes-sigs/kubebuilder/tree/master/docs/book/src/getting-started/testdata/project

    AnnaZivkovic AnnaZivkovic commented on Dec 12, 2025 18:15 UTC
    Contributor

    /retest

    pkenchap pkenchap commented on Dec 15, 2025 06:07 UTC
    Author

    /test unit

    pkenchap pkenchap commented on code on Dec 16, 2025 10:14 UTC
    Code Review
    cmd/main.go:1
    @@ -60,14 +60,14 @@ import (
     

    sure , done .

    pkenchap pkenchap commented on Dec 17, 2025 09:29 UTC
    Author

    /test ocp418-e2e-azure

    pkenchap pkenchap commented on Dec 17, 2025 09:29 UTC
    Author

    /test ocp417-e2e-gcp

    pkenchap pkenchap commented on Dec 17, 2025 14:03 UTC
    Author

    @AnnaZivkovic , All comments are addressed , Please review .

    AnnaZivkovic AnnaZivkovic commented on Dec 17, 2025 22:36 UTC
    Contributor

    I noticed that when migrating the apis we changed from multi group to single group (apis/multiarch/v1beta1 -> api/v1beta1). Is there any reason for this change away from multi grouped (api/multiarch/v1beta1) ? If there is a good reason to keep single group then we need to remove multigroup: true from the PROJECT file

    pkenchap pkenchap commented on Dec 18, 2025 06:14 UTC
    Author

    The project defines only _multiarch.openshift.io_ as its API group , if there a plan of adding additional groups (e.g., storage.openshift.io, networking.openshift.io), then the multiple API groups make sense .
    Current structure: api/v1beta1/ is more straightforward and moreover Multi-group would add unnecessary nesting: api/multiarch/v1beta1/ and its easier navigation and maintenance.

    Single-group layout is the default and recommended approach for projects with one API group.

    Yes it's better to remove the multigroup: true from the PROJECT file.

    pkenchap pkenchap commented on Dec 18, 2025 07:00 UTC
    Author

    @AnnaZivkovic , I just made multigroup: true to false .

    AnnaZivkovic AnnaZivkovic commented on Dec 18, 2025 23:11 UTC
    Contributor

    /lgtm
    /test ocp417-e2e-gcp

    openshift-ci[bot] openshift-ci[bot] commented on Dec 18, 2025 23:11 UTC
    Bot

    [APPROVALNOTIFIER] This PR is APPROVED

    This pull-request has been approved by: <a href="https://github.com/outrigger-project/multiarch-tuning-operator/pull/707#issuecomment-3672650174" title="LGTM">AnnaZivkovic</a>, <a href="https://github.com/outrigger-project/multiarch-tuning-operator/pull/707#" title="Author self-approved">pkenchap</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~~ [AnnaZivkovic]
  • 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":[]} -->

    AnnaZivkovic AnnaZivkovic commented on Jan 15, 2026 23:20 UTC
    Contributor

    /cherrypick v1.x

    openshift-cherrypick-robot openshift-cherrypick-robot commented on Jan 15, 2026 23:21 UTC
    Contributor

    @AnnaZivkovic: #707 failed to apply on top of branch "v1.x":

    Applying: MULTIARCH-5543: Migrate Operator SDK to minimum supported version 1.33
    error: mode change for controllers/podplacementconfig/constant.go, which is not in current HEAD
    error: could not build fake ancestor
    hint: Use 'git am --show-current-patch=diff' to see the failed patch
    hint: When you have resolved this problem, run "git am --continue".
    hint: If you prefer to skip this patch, run "git am --skip" instead.
    hint: To restore the original branch and stop patching, run "git am --abort".
    hint: Disable this message with "git config set advice.mergeConflict false"
    Patch failed at 0001 MULTIARCH-5543: Migrate Operator SDK to minimum supported version 1.33
    
    

    <details>

    In response to this:

    >/cherrypick v1.x

    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>

    Reviewers
    Assignees
    pkenchap pkenchap
    Labels
    risk: low confidence: 87.4% 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: 87.7% (HIGH) · Higher = larger blast radius
    87.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: 87.4% · Lower = rushed or shallow review
    87.4%
    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: 11% · Safe to merge
    11%