Refresh ECS/beats schemas up to 8.2 (#1995)

This commit is contained in:
Justin Ibarra
2022-05-25 11:51:43 -08:00
committed by GitHub
parent e1266a6fd3
commit 0428e161a8
18 changed files with 14 additions and 12 deletions
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
+9 -9
View File
@@ -18,23 +18,23 @@
ecs: "1.11.0"
"7.16.0":
beats: "7.16.2" # TODO: update this once beats releases
ecs: "1.12.1"
beats: "7.16.2"
ecs: "1.12.2"
# 7.17 was intentionally skipped because it was added late and was bug fix only
"8.0.0":
beats: "8.0.0-rc1" # TODO: update this once beats releases
ecs: "1.12.1"
beats: "8.0.1"
ecs: "8.0.1"
"8.1.0":
beats: "main" # TODO: update this once beats releases
ecs: "1.12.1"
beats: "8.1.2"
ecs: "8.1.0"
"8.2.0":
beats: "main" # TODO: update this once beats releases
ecs: "1.12.1"
beats: "8.2.1"
ecs: "8.2.1"
"8.3.0":
beats: "main" # TODO: update this once beats releases
ecs: "1.12.1"
ecs: "8.2.1"
+5 -3
View File
@@ -3,8 +3,9 @@
# 2.0; you may not use this file except in compliance with the Elastic License
# 2.0.
import json
from collections import OrderedDict
from pathlib import Path
from typing import Dict, List, Optional
from typing import List, Optional, OrderedDict as OrderedDictType
import jsonschema
@@ -221,7 +222,7 @@ def downgrade(api_contents: dict, target_version: str, current_version: Optional
@cached
def get_stack_schemas(stack_version: str) -> Dict[str, dict]:
def get_stack_schemas(stack_version: str) -> OrderedDictType[str, dict]:
"""Return all ECS + beats to stack versions for a every stack version >= specified stack version and <= package."""
from ..packaging import load_current_package_version
@@ -238,4 +239,5 @@ def get_stack_schemas(stack_version: str) -> Dict[str, dict]:
if stack_version > current_package:
versions[stack_version] = {'beats': 'main', 'ecs': 'master'}
return versions
versions_reversed = OrderedDict(sorted(versions.items(), reverse=True))
return versions_reversed