# ESRestore depends on both ESCluster and ESSnapshot. # Creating `esrestore/kustomize-restore` will restore the `kuostmize` index in the `kustomize-snapshot` snapshot to a new index named `kusotmize-restore`. # Deleting `esrestore/kustomize-restore` will not delete the restored index. # Deleting `esrestore/kustomize-restore` should happen before deleting `essnapshot/kustomize-snapshot`. # After the restore is complete, if the `kusotmize-restore` index is deleted manually, the ESRestore object will NOT restore the `kustomize` index to it again. # The correct way of using ESRestore is: create a ESRestore object to restore the index; delete the ESRestore object after the restore is complete. apiVersion: elasticsearch.cloud.google.com/v1alpha1 kind: ESRestore metadata: name: kustomize-restore spec: include_global_state: true ignore_unavailable: true rename_pattern: kustomize rename_replacement: kustomize-restore essnapshot: name: kustomize-snapshot escluster: name: esbasic