opensearch-k8s-operator icon indicating copy to clipboard operation
opensearch-k8s-operator copied to clipboard

Support managing snapshot policies

Open swoehrl-mw opened this issue 1 year ago • 4 comments

Discussed in https://github.com/opensearch-project/opensearch-k8s-operator/discussions/796

The operator already supports managing snapshot repositories. A step further would be to add a custom resource and reconciler logic (similar to ISMPolicies) to also manage snapshot policies via the operator.

swoehrl-mw avatar May 07 '24 12:05 swoehrl-mw

[Triage] Thanks @swoehrl-mw so the idea is to have a CRD to configure a snapshot policy ? @bbarani

prudhvigodithi avatar May 13 '24 16:05 prudhvigodithi

@prudhvigodithi

so the idea is to have a CRD to configure a snapshot policy ?

Exactly. We can introduce a new CRD for that and add a reconciler to the operator to handle it.

swoehrl-mw avatar May 14 '24 07:05 swoehrl-mw

Wouldn't creating a ISMPolcy with a snapshot: https://opensearch.org/docs/latest/im-plugin/ism/policies/#snapshot archieve the same?

cthtrifork avatar Aug 23 '24 12:08 cthtrifork

Hmm. What opensearch needs is a way to document the api in a systemic way using openAPI/swagger style. That would simplify the usage of the opensearch api a lot for future operator developement. (That is atleast the path elastic took)

opensearch needs an api like this: https://www.elastic.co/docs/api/doc/kibana/v8

This would also make sure that the api- documentation is automatically generated and also up-to-date. I can't believe we don't have something like this yet..

AdaptiveStep avatar Oct 03 '24 11:10 AdaptiveStep