-
Notifications
You must be signed in to change notification settings - Fork 440
conflicting types in allOf branches in schema: string vs object #533
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Comments
I am getting the same exact error, my types.go has:
|
I fixed my issue by moving to this release of controller-tools:
|
look similar, but seems a different one. I think you fixed it due to v0.4.1-0.20200821122629-1dc8cc4f84c8 will generate an any type instead of object, any type has no conflict with string. So it will work in v0.4.0 also at your scenerio @nitishkrishna I can also generate an any type with v0.4.0, but will fail when apply to k8s, as k8s doesn't support any type ref #505 |
Issues go stale after 90d of inactivity. If this issue is safe to close now please do so with Send feedback to sig-contributor-experience at kubernetes/community. |
Stale issues rot after 30d of inactivity. If this issue is safe to close now please do so with Send feedback to sig-contributor-experience at kubernetes/community. |
@mjaow this should now be fixed via the PR referenced above. |
Rotten issues close after 30d of inactivity. Send feedback to sig-contributor-experience at kubernetes/community. |
@fejta-bot: Closing this issue. 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 kubernetes/test-infra repository. |
i am facing a similar issue after running controller-gen "crd:crdVersions={v1},trivialVersions=true" rbac:roleName=manager-role webhook paths="./..." output:crd:artifacts:config=config/crd/bases |
When I'm trying to use the Conditions type from knative
apis.Conditions has a field with type VolatileTime
then I run
controller-gen crd:trivialVersions=true crd:crdVersions="v1beta1" rbac:roleName=manager-role webhook paths="./..." output:crd:artifacts:config=config/crd/bases
,it will faied with
conflicting types in allOf branches in schema: string vs object
.From error message, I guess it's type error for VolatileTime, so I'm trying to figure a way to overrides the type for this field LastTransitionTime . But I can't do it as it's a field in knative
Does anyone know how to deal with it?
The text was updated successfully, but these errors were encountered: