Skip to content

Commit 67676ae

Browse files
authored
Add Reason field to elastic-agent upgrade details metadata (#134711)
* Add Reason field to elastic-agent upgrade details metadata Add "reason" text field to map a new upgrade details field introduced in PR elastic/elastic-agent#8407 * Update docs/changelog/134711.yaml * Bump FLEET_AGENTS_MAPPINGS_VERSION
1 parent ec865f3 commit 67676ae

File tree

3 files changed

+15
-1
lines changed

3 files changed

+15
-1
lines changed

docs/changelog/134711.yaml

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,5 @@
1+
pr: 134711
2+
summary: Add Reason field to elastic-agent upgrade details metadata
3+
area: Infra/Plugins
4+
type: enhancement
5+
issues: []

x-pack/plugin/core/template-resources/src/main/resources/fleet-agents.json

Lines changed: 9 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -314,6 +314,15 @@
314314
},
315315
"retry_until": {
316316
"type": "date"
317+
},
318+
"reason": {
319+
"type":"text",
320+
"fields": {
321+
"keyword": {
322+
"type": "keyword",
323+
"ignore_above": 1024
324+
}
325+
}
317326
}
318327
}
319328
}

x-pack/plugin/fleet/src/main/java/org/elasticsearch/xpack/fleet/Fleet.java

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -79,7 +79,7 @@ public class Fleet extends Plugin implements SystemIndexPlugin {
7979
private static final String MAPPING_VERSION_VARIABLE = "fleet.version";
8080
private static final List<String> ALLOWED_PRODUCTS = List.of("kibana", "fleet");
8181
private static final int FLEET_ACTIONS_MAPPINGS_VERSION = 2;
82-
private static final int FLEET_AGENTS_MAPPINGS_VERSION = 3;
82+
private static final int FLEET_AGENTS_MAPPINGS_VERSION = 4;
8383
private static final int FLEET_ENROLLMENT_API_KEYS_MAPPINGS_VERSION = 3;
8484
private static final int FLEET_SECRETS_MAPPINGS_VERSION = 1;
8585
private static final int FLEET_POLICIES_MAPPINGS_VERSION = 2;

0 commit comments

Comments
 (0)