WIP: Rebase 1.37#2945
Conversation
…r which needs to be handled
|
Pipeline controller notification For optional jobs, comment This repository is configured in: LGTM mode |
|
Hello @jacobsee! Some important instructions when contributing to openshift/api: |
📝 WalkthroughWalkthroughUpdated application and tooling Go dependencies, including the controller-tools replacement target. Revised CRD schema descriptions for volume data sources and ConfigMap binary keys. Added error handling to swagger documentation parsing so generation reports the affected Suggested reviewers: 🚥 Pre-merge checks | ✅ 13 | ❌ 2❌ Failed checks (2 inconclusive)
✅ Passed checks (13 passed)
✨ Finishing Touches🧪 Generate unit tests (beta)
Warning There were issues while running some tools. Please review the errors and either fix the tool's configuration or disable the tool if it's a critical failure. 🔧 Checkov (3.3.8)go.modTraceback (most recent call last): payload-manifests/crds/0000_10_config-operator_01_clustermonitorings.crd.yamlTraceback (most recent call last): payload-manifests/crds/0000_10_openshift-controller-manager_01_builds.crd.yamlTraceback (most recent call last):
🔧 golangci-lint (2.12.2)Error: build linters: unable to load custom analyzer "kubeapilinter": tools/_output/bin/kube-api-linter.so, plugin: not implemented Comment |
|
[APPROVALNOTIFIER] This PR is NOT APPROVED This pull-request has been approved by: The full list of commands accepted by this bot can be found here. DetailsNeeds approval from an approver in each of these files:Approvers can indicate their approval by writing |
PR Summary by QodoBump Kubernetes deps to v0.37.0-beta.0 and re-vendor
AI Description
Diagram
High-Level Assessment
Files changed (13)
|
There was a problem hiding this comment.
Actionable comments posted: 1
🤖 Prompt for all review comments with AI agents
Verify each finding against current code. Fix only still-valid issues, skip the
rest with a brief reason, keep changes minimal, and validate.
Inline comments:
In `@tools/go.mod`:
- Around line 16-36: Add an explicit provenance-review requirement for the
replace directive targeting
github.com/jacobsee/kubernetes-sigs-controller-tools: obtain approval, review
the fork against upstream, complete license and CVE checks, and compare
generated CRD/OpenAPI output before merging. Keep the existing controller-tools
dependency and replacement unchanged unless those reviews identify a required
update.
🪄 Autofix (Beta)
Fix all unresolved CodeRabbit comments on this PR:
- Push a commit to this branch (recommended)
- Create a new PR with the fixes
| github.com/spf13/afero v1.15.0 | ||
| github.com/spf13/cobra v1.10.2 | ||
| github.com/spf13/pflag v1.0.10 | ||
| github.com/vmware-archive/yaml-patch v0.0.11 | ||
| golang.org/x/tools v0.44.0 | ||
| golang.org/x/tools v0.48.0 | ||
| gopkg.in/yaml.v3 v3.0.1 | ||
| k8s.io/apiextensions-apiserver v0.36.2 | ||
| k8s.io/apimachinery v0.36.2 | ||
| k8s.io/code-generator v0.36.2 | ||
| k8s.io/gengo/v2 v2.0.0-20250922181213-ec3ebc5fd46b | ||
| k8s.io/apiextensions-apiserver v0.37.0-beta.0 | ||
| k8s.io/apimachinery v0.37.0-beta.0 | ||
| k8s.io/code-generator v0.37.0-beta.0 | ||
| k8s.io/gengo/v2 v2.0.0-20260408192533-25e2208e0dc3 | ||
| k8s.io/klog/v2 v2.140.0 | ||
| k8s.io/kube-openapi v0.0.0-20260427204847-8949caaa1199 | ||
| k8s.io/utils v0.0.0-20260319190234-28399d86e0b5 | ||
| k8s.io/kube-openapi v0.0.0-20260618221249-bc653b64f974 | ||
| k8s.io/utils v0.0.0-20260626114624-be93311217bd | ||
| sigs.k8s.io/controller-tools v0.18.0 | ||
| sigs.k8s.io/crdify v0.5.0 | ||
| sigs.k8s.io/kube-api-linter v0.0.0-20260716143926-092fe0c72997 | ||
| sigs.k8s.io/yaml v1.6.0 | ||
| ) | ||
|
|
||
| replace sigs.k8s.io/controller-tools => github.com/openshift/controller-tools v0.12.1-0.20260526085915-0d87bdec1548 | ||
| // replace sigs.k8s.io/controller-tools => github.com/openshift/controller-tools v0.12.1-0.20260526085915-0d87bdec1548 | ||
| replace sigs.k8s.io/controller-tools => github.com/jacobsee/kubernetes-sigs-controller-tools v0.0.0-20260723054157-031a71242c33 |
There was a problem hiding this comment.
🔒 Security & Privacy | 🟠 Major | 🏗️ Heavy lift
🧩 Analysis chain
🏁 Script executed:
#!/bin/bash
set -euo pipefail
printf '\n== tools/go.mod ==\n'
cat -n tools/go.mod | sed -n '1,120p'
printf '\n== tools/tools.go ==\n'
cat -n tools/tools.go | sed -n '1,120p'
printf '\n== search for controller-tools references ==\n'
rg -n "controller-tools|controller-gen|jacobsee/kubernetes-sigs-controller-tools|openshift/controller-tools" -S .Repository: openshift/api
Length of output: 50369
🏁 Script executed:
#!/bin/bash
set -euo pipefail
printf '\n== module metadata ==\n'
go env GOMOD GOPATH GOMODCACHE 2>/dev/null || true
printf '\n== tools/go.mod replace block ==\n'
sed -n '1,80p' tools/go.mod
printf '\n== minimal dependency graph for controller-tools if available ==\n'
cd tools
if command -v go >/dev/null 2>&1; then
go list -m all 2>/dev/null | rg 'controller-tools|controller-gen|jacobsee|openshift' || true
else
echo "go tool not available"
fiRepository: openshift/api
Length of output: 3989
Require provenance review for the controller-tools fork. This replace swaps upstream sigs.k8s.io/controller-tools for the github.com/jacobsee/kubernetes-sigs-controller-tools fork, so it changes the code-generation supply chain and can alter CRD/OpenAPI output. Require explicit provenance approval, an upstream diff review, license/CVE checks, and a generated-output comparison before merging.
🤖 Prompt for AI Agents
Verify each finding against current code. Fix only still-valid issues, skip the
rest with a brief reason, keep changes minimal, and validate.
In `@tools/go.mod` around lines 16 - 36, Add an explicit provenance-review
requirement for the replace directive targeting
github.com/jacobsee/kubernetes-sigs-controller-tools: obtain approval, review
the fork against upstream, complete license and CVE checks, and compare
generated CRD/OpenAPI output before merging. Keep the existing controller-tools
dependency and replacement unchanged unless those reviews identify a required
update.
Source: Path instructions
Code Review by Qodo
1. Forked controller-tools dependency
|
|
@jacobsee: The following tests failed, say
Full PR test history. Your PR dashboard. DetailsInstructions 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. |
No description provided.