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

Issue #63: Display the new additional connectors configuration #64

Merged
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 @@ -539,11 +539,18 @@ private void produceMetricsHubExamplesContent(

// Connector variable
if (connectorVariables != null && !connectorVariables.isEmpty()) {
yamlBuilder.append(" variables:\n");
yamlBuilder.append(" additionalConnectors:\n");
CherfaElyes marked this conversation as resolved.
Show resolved Hide resolved
yamlBuilder.append(" " + connectorId);
yamlBuilder.append(": # Unique ID. Use 'uses' if different from the original connector ID\n");
yamlBuilder.append(" uses: " + connectorId);
yamlBuilder.append(" # Optional - Original ID if not in key\n");
yamlBuilder.append(" force: true");
yamlBuilder.append(" # Optional (default: true); false for auto-detection only\n");
yamlBuilder.append(" variables:\n");
connectorVariables
.iterator()
.forEachRemaining(variable -> {
yamlBuilder.append(String.format(" %s: %s", variable, "<VALUE>"));
yamlBuilder.append(String.format(" %s: %s", variable, "<VALUE>"));
yamlBuilder.append(" # Replace with desired value.\n");
});
}
Expand Down
Loading