-
Notifications
You must be signed in to change notification settings - Fork 29
use untyped yaml configuration as function or connector config #233
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
use untyped yaml configuration as function or connector config #233
Conversation
|
@tuteng @fantapsody PTAL when you have time, thanks. |
| func getUserConfig(configs map[string]string) string { | ||
| func getUserConfig(configs *v1alpha1.Config) string { | ||
| if configs == nil { | ||
| return "" |
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.
"" might not be a valid json, will that be a problem?
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.
the userConfig in pulsar functions' proto FunctionDetails is defined as string, and the default value is "", so "" would be fine if there is no userConfig provided.
cf6cd46 to
b78380e
Compare
#231