Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Enable snapshot repo registration and fix cdk_vars #162

Merged
merged 1 commit into from
Apr 19, 2024

Conversation

gaiksaya
Copy link
Member

@gaiksaya gaiksaya commented Apr 19, 2024

Description

This PR adds an additional job in the workflow to register a snapshot repository within the cluster with versionX as base path.
Also fixes the cdk_vars typo due to which the GH output was not being set
Adds -f flag to the curl command to fail fast

Issues Resolved

#132

By submitting this pull request, I confirm that my contribution is made under the terms of the Apache 2.0 license.
For more information on following Developer Certificate of Origin and signing off your commits, please check here.

Comment on lines +151 to +157
# - name: Restore altering configs
# run: |
# curl -XPOST "https://${{needs.validate-and-deploy.outputs.ENDPOINT}}:8443/_snapshot/snapshots-repo/<replace_with_snapshot_id>/_restore" -H 'Content-Type: application/json' -d'
# {
# "indices": ".opendistro-alerting-config,.opensearch-notifications-config",
# "ignore_unavailable": false,
# }' -u ${{ secrets.OPENSEARCH_USER }}:${{ secrets.OPENSEARCH_PASSWORD }} --insecure
Copy link
Member Author

@gaiksaya gaiksaya Apr 19, 2024

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

To be enabled after snapshot registration is successful and we have a snapshot to register that contains the mentioned indices

@gaiksaya gaiksaya merged commit a567bf5 into opensearch-project:main Apr 19, 2024
3 checks passed
@gaiksaya gaiksaya deleted the fix-vars branch April 19, 2024 18:35
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants