Skip to content
Open
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 @@ -299,7 +299,7 @@ public void patchConfigMap() {
"pulsarRootDir", "/pulsar",
"submittingInsidePod", true,
"pulsarServiceUrl", brokerServiceUrl,
"pulsarAdminUrl", "https://%s.%s:6750/"
"pulsarAdminUrl", "https://%s.%s:6751/"
Copy link
Member

Choose a reason for hiding this comment

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

Given that line 301 has brokerServiceUrl, I think we might need to dynamically compute this value.

Copy link
Author

Choose a reason for hiding this comment

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

It seems to me that are a lot of little things to do in this class like making use of constants for the ports provided as ints at the top, but likely better as strings.

Copy link
Contributor

Choose a reason for hiding this comment

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

Yes it has to be computed based on tls configuration

.formatted(resourceName, getServiceDnsSuffix()),
"percentMemoryPadding", 10)
);
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -61,7 +61,7 @@ public class ZooKeeperResourcesFactory extends BaseResourcesFactory<ZooKeeperSpe
public static final int DEFAULT_SERVER_PORT = 2888;
public static final int DEFAULT_LEADER_ELECTION_PORT = 3888;
public static final int DEFAULT_CLIENT_PORT = 2181;
public static final int DEFAULT_CLIENT_TLS_PORT = 2281;
public static final int DEFAULT_CLIENT_TLS_PORT = 2282;
public static final String ENV_ZOOKEEPER_SERVERS = "ZOOKEEPER_SERVERS";
public static final List<String> DEFAULT_ENV = List.of("ZOOKEEPER_SERVERS");

Expand Down