rode / grafeas-elasticsearch

An implementation of the Grafeas storage backend based on Elasticsearch
Apache License 2.0
12 stars 5 forks source link

Reference aliases instead of index names #59

Closed alexashley closed 3 years ago

alexashley commented 3 years ago

This is part 1 of 2 in the process of breaking up #58.

In this PR, we add the aliases to index creation and update the queries to run against the aliases instead of the index names.

Currently there's not a step here to add aliases to existing indices, but as part of the migrations, we can cutover to the aliases; however that means that we would't want to cut a release without the other half of #58, otherwise existing instances will appear to have no data.