-
Notifications
You must be signed in to change notification settings - Fork 91
Support configuring dynamic dataset and namespace in input packages #1140
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
Changes from all commits
File filter
Filter by extension
Conversations
Jump to
Diff view
Diff view
There are no files selected for viewing
| Original file line number | Diff line number | Diff line change |
|---|---|---|
|
|
@@ -247,6 +247,12 @@ spec: | |
| - "time_series" # Enables time series data streams https://www.elastic.co/guide/en/elasticsearch/reference/master/tsds.html | ||
| examples: | ||
| - "time_series" | ||
| elasticsearch_dynamic_dataset: | ||
| description: When set to true, agents running this integration are granted data stream privileges for all datasets of its type | ||
| type: boolean | ||
| elasticsearch_dynamic_namespace: | ||
| description: When set to true, agents running this integration are granted data stream privileges for all namespaces of its type | ||
| type: boolean | ||
|
Comment on lines
+250
to
+255
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. Move shared dynamic field definitions to the integration manifest definitions file. These definitions are now shared by multiple specs ( As per coding guidelines, "When a field is used in multiple locations, define it once in 🤖 Prompt for AI Agents |
||
| elasticsearch_index_template: | ||
| description: Index template definition | ||
| type: object | ||
|
|
@@ -685,11 +691,9 @@ spec: | |
| examples: | ||
| - "synthetic" | ||
| dynamic_dataset: | ||
| description: When set to true, agents running this integration are granted data stream privileges for all datasets of its type | ||
| type: boolean | ||
| $ref: "#/definitions/elasticsearch_dynamic_dataset" | ||
| dynamic_namespace: | ||
| description: When set to true, agents running this integration are granted data stream privileges for all namespaces of its type | ||
| type: boolean | ||
| $ref: "#/definitions/elasticsearch_dynamic_namespace" | ||
| categories: | ||
| description: > | ||
| Optional categories that describe the type of data collected by this data stream. | ||
|
|
||
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Add a version patch to gate the new input fields by spec version.
dynamic_datasetanddynamic_namespaceare added, but older versions are not patched to remove them. This leaks new schema surface into legacyformat_versions.Proposed patch
As per coding guidelines, "Version patches enable backward compatibility by removing features from older spec versions."
Also applies to: 173-220
🤖 Prompt for AI Agents