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

[INLONG-9985][Manager] Support authentication params for pulsar source #9986

Merged
merged 1 commit into from
Apr 15, 2024
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Original file line number Diff line number Diff line change
Expand Up @@ -81,8 +81,8 @@ public ExtractNode createExtractNode(StreamNode streamNodeInfo) {
primaryKey,
pulsarSource.getSubscription(),
scanStartupSubStartOffset,
"",
"");
pulsarSource.getClientAuthPluginClassName(),
pulsarSource.getClientAuthParams());
}

@Override
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -88,6 +88,12 @@ public class PulsarSource extends StreamSource {
@Builder.Default
private String wrapType = MessageWrapType.INLONG_MSG_V0.getName();

@ApiModelProperty(value = "Client auth plugin class name")
private String clientAuthPluginClassName;

@ApiModelProperty(value = "Client auth params")
private String clientAuthParams;

@ApiModelProperty("Reset subscription time")
private Long resetTime;

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -80,6 +80,12 @@ public class PulsarSourceDTO {
@ApiModelProperty(value = "The message body wrap wrap type, including: RAW, INLONG_MSG_V0, INLONG_MSG_V1, etc")
private String wrapType;

@ApiModelProperty(value = "Client auth plugin class name")
private String clientAuthPluginClassName;

@ApiModelProperty(value = "Client auth params")
private String clientAuthParams;

@ApiModelProperty("Reset subscription time")
private Long resetTime;

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -76,6 +76,12 @@ public class PulsarSourceRequest extends SourceRequest {
+ " Available options are earliest, latest, external-subscription, and specific-offsets.")
private String scanStartupMode = "earliest";

@ApiModelProperty(value = "Client auth plugin class name")
private String clientAuthPluginClassName;

@ApiModelProperty(value = "Client auth params")
private String clientAuthParams;

@ApiModelProperty("Reset subscription time")
private Long resetTime;

Expand Down
Loading