-
Notifications
You must be signed in to change notification settings - Fork 8.3k
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
[Ingest Manager] Rename agent/package config(s) to agent/package poli…
…cy(ies) (#74914) * Initial pass at updating client routes, variables names, code comments, and UI copy * Adjust server routes and param names, more var names and i18n fixes * Fix test * More var renaming * Rest of server-side var renaming * Rest of client side var renaming * Rename agent SO attributes and add migrations * Remove agent prefix from policy fields * Rename agent policy SO attributes and add migrations * Rename enrollment api key SO attributes and add migrations * Rename package policy SO attributes and add migrations * Rename agent event SO attributes and add migrations * Rename subtype CONFIG to POLICY (I don't think this string is ever sent by agent, though) * Update snapshot * Remove unnecessary cloning in migrations * Fix migration typos * Update naming in tests and es archiver data * Rename file names in /common * Rename /server files * Rename /public files * Rename test file names * Rename missed files * Revert "Rename subtype CONFIG to POLICY (I don't think this string is ever sent by agent, though)" This reverts commit 3c91e01. * Add migration version to updated es archiver data to fix tests
- Loading branch information
Showing
249 changed files
with
4,845 additions
and
4,720 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
20 changes: 0 additions & 20 deletions
20
x-pack/plugins/ingest_manager/common/constants/agent_config.ts
This file was deleted.
Oops, something went wrong.
20 changes: 20 additions & 0 deletions
20
x-pack/plugins/ingest_manager/common/constants/agent_policy.ts
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,20 @@ | ||
/* | ||
* Copyright Elasticsearch B.V. and/or licensed to Elasticsearch B.V. under one | ||
* or more contributor license agreements. Licensed under the Elastic License; | ||
* you may not use this file except in compliance with the Elastic License. | ||
*/ | ||
import { AgentPolicyStatus, DefaultPackages } from '../types'; | ||
|
||
export const AGENT_POLICY_SAVED_OBJECT_TYPE = 'ingest-agent-policies'; | ||
|
||
export const DEFAULT_AGENT_POLICY = { | ||
name: 'Default policy', | ||
namespace: 'default', | ||
description: 'Default agent policy created by Kibana', | ||
status: AgentPolicyStatus.Active, | ||
package_policies: [], | ||
is_default: true, | ||
monitoring_enabled: ['logs', 'metrics'] as Array<'logs' | 'metrics'>, | ||
}; | ||
|
||
export const DEFAULT_AGENT_POLICIES_PACKAGES = [DefaultPackages.system]; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.