From bb4763676bff0838e8aed99e6114d88409a639cd Mon Sep 17 00:00:00 2001 From: Dan Kortschak Date: Tue, 17 Dec 2024 09:42:33 +1030 Subject: [PATCH 1/2] Teach pipeline validator abount terminate processor --- spec/changelog.yml | 3 +++ spec/integration/elasticsearch/pipeline.spec.yml | 1 + 2 files changed, 4 insertions(+) diff --git a/spec/changelog.yml b/spec/changelog.yml index 1260f1fea..26eb8e790 100644 --- a/spec/changelog.yml +++ b/spec/changelog.yml @@ -10,6 +10,9 @@ - description: Add support for semantic_text field definition. type: enhancement link: https://github.com/elastic/package-spec/pull/807 + - description: Add `terminate` processor to list pipeline spec. + type: enhancement + link: https://github.com/elastic/package-spec/pull/847 - version: 3.3.1 changes: - description: Add validation rule to ensure security capability is added if there is any security rule asset. diff --git a/spec/integration/elasticsearch/pipeline.spec.yml b/spec/integration/elasticsearch/pipeline.spec.yml index a5afefc41..4024ac927 100644 --- a/spec/integration/elasticsearch/pipeline.spec.yml +++ b/spec/integration/elasticsearch/pipeline.spec.yml @@ -48,6 +48,7 @@ spec: # set_security_user: false # Applicable to packages? sort: { type: object } split: { type: object } + terminate: { type: object } trim: { type: object } uppercase: { type: object } urldecode: { type: object } From d304004f089f2fa1ec89f50a3ec50d9359188d1f Mon Sep 17 00:00:00 2001 From: Dan Kortschak Date: Wed, 18 Dec 2024 06:34:44 +1030 Subject: [PATCH 2/2] address pr comment --- spec/integration/elasticsearch/pipeline.spec.yml | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/spec/integration/elasticsearch/pipeline.spec.yml b/spec/integration/elasticsearch/pipeline.spec.yml index 4024ac927..4873927b8 100644 --- a/spec/integration/elasticsearch/pipeline.spec.yml +++ b/spec/integration/elasticsearch/pipeline.spec.yml @@ -116,3 +116,7 @@ versions: path: /definitions/processors/if # remove rename processor validation - op: remove path: /definitions/processors/then # remove rename processor validation + - before: 3.3.0 + patch: + - op: remove + path: /definitions/processors/terminate # remove terminate processor validation