Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion .github/CODEOWNERS
Original file line number Diff line number Diff line change
Expand Up @@ -170,7 +170,7 @@
/x-pack/legacy/plugins/index_lifecycle_management/ @elastic/es-ui
/x-pack/legacy/plugins/index_management/ @elastic/es-ui
/x-pack/legacy/plugins/license_management/ @elastic/es-ui
/x-pack/legacy/plugins/remote_clusters/ @elastic/es-ui
/x-pack/plugins/remote_clusters/ @elastic/es-ui
/x-pack/legacy/plugins/rollup/ @elastic/es-ui
/x-pack/plugins/searchprofiler/ @elastic/es-ui
/x-pack/legacy/plugins/snapshot_restore/ @elastic/es-ui
Expand Down
2 changes: 1 addition & 1 deletion x-pack/.i18nrc.json
Original file line number Diff line number Diff line change
Expand Up @@ -27,7 +27,7 @@
"xpack.maps": "legacy/plugins/maps",
"xpack.ml": "legacy/plugins/ml",
"xpack.monitoring": "legacy/plugins/monitoring",
"xpack.remoteClusters": ["plugins/remote_clusters", "legacy/plugins/remote_clusters"],
"xpack.remoteClusters": "plugins/remote_clusters",
"xpack.reporting": ["plugins/reporting", "legacy/plugins/reporting"],
"xpack.rollupJobs": "legacy/plugins/rollup",
"xpack.searchProfiler": "plugins/searchprofiler",
Expand Down

This file was deleted.

This file was deleted.

This file was deleted.

14 changes: 0 additions & 14 deletions x-pack/legacy/plugins/remote_clusters/common/index.ts
Original file line number Diff line number Diff line change
Expand Up @@ -4,20 +4,6 @@
* you may not use this file except in compliance with the Elastic License.
*/

import { i18n } from '@kbn/i18n';
import { LICENSE_TYPE_BASIC, LicenseType } from '../../../common/constants';

export const PLUGIN = {
ID: 'remote_clusters',
// Remote Clusters are used in both CCS and CCR, and CCS is available for all licenses.
MINIMUM_LICENSE_REQUIRED: LICENSE_TYPE_BASIC as LicenseType,
getI18nName: (): string => {
return i18n.translate('xpack.remoteClusters.appName', {
defaultMessage: 'Remote Clusters',
});
},
};

export const API_BASE_PATH = '/api/remote_clusters';

export { deserializeCluster, serializeCluster } from './cluster_serialization';
14 changes: 3 additions & 11 deletions x-pack/legacy/plugins/remote_clusters/index.ts
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,6 @@
* you may not use this file except in compliance with the Elastic License.
*/

import { Legacy } from 'kibana';
import { resolve } from 'path';
import { PLUGIN } from './common';

Expand All @@ -13,18 +12,11 @@ export function remoteClusters(kibana: any) {
id: PLUGIN.ID,
configPrefix: 'xpack.remote_clusters',
publicDir: resolve(__dirname, 'public'),
// xpack_main is required for license checking.
require: ['kibana', 'elasticsearch', 'xpack_main', 'index_management'],
require: ['kibana'],
uiExports: {
styleSheetPaths: resolve(__dirname, 'public/index.scss'),
managementSections: ['plugins/remote_clusters'],
injectDefaultVars(server: Legacy.Server) {
const config = server.config();
return {
remoteClustersUiEnabled: config.get('xpack.remote_clusters.ui.enabled'),
};
},
},
// TODO: Remove once CCR has migrated to NP
config(Joi: any) {
return Joi.object({
// display menu item
Expand All @@ -41,6 +33,6 @@ export function remoteClusters(kibana: any) {
config.get('xpack.remote_clusters.enabled') && config.get('xpack.index_management.enabled')
);
},
init(server: any) {},
init() {},
});
}

This file was deleted.

39 changes: 0 additions & 39 deletions x-pack/legacy/plugins/remote_clusters/public/app/services/http.ts

This file was deleted.

3 changes: 0 additions & 3 deletions x-pack/legacy/plugins/remote_clusters/public/index.html

This file was deleted.

12 changes: 0 additions & 12 deletions x-pack/legacy/plugins/remote_clusters/public/index.js

This file was deleted.

Loading