Skip to content

Bump openshift/api and mention failure.#73

Merged
openshift-merge-bot[bot] merged 3 commits intoopenshift:mainfrom
kannon92:bump-api-and-chat-about-fix
Mar 12, 2025
Merged

Bump openshift/api and mention failure.#73
openshift-merge-bot[bot] merged 3 commits intoopenshift:mainfrom
kannon92:bump-api-and-chat-about-fix

Conversation

@kannon92
Copy link
Contributor

@kannon92 kannon92 commented Mar 7, 2025

If we take the latest sha of openshift/api, we are hitting the following failure:

kehannon@kehannon-thinkpadp1gen4i:~/Work/openshift/kueue-operator$ make generate manifests
/home/kehannon/Work/openshift/kueue-operator/bin/controller-gen crd paths=./pkg/apis/kueueoperator/v1alpha1/... schemapatch:manifests=./manifests output:crd:dir=./manifests
/home/kehannon/Work/openshift/kueue-operator/vendor/github.com/openshift/api/operator/v1/types.go:261:1: unknown argument "optionalOldSelf" (at <input>:1:141)
/home/kehannon/Work/openshift/kueue-operator/vendor/github.com/openshift/api/operator/v1/types.go:261:1: extra arguments provided: "true,fieldPath=.currentRevision" (at <input>:1:142)
/home/kehannon/Work/openshift/kueue-operator/vendor/github.com/openshift/api/operator/v1/types.go:262:1: unknown argument "optionalOldSelf" (at <input>:1:139)
/home/kehannon/Work/openshift/kueue-operator/vendor/github.com/openshift/api/operator/v1/types.go:262:1: extra arguments provided: "true,fieldPath=.targetRevision" (at <input>:1:140)
/home/kehannon/Work/openshift/kueue-operator/vendor/github.com/openshift/api/operator/v1/types.go:261:1: unknown argument "optionalOldSelf" (at <input>:1:141)
/home/kehannon/Work/openshift/kueue-operator/vendor/github.com/openshift/api/operator/v1/types.go:261:1: extra arguments provided: "true,fieldPath=.currentRevision" (at <input>:1:142)
/home/kehannon/Work/openshift/kueue-operator/vendor/github.com/openshift/api/operator/v1/types.go:262:1: unknown argument "optionalOldSelf" (at <input>:1:139)
/home/kehannon/Work/openshift/kueue-operator/vendor/github.com/openshift/api/operator/v1/types.go:262:1: extra arguments provided: "true,fieldPath=.targetRevision" (at <input>:1:140)

Tracking this down, I think openshift/api@6b76c18 is causing an error for us.

cc @everettraven

Note, our CI says this passes because we don't check CRD generation yet.

@openshift-ci openshift-ci bot added the do-not-merge/work-in-progress Indicates that a PR should not merge because it is a work in progress. label Mar 7, 2025
@openshift-ci openshift-ci bot requested review from mrunalp and sohankunkerkar March 7, 2025 21:36
@openshift-ci openshift-ci bot added the approved Indicates a PR has been approved by an approver from all required OWNERS files. label Mar 7, 2025
@kannon92 kannon92 changed the title WIP: Bump api and chat about fix WIP: Bump openshift/api and mention failure. Mar 7, 2025
@everettraven
Copy link

@kannon92 That looks like you may be using a version of controller-gen that doesn't have the changes to support the optionalOldSelf parameter on the kubebuilder:validationXValidation tag. It was introduced upstream by kubernetes-sigs/controller-tools#1150 and it seems like there hasn't been a release of the upstream controller-tools with these changes yet.

With this being an OpenShift repo, would it make sense to point the controller-gen reference in this repo to https://github.com/openshift/kubernetes-sigs-controller-tools ? We do have this change merged into this fork in the master and release-4.18 branches.

@kannon92 kannon92 force-pushed the bump-api-and-chat-about-fix branch from a4c99c3 to 5671c59 Compare March 10, 2025 14:26
@kannon92
Copy link
Contributor Author

@everettraven I'm having some trouble importing this.

kehannon@kehannon-thinkpadp1gen4i:~/Work/openshift/kueue-operator$ go get github.com/openshift/kubernetes-sigs-controller-tools@latest
go: github.com/openshift/kubernetes-sigs-controller-tools@latest (v0.12.0) requires github.com/openshift/kubernetes-sigs-controller-tools@v0.12.0: parsing go.mod:
	module declares its path as: sigs.k8s.io/controller-tools
	        but was required as: github.com/openshift/kubernetes-sigs-controller-tools

Any ideas on how to fix this?

@kannon92 kannon92 force-pushed the bump-api-and-chat-about-fix branch from 5671c59 to b516b70 Compare March 10, 2025 15:43
@kannon92
Copy link
Contributor Author

/hold cancel

@kannon92
Copy link
Contributor Author

/retest

@kannon92 kannon92 changed the title WIP: Bump openshift/api and mention failure. Bump openshift/api and mention failure. Mar 10, 2025
@openshift-ci openshift-ci bot removed the do-not-merge/work-in-progress Indicates that a PR should not merge because it is a work in progress. label Mar 10, 2025
@kannon92
Copy link
Contributor Author

Thank you to @everettraven!

He pointed out the fix and I think we are good to go with merging this.

We have to switch to controller-tools from openshift to get some patches that are tracking ahead of upstream.

cc @sohankunkerkar @PannagaRao

@kannon92
Copy link
Contributor Author

/retest

1 similar comment
@kannon92
Copy link
Contributor Author

/retest

@kannon92 kannon92 force-pushed the bump-api-and-chat-about-fix branch from b516b70 to c7a6202 Compare March 11, 2025 16:52
@kannon92
Copy link
Contributor Author

/retest

2 similar comments
@kannon92
Copy link
Contributor Author

/retest

@kannon92
Copy link
Contributor Author

/retest

@openshift-ci
Copy link

openshift-ci bot commented Mar 11, 2025

@kannon92: 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.

@kannon92
Copy link
Contributor Author

/cc @rphillips @PannagaRao

@openshift-ci openshift-ci bot requested review from PannagaRao and rphillips March 12, 2025 00:21
@PannagaRao
Copy link
Contributor

/lgtm

@openshift-ci openshift-ci bot added the lgtm Indicates that a PR is ready to be merged. label Mar 12, 2025
@openshift-ci
Copy link

openshift-ci bot commented Mar 12, 2025

[APPROVALNOTIFIER] This PR is APPROVED

This pull-request has been approved by: kannon92, PannagaRao

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:

Approvers can indicate their approval by writing /approve in a comment
Approvers can cancel approval by writing /approve cancel in a comment

@openshift-merge-bot openshift-merge-bot bot merged commit b408de6 into openshift:main Mar 12, 2025
13 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

approved Indicates a PR has been approved by an approver from all required OWNERS files. lgtm Indicates that a PR is ready to be merged.

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants