Skip to content
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

enable source connector to set ForwardMessageProperty #250

Merged
merged 3 commits into from
Aug 11, 2021

Conversation

nlu90
Copy link
Contributor

@nlu90 nlu90 commented Aug 9, 2021

solves #249

@nlu90 nlu90 requested review from sijie, freeznet and tuteng August 9, 2021 15:59
ProducerSpec: &producerSpec,
SerDeClassName: source.Spec.Output.SinkSerdeClassName,
SchemaType: source.Spec.Output.SinkSchemaType,
ForwardSourceMessageProperty: *source.Spec.ForwardSourceMessageProperty,
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

The webhook is not available in tests, so ForwardSourceMessageProperty might be nil if not provided.

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I thought I add a webhook for the check. Let me know if this helps

Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

yes, but the webhook is disabled by default, and needs some extra configs to make it work. I was working on that with #238, before the webhook is working, we can consider adding kubebuilder CRD validation markers.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants