elastic / kibana

Your window into the Elastic Stack
https://www.elastic.co/products/kibana
Other
19.47k stars 8.04k forks source link

[ILM] Remove hard-coded snapshot_restore URLs #109834

Open alisonelizabeth opened 2 years ago

alisonelizabeth commented 2 years ago

In https://github.com/elastic/kibana/pull/109543, a locator to the snapshot_restore plugin was added. Once this change is forward-ported to master, we should update ILM to consume this instead of hard-coding URLs to Snapshot and Restore.

elasticmachine commented 2 years ago

Pinging @elastic/kibana-stack-management (Team:Stack Management)

sebelga commented 2 years ago

A note to not forget that the snapshot_restore ui can be disabled with the ui.enabled setting and ILM and other consumers of the SNAPSHOT_RESTORE_LOCATOR locator should handle the case when the url returned is undefined.

const url = services.share.url.locators.get('SNAPSHOT_RESTORE_LOCATOR'); // can be undefined