Skip to content

use untyped yaml configuration as function or connector config - #233

Merged
freeznet merged 13 commits into
masterfrom
freeznet/add-untyped-YAML-configuration-as-function-connector-config
Aug 6, 2021
Merged

use untyped yaml configuration as function or connector config#233
freeznet merged 13 commits into
masterfrom
freeznet/add-untyped-YAML-configuration-as-function-connector-config

Conversation

@freeznet

@freeznet freeznet commented Jul 21, 2021

Copy link
Copy Markdown
Member

@freeznet
freeznet requested a review from nlu90 as a code owner July 21, 2021 09:40
@freeznet freeznet self-assigned this Jul 21, 2021
@freeznet freeznet changed the title [WIP] use untyped yaml configuration as function or connector config use untyped yaml configuration as function or connector config Jul 22, 2021
@freeznet
freeznet requested review from fantapsody and tuteng July 23, 2021 01:08
@freeznet

Copy link
Copy Markdown
Member Author

@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 ""

Copy link
Copy Markdown
Contributor

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?

Copy link
Copy Markdown
Member Author

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.

Comment thread api/v1alpha1/common.go Outdated
@freeznet
freeznet force-pushed the freeznet/add-untyped-YAML-configuration-as-function-connector-config branch from cf6cd46 to b78380e Compare August 5, 2021 07:40
@freeznet
freeznet merged commit feff2d8 into master Aug 6, 2021
@freeznet
freeznet deleted the freeznet/add-untyped-YAML-configuration-as-function-connector-config branch August 6, 2021 00:57
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.

5 participants