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

Support data source for service account, pulsar instance and pulsar cluster #9

Merged
merged 12 commits into from
Jan 8, 2024

Conversation

tuteng
Copy link
Member

@tuteng tuteng commented Dec 28, 2023

No description provided.

@tuteng tuteng marked this pull request as draft December 28, 2023 12:39
@tuteng tuteng marked this pull request as ready for review December 28, 2023 14:13
@tuteng tuteng requested review from fantapsody, maxsxu, ciiiii and a team December 28, 2023 14:14
Comment on lines 47 to 57
func flattenKafkaConfig(flag string) map[string]interface{} {
att := make(map[string]interface{})
att["enabled"] = flag
return att
}

func flattenMqttConfig(flag string) map[string]interface{} {
att := make(map[string]interface{})
att["enabled"] = flag
return att
}
Copy link

Choose a reason for hiding this comment

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

Not important, just a style choice.

Suggested change
func flattenKafkaConfig(flag string) map[string]interface{} {
att := make(map[string]interface{})
att["enabled"] = flag
return att
}
func flattenMqttConfig(flag string) map[string]interface{} {
att := make(map[string]interface{})
att["enabled"] = flag
return att
}
func flattenKafkaConfig(flag string) map[string]interface{} {
return map[string]interface{}{
"enabled": flag,
}
}
func flattenMqttConfig(flag string) map[string]interface{} {
return map[string]interface{}{
"enabled": flag,
}
}

Copy link
Member Author

@tuteng tuteng Jan 4, 2024

Choose a reason for hiding this comment

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

Fixed, thanks

@tuteng
Copy link
Member Author

tuteng commented Jan 5, 2024

@zerbitx Can you take a look at this pr?

@tuteng
Copy link
Member Author

tuteng commented Jan 6, 2024

@ciiiii @zerbitx PTAL, thanks

@tuteng tuteng merged commit 4611d7f into main Jan 8, 2024
2 checks passed
@delete-merged-branch delete-merged-branch bot deleted the feature/support-data-source branch January 8, 2024 04:37
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants