Skip to content

Commit aa47d55

Browse files
ebeahanpchila
andauthored
Add Reason field to elastic-agent upgrade details metadata (#134711) (#134749)
* 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 (cherry picked from commit 67676ae) # Conflicts: # x-pack/plugin/fleet/src/main/java/org/elasticsearch/xpack/fleet/Fleet.java Co-authored-by: Paolo Chilà <[email protected]>
1 parent 85f96cc commit aa47d55

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
@@ -308,6 +308,15 @@
308308
},
309309
"retry_until": {
310310
"type": "date"
311+
},
312+
"reason": {
313+
"type":"text",
314+
"fields": {
315+
"keyword": {
316+
"type": "keyword",
317+
"ignore_above": 1024
318+
}
319+
}
311320
}
312321
}
313322
}

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 = 2;
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)