-
Notifications
You must be signed in to change notification settings - Fork 345
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
[camel-kamelets] Issue-1330: Deprecating parameters #4097
Conversation
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
You need to run make generate
and add the generated code changes as well.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
please generate the crd files through make generate
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
You need to align the controller-gen
to the version we're using or alternatively, revert those changes that have nothing to deal with the deprecate
stuff.
@@ -19,7 +19,7 @@ apiVersion: apiextensions.k8s.io/v1 | |||
kind: CustomResourceDefinition | |||
metadata: | |||
annotations: | |||
controller-gen.kubebuilder.io/version: v0.6.1 | |||
controller-gen.kubebuilder.io/version: v0.9.2 |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
This does not look good. I think you have some controller-gen version in your local environment different than the one we are using.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I did wonder.. fixed (I regenerated with controller-gen@v0.6.1
)
I dont know if it makes sense to bring this down on 1.12.x too, it should be harmless but it's a breaking change. |
Let me know.. it's your call. |
I don't think it's a breaking change as we introduce a parameter which could be optional. Whatever works now in 1.12 will work after the change. Feel free to backport. |
@squakez Do you mean I couldn't see a |
yes, it's release-1.12.x |
apache/camel-kamelets#1330
I added the CRD field as instructed and similar to the
JSONSchemaProp
structure.I checked generating the documentation with
deprecated
property and it is already handled.Just the validation fails as the CRD schema lacks the property.
There is a generated file that looks as though it should be re-generated (since it handles the
JSONSchemaProp
structure) however I could not see how to regenerate it. The code comments in other files suggest amake
step forgenerate-deepcopy
but that appears to be long gone following refactoring of the repository over the years.Advice is welcome.
Release Note