-
Notifications
You must be signed in to change notification settings - Fork 72
/
spec.yml
113 lines (112 loc) · 4.08 KB
/
spec.yml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
spec:
additionalContents: false
totalContentsLimit: 500
contents:
- description: Folder containing a single data stream definition
type: folder
pattern: '^([a-z0-9]{2}|[a-z0-9][a-z0-9_]+[a-z0-9])$'
forbiddenPatterns:
# Avoid collision with ingest pipeline created by fleet, see https://github.com/elastic/package-spec/issues/699
- '^integration$'
required: true
additionalContents: false
contents:
- description: A data stream's manifest file
type: file
contentMediaType: "application/x-yaml"
sizeLimit: 5MB
name: "manifest.yml"
required: true
$ref: "./manifest.spec.yml"
- description: Folder containing field definitions
type: folder
name: fields
required: true
$ref: "./fields/spec.yml"
- description: Folder containing agent-related definitions
type: folder
name: agent
required: false
additionalContents: false
$ref: "./agent/spec.yml"
- description: Folder containing Elasticsearch assets
type: folder
name: elasticsearch
additionalContents: false
contents:
- description: Folder containing Elasticsearch ILM Policy Definition
type: folder
name: ilm
additionalContents: false
contents:
- description: Supporting ILM policy definitions in YAML
type: file
pattern: '^.+\.yml$'
# TODO Determine if special handling of `---` is required (issue: https://github.com/elastic/package-spec/pull/54)
contentMediaType: "application/x-yaml; require-document-dashes=true"
required: false
- description: Supporting ILM policy definitions in JSON
type: file
pattern: '^.+\.json$'
contentMediaType: "application/json"
required: false
- description: Folder containing Elasticsearch Ingest Node pipeline definitions
type: folder
name: ingest_pipeline
additionalContents: false
contents:
- description: Supporting ingest pipeline definitions in YAML
type: file
pattern: '^.+\.yml$'
# TODO Determine if special handling of `---` is required (issue: https://github.com/elastic/package-spec/pull/54)
contentMediaType: "application/x-yaml; require-document-dashes=true"
required: false
$ref: "../../integration/elasticsearch/pipeline.spec.yml"
- description: Supporting ingest pipeline definitions in JSON
type: file
pattern: '^.+\.json$'
contentMediaType: "application/json"
required: false
$ref: "../../integration/elasticsearch/pipeline.spec.yml"
- description: Sample event file
type: file
name: "sample_event.json"
contentMediaType: "application/json"
required: false
- description: Folder containing testing related files and sub-folders
type: folder
name: "test"
required: false
- description: Folder containing development resources
type: folder
name: _dev
required: false
visibility: private
$ref: "./_dev/spec.yml"
- description: File containing routing rules definitions (technical preview)
type: file
contentMediaType: "application/x-yaml"
name: "routing_rules.yml"
required: false
$ref: "./routing_rules.spec.yml"
- description: File containing lifecycle configuration (technical preview)
type: file
contentMediaType: "application/x-yaml"
name: "lifecycle.yml"
required: false
$ref: "lifecycle.spec.yml"
versions:
- before: 3.0.0
patch:
- op: remove
path: "/contents/0/contents/3/contents/1/contents/0/$ref" # remove ingest pipeline validation as yaml
- op: remove
path: "/contents/0/contents/3/contents/1/contents/1/$ref" # remove ingest pipeline validation as json
- before: 2.10.0
patch:
- op: remove
path: "/contents/0/contents/8" # remove lifecycle definition
- before: 2.9.0
patch:
- op: remove
path: "/contents/0/contents/7" # remove routing_rules file definition