-
Bug
-
Resolution: Not a Bug
-
Normal
-
None
-
4.19.0
-
None
-
None
-
False
-
If I pull the latest openshift/api and use operatorstatus or operatorspec in my openshift CRD, I get the following error:
kehannon@kehannon-thinkpadp1gen4i:~/Work/openshift/kueue-operator$ make generate Using existing controller-gen from "_output/tools/bin/controller-gen-v0.9.2" Warning: Installed controller-gen version (devel) does not match expected version v0.9.2. Using existing yq from "_output/tools/bin/yq-2.4.0" Using existing yaml-patch from "_output/tools/bin/yaml-patch-v0.0.11" '_output/tools/bin/controller-gen-v0.9.2' schemapatch:manifests="./manifests/" paths="./pkg/apis/kueueoperator/v1alpha1" 'output:dir="./manifests/"' /home/kehannon/Work/openshift/kueue-operator/vendor/github.com/openshift/api/operator/v1/types.go:260:1: unknown argument "fieldPath" (at <input>:1:111) /home/kehannon/Work/openshift/kueue-operator/vendor/github.com/openshift/api/operator/v1/types.go:260:1: extra arguments provided: "\".currentRevision\"" (at <input>:1:112) /home/kehannon/Work/openshift/kueue-operator/vendor/github.com/openshift/api/operator/v1/types.go:260:1: unknown argument "fieldPath" (at <input>:1:111) /home/kehannon/Work/openshift/kueue-operator/vendor/github.com/openshift/api/operator/v1/types.go:260:1: extra arguments provided: "\".currentRevision\"" (at <input>:1:112) github.com/openshift/api/operator/v1:-: unknown type "github.com/openshift/api/operator/v1".OperatorSpec github.com/openshift/api/operator/v1:-: unknown type "github.com/openshift/api/operator/v1".OperatorStatus github.com/openshift/api/operator/v1:-: unknown type "github.com/openshift/api/operator/v1".OperatorStatus github.com/openshift/api/operator/v1:-: unknown type "github.com/openshift/api/operator/v1".OperatorSpec github.com/openshift/kueue-operator/pkg/apis/kueueoperator/v1alpha1:-: unable to locate schema for type "github.com/openshift/api/operator/v1".OperatorStatus github.com/openshift/kueue-operator/pkg/apis/kueueoperator/v1alpha1:-: unable to locate schema for type "github.com/openshift/api/operator/v1".OperatorSpec Error: not all generators ran successfully run `controller-gen schemapatch:manifests=./manifests/ paths=./pkg/apis/kueueoperator/v1alpha1 output:dir="./manifests/" -w` to see all available markers, or `controller-gen schemapatch:manifests=./manifests/ paths=./pkg/apis/kueueoperator/v1alpha1 output:dir="./manifests/" -h` for usage make: *** [Makefile:33: update-codegen-crds-kueueoperator] Error 1
I have a repro branch here: https://github.com/openshift/kueue-operator/pull/8
If I comment out https://github.com/openshift/api/blob/master/operator/v1/types.go#L260
I am able to build the CRD without any issue.