From bab51fcc5b82684836674ace996fd63111461d6e Mon Sep 17 00:00:00 2001 From: Julia Bardi Date: Fri, 2 May 2025 14:34:54 +0200 Subject: [PATCH 1/3] enable feature flag --- .../plugins/shared/fleet/common/experimental_features.ts | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/x-pack/platform/plugins/shared/fleet/common/experimental_features.ts b/x-pack/platform/plugins/shared/fleet/common/experimental_features.ts index caf185b8feacd..75d5b248ef1bc 100644 --- a/x-pack/platform/plugins/shared/fleet/common/experimental_features.ts +++ b/x-pack/platform/plugins/shared/fleet/common/experimental_features.ts @@ -10,7 +10,7 @@ export type ExperimentalFeatures = typeof allowedExperimentalValues; const _allowedExperimentalValues = { showExperimentalShipperOptions: false, useSpaceAwareness: false, - enableAutomaticAgentUpgrades: false, + enableAutomaticAgentUpgrades: true, enableSyncIntegrationsOnRemote: false, enableSSLSecrets: false, installedIntegrationsTabularUI: false, From b09c6cf434d355ed4a81faea389823135162f3db Mon Sep 17 00:00:00 2001 From: kibanamachine <42973632+kibanamachine@users.noreply.github.com> Date: Fri, 2 May 2025 12:54:17 +0000 Subject: [PATCH 2/3] [CI] Auto-commit changed files from 'node scripts/capture_oas_snapshot --include-path /api/status --include-path /api/alerting/rule/ --include-path /api/alerting/rules --include-path /api/actions --include-path /api/security/role --include-path /api/spaces --include-path /api/streams --include-path /api/fleet --include-path /api/dashboards --include-path /api/saved_objects/_import --include-path /api/saved_objects/_export --include-path /api/alerting/maintenance_window --update' --- oas_docs/bundle.json | 94 +++++++++++++++++++++++++++++++++ oas_docs/bundle.serverless.json | 94 +++++++++++++++++++++++++++++++++ 2 files changed, 188 insertions(+) diff --git a/oas_docs/bundle.json b/oas_docs/bundle.json index b39401efa960d..daa40ff97c537 100644 --- a/oas_docs/bundle.json +++ b/oas_docs/bundle.json @@ -16981,6 +16981,100 @@ ] } }, + "/api/fleet/agent_policies/{agentPolicyId}/auto_upgrade_agents_status": { + "get": { + "description": "Get auto upgrade agent status

[Required authorization] Route required privileges: fleet-agents-read.", + "operationId": "get-fleet-agent-policies-agentpolicyid-auto-upgrade-agents-status", + "parameters": [ + { + "in": "path", + "name": "agentPolicyId", + "required": true, + "schema": { + "type": "string" + } + } + ], + "responses": { + "200": { + "content": { + "application/json": { + "schema": { + "additionalProperties": false, + "properties": { + "currentVersions": { + "items": { + "additionalProperties": false, + "properties": { + "agents": { + "type": "number" + }, + "failedUpgradeAgents": { + "type": "number" + }, + "version": { + "type": "string" + } + }, + "required": [ + "version", + "agents", + "failedUpgradeAgents" + ], + "type": "object" + }, + "type": "array" + }, + "totalAgents": { + "type": "number" + } + }, + "required": [ + "currentVersions", + "totalAgents" + ], + "type": "object" + } + } + } + }, + "400": { + "content": { + "application/json": { + "schema": { + "additionalProperties": false, + "description": "Generic Error", + "properties": { + "attributes": {}, + "error": { + "type": "string" + }, + "errorType": { + "type": "string" + }, + "message": { + "type": "string" + }, + "statusCode": { + "type": "number" + } + }, + "required": [ + "message", + "attributes" + ], + "type": "object" + } + } + } + } + }, + "summary": "Get auto upgrade agent status", + "tags": [ + "Elastic Agent policies" + ] + } + }, "/api/fleet/agent_policies/{agentPolicyId}/copy": { "post": { "description": "Copy an agent policy by ID.

[Required authorization] Route required privileges: fleet-agent-policies-all.", diff --git a/oas_docs/bundle.serverless.json b/oas_docs/bundle.serverless.json index 838fa496f3e4b..c8ae3981c094f 100644 --- a/oas_docs/bundle.serverless.json +++ b/oas_docs/bundle.serverless.json @@ -16981,6 +16981,100 @@ ] } }, + "/api/fleet/agent_policies/{agentPolicyId}/auto_upgrade_agents_status": { + "get": { + "description": "Get auto upgrade agent status

[Required authorization] Route required privileges: fleet-agents-read.", + "operationId": "get-fleet-agent-policies-agentpolicyid-auto-upgrade-agents-status", + "parameters": [ + { + "in": "path", + "name": "agentPolicyId", + "required": true, + "schema": { + "type": "string" + } + } + ], + "responses": { + "200": { + "content": { + "application/json": { + "schema": { + "additionalProperties": false, + "properties": { + "currentVersions": { + "items": { + "additionalProperties": false, + "properties": { + "agents": { + "type": "number" + }, + "failedUpgradeAgents": { + "type": "number" + }, + "version": { + "type": "string" + } + }, + "required": [ + "version", + "agents", + "failedUpgradeAgents" + ], + "type": "object" + }, + "type": "array" + }, + "totalAgents": { + "type": "number" + } + }, + "required": [ + "currentVersions", + "totalAgents" + ], + "type": "object" + } + } + } + }, + "400": { + "content": { + "application/json": { + "schema": { + "additionalProperties": false, + "description": "Generic Error", + "properties": { + "attributes": {}, + "error": { + "type": "string" + }, + "errorType": { + "type": "string" + }, + "message": { + "type": "string" + }, + "statusCode": { + "type": "number" + } + }, + "required": [ + "message", + "attributes" + ], + "type": "object" + } + } + } + } + }, + "summary": "Get auto upgrade agent status", + "tags": [ + "Elastic Agent policies" + ] + } + }, "/api/fleet/agent_policies/{agentPolicyId}/copy": { "post": { "description": "Copy an agent policy by ID.

[Required authorization] Route required privileges: fleet-agent-policies-all.", From a58033ff9b313073d981c3e84d3d2e801fc53435 Mon Sep 17 00:00:00 2001 From: kibanamachine <42973632+kibanamachine@users.noreply.github.com> Date: Fri, 2 May 2025 13:14:43 +0000 Subject: [PATCH 3/3] [CI] Auto-commit changed files from 'make api-docs' --- oas_docs/output/kibana.serverless.yaml | 62 ++++++++++++++++++++++++++ oas_docs/output/kibana.yaml | 62 ++++++++++++++++++++++++++ 2 files changed, 124 insertions(+) diff --git a/oas_docs/output/kibana.serverless.yaml b/oas_docs/output/kibana.serverless.yaml index 46e51a53aeed5..30d599fa041d2 100644 --- a/oas_docs/output/kibana.serverless.yaml +++ b/oas_docs/output/kibana.serverless.yaml @@ -20558,6 +20558,68 @@ paths: summary: Update an agent policy tags: - Elastic Agent policies + /api/fleet/agent_policies/{agentPolicyId}/auto_upgrade_agents_status: + get: + description: 'Get auto upgrade agent status

[Required authorization] Route required privileges: fleet-agents-read.' + operationId: get-fleet-agent-policies-agentpolicyid-auto-upgrade-agents-status + parameters: + - in: path + name: agentPolicyId + required: true + schema: + type: string + responses: + '200': + content: + application/json: + schema: + additionalProperties: false + type: object + properties: + currentVersions: + items: + additionalProperties: false + type: object + properties: + agents: + type: number + failedUpgradeAgents: + type: number + version: + type: string + required: + - version + - agents + - failedUpgradeAgents + type: array + totalAgents: + type: number + required: + - currentVersions + - totalAgents + '400': + content: + application/json: + schema: + additionalProperties: false + description: Generic Error + type: object + properties: + attributes: {} + error: + type: string + errorType: + type: string + message: + type: string + statusCode: + type: number + required: + - message + - attributes + summary: Get auto upgrade agent status + tags: + - Elastic Agent policies /api/fleet/agent_policies/{agentPolicyId}/copy: post: description: 'Copy an agent policy by ID.

[Required authorization] Route required privileges: fleet-agent-policies-all.' diff --git a/oas_docs/output/kibana.yaml b/oas_docs/output/kibana.yaml index 7cbbd5afe0485..fadbd97b350e9 100644 --- a/oas_docs/output/kibana.yaml +++ b/oas_docs/output/kibana.yaml @@ -22800,6 +22800,68 @@ paths: summary: Update an agent policy tags: - Elastic Agent policies + /api/fleet/agent_policies/{agentPolicyId}/auto_upgrade_agents_status: + get: + description: 'Get auto upgrade agent status

[Required authorization] Route required privileges: fleet-agents-read.' + operationId: get-fleet-agent-policies-agentpolicyid-auto-upgrade-agents-status + parameters: + - in: path + name: agentPolicyId + required: true + schema: + type: string + responses: + '200': + content: + application/json: + schema: + additionalProperties: false + type: object + properties: + currentVersions: + items: + additionalProperties: false + type: object + properties: + agents: + type: number + failedUpgradeAgents: + type: number + version: + type: string + required: + - version + - agents + - failedUpgradeAgents + type: array + totalAgents: + type: number + required: + - currentVersions + - totalAgents + '400': + content: + application/json: + schema: + additionalProperties: false + description: Generic Error + type: object + properties: + attributes: {} + error: + type: string + errorType: + type: string + message: + type: string + statusCode: + type: number + required: + - message + - attributes + summary: Get auto upgrade agent status + tags: + - Elastic Agent policies /api/fleet/agent_policies/{agentPolicyId}/copy: post: description: 'Copy an agent policy by ID.

[Required authorization] Route required privileges: fleet-agent-policies-all.'