Skip to content

Commit

Permalink
[8.x] [eem] disable entity discovery on plugin startup (#204536) (#20…
Browse files Browse the repository at this point in the history
…5059)

# Backport

This will backport the following commits from `main` to `8.x`:
- [[eem] disable entity discovery on plugin startup
(#204536)](#204536)

<!--- Backport version: 8.9.8 -->

### Questions ?
Please refer to the [Backport tool
documentation](https://github.com/sqren/backport)

<!--BACKPORT [{"author":{"name":"Kevin
Lacabane","email":"[email protected]"},"sourceCommit":{"committedDate":"2024-12-19T13:35:12Z","message":"[eem]
disable entity discovery on plugin startup (#204536)\n\nDisable entity
discovery on plugin startup and remove some related\nfiles.\n\nWe'll
need a follow up to cleanup endpoints.\n\n### Testing\n\n- enable entity
discovery from `main` with
`PUT\nkbn:/internal/entities/managed/enablement`, preferably in a
cluster with\ndata so you can verify that the `.entities*` indices are
also deleted\n- checkout that branch and start kibana\n- verify all v1
builtin definitions with their\ntransforms/templates/pipelines are
deleted. `.entities` indices for\nthese definitions should also be
gone\n\n---------\n\nCo-authored-by: kibanamachine
<[email protected]>","sha":"505cc0fbbb901263b3a07d2b1a2f7b310a690e18","branchLabelMapping":{"^v9.0.0$":"main","^v8.18.0$":"8.x","^v(\\d+).(\\d+).\\d+$":"$1.$2"}},"sourcePullRequest":{"labels":["release_note:skip","backport
missing","v9.0.0","backport:prev-minor","Team:obs-entities"],"number":204536,"url":"https://github.com/elastic/kibana/pull/204536","mergeCommit":{"message":"[eem]
disable entity discovery on plugin startup (#204536)\n\nDisable entity
discovery on plugin startup and remove some related\nfiles.\n\nWe'll
need a follow up to cleanup endpoints.\n\n### Testing\n\n- enable entity
discovery from `main` with
`PUT\nkbn:/internal/entities/managed/enablement`, preferably in a
cluster with\ndata so you can verify that the `.entities*` indices are
also deleted\n- checkout that branch and start kibana\n- verify all v1
builtin definitions with their\ntransforms/templates/pipelines are
deleted. `.entities` indices for\nthese definitions should also be
gone\n\n---------\n\nCo-authored-by: kibanamachine
<[email protected]>","sha":"505cc0fbbb901263b3a07d2b1a2f7b310a690e18"}},"sourceBranch":"main","suggestedTargetBranches":[],"targetPullRequestStates":[{"branch":"main","label":"v9.0.0","labelRegex":"^v9.0.0$","isSourceBranch":true,"state":"MERGED","url":"https://github.com/elastic/kibana/pull/204536","number":204536,"mergeCommit":{"message":"[eem]
disable entity discovery on plugin startup (#204536)\n\nDisable entity
discovery on plugin startup and remove some related\nfiles.\n\nWe'll
need a follow up to cleanup endpoints.\n\n### Testing\n\n- enable entity
discovery from `main` with
`PUT\nkbn:/internal/entities/managed/enablement`, preferably in a
cluster with\ndata so you can verify that the `.entities*` indices are
also deleted\n- checkout that branch and start kibana\n- verify all v1
builtin definitions with their\ntransforms/templates/pipelines are
deleted. `.entities` indices for\nthese definitions should also be
gone\n\n---------\n\nCo-authored-by: kibanamachine
<[email protected]>","sha":"505cc0fbbb901263b3a07d2b1a2f7b310a690e18"}}]}]
BACKPORT-->
  • Loading branch information
klacabane authored Dec 23, 2024
1 parent 292f3c2 commit d4bab76
Show file tree
Hide file tree
Showing 41 changed files with 55 additions and 1,351 deletions.

This file was deleted.

This file was deleted.

Original file line number Diff line number Diff line change
Expand Up @@ -6,17 +6,6 @@
*/

import { EntityDefinition } from '@kbn/entities-schema';
import { builtInServicesFromEcsEntityDefinition } from './services_from_ecs_data';
import { builtInHostsFromEcsEntityDefinition } from './hosts_from_ecs_data';
import { builtInContainersFromEcsEntityDefinition } from './containers_from_ecs_data';

import * as kubernetes from './kubernetes';

export { BUILT_IN_ID_PREFIX } from './constants';

export const builtInDefinitions: EntityDefinition[] = [
builtInServicesFromEcsEntityDefinition,
builtInHostsFromEcsEntityDefinition,
builtInContainersFromEcsEntityDefinition,
...Object.values(kubernetes),
];
export const builtInDefinitions: EntityDefinition[] = [];

This file was deleted.

This file was deleted.

This file was deleted.

This file was deleted.

This file was deleted.

This file was deleted.

This file was deleted.

This file was deleted.

Loading

0 comments on commit d4bab76

Please sign in to comment.