Skip to content

Commit

Permalink
Teach pipeline validator abount terminate processor (#857)
Browse files Browse the repository at this point in the history
Allow to include the terminate processor in pipelines.

Co-Authored-By: Dan Kortschak <dan.kortschak@elastic.co>
  • Loading branch information
jsoriano and efd6 authored Jan 17, 2025
1 parent 8f12924 commit 293d288
Show file tree
Hide file tree
Showing 3 changed files with 9 additions and 0 deletions.
3 changes: 3 additions & 0 deletions spec/changelog.yml
Original file line number Diff line number Diff line change
Expand Up @@ -18,6 +18,9 @@
- description: Allow to override default deployment mode.
type: enhancement
link: https://github.com/elastic/package-spec/pull/854
- description: Add `terminate` processor to list pipeline spec.
type: enhancement
link: https://github.com/elastic/package-spec/pull/857
- version: 3.3.1
changes:
- description: Add validation rule to ensure security capability is added if there is any security rule asset.
Expand Down
5 changes: 5 additions & 0 deletions spec/integration/elasticsearch/pipeline.spec.yml
Original file line number Diff line number Diff line change
Expand Up @@ -48,6 +48,7 @@ spec:
# set_security_user: false # Applicable to packages?
sort: { type: object }
split: { type: object }
terminate: { type: [object, "null"] }
trim: { type: object }
uppercase: { type: object }
urldecode: { type: object }
Expand Down Expand Up @@ -109,6 +110,10 @@ spec:
$ref: "#/definitions/processors"

versions:
- before: 3.3.2
patch:
- op: remove
path: /definitions/processor/properties/terminate # remove terminate processor validation
- before: 3.1.0
patch:
- op: remove
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -5,3 +5,4 @@ processors:
- set:
field: error.message
value: '{{ _ingest.on_failure_message }}'
- terminate:

0 comments on commit 293d288

Please sign in to comment.