Add ILM privileges (#27461)

This commit adds the `manage_ilm`, `read_ilm` cluster
privileges, and the `manage_ilm` index privilege.

these were introduced into ES by:
https://github.com/elastic/elasticsearch/pull/36493
This commit is contained in:
Tal Levy 2018-12-20 08:53:46 -08:00 committed by Tal Levy
parent 25ce65ed52
commit c7dacec434
4 changed files with 18 additions and 0 deletions

View file

@ -19,6 +19,8 @@ const clusterPrivileges = [
'monitor_watcher', 'monitor_watcher',
'read_ccr', 'read_ccr',
'manage_ccr', 'manage_ccr',
'manage_ilm',
'read_ilm',
]; ];
const indexPrivileges = [ const indexPrivileges = [
'all', 'all',
@ -34,6 +36,7 @@ const indexPrivileges = [
'view_index_metadata', 'view_index_metadata',
'read_cross_cluster', 'read_cross_cluster',
'manage_follow_index', 'manage_follow_index',
'manage_ilm',
]; ];
export function getClusterPrivileges() { export function getClusterPrivileges() {

View file

@ -23,6 +23,8 @@ module.constant('shieldPrivileges', {
'monitor_watcher', 'monitor_watcher',
'read_ccr', 'read_ccr',
'manage_ccr', 'manage_ccr',
'manage_ilm',
'read_ilm',
], ],
indices: [ indices: [
'all', 'all',
@ -38,6 +40,7 @@ module.constant('shieldPrivileges', {
'view_index_metadata', 'view_index_metadata',
'read_cross_cluster', 'read_cross_cluster',
'manage_follow_index', 'manage_follow_index',
'manage_ilm',
], ],
applications: [] applications: []
}); });

View file

@ -79,6 +79,14 @@ exports[`it renders without crashing 1`] = `
"isGroupLabelOption": false, "isGroupLabelOption": false,
"label": "manage_ccr", "label": "manage_ccr",
}, },
Object {
"isGroupLabelOption": false,
"label": "manage_ilm",
},
Object {
"isGroupLabelOption": false,
"label": "read_ilm",
},
] ]
} }
selectedOptions={Array []} selectedOptions={Array []}

View file

@ -138,6 +138,10 @@ exports[`it renders without crashing 1`] = `
"isGroupLabelOption": false, "isGroupLabelOption": false,
"label": "manage_follow_index", "label": "manage_follow_index",
}, },
Object {
"isGroupLabelOption": false,
"label": "manage_ilm",
},
] ]
} }
selectedOptions={Array []} selectedOptions={Array []}