Skip to content

Add resource ec_snapshot_repository #613

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

Merged
merged 1 commit into from
Apr 19, 2023

Conversation

pascal-hofmann
Copy link
Contributor

@pascal-hofmann pascal-hofmann commented Mar 31, 2023

Description

This adds a new resource ec_snapshot_repository for usage with ECE.

Related Issues

#608

Motivation and Context

There is currently no way to create cluster level snapshot repositories in ECE via terraform.

How Has This Been Tested?

  • There are extensive unit tests with high coverage.
  • There are no acceptance tests, as this functionality is not available on ESS.
  • I tested this against our own ECE dev instance manually.

Bildschirm­foto 2023-03-31 um 14 55 43

Types of Changes

  • Bug fix (non-breaking change which fixes an issue)
  • New feature (non-breaking change which adds functionality)
  • Refactoring (improves code quality but has no user-facing effect)
  • Breaking change (fix or feature that would cause existing functionality to change)
  • Documentation

Readiness Checklist

  • My code follows the code style of this project
  • My change requires a change to the documentation
  • I have updated the documentation accordingly
  • I have added tests to cover my changes
  • All new and existing tests passed
    → I did not run acceptance tests, but there are no changes that effect any of the existing functionality.
    → I think the failing unit tests are related to Infinite ec_deployment.elasticsearch.config drift when using ec 0.6.0 and terraform 1.4.0 #599 and are not caused by the changes in this PR.

@elasticmachine
Copy link
Collaborator

Since this is a community submitted pull request, a Jenkins build has not been kicked off automatically. Can an Elastic organization member please verify the contents of this patch and then kick off a build manually?

@pascal-hofmann pascal-hofmann force-pushed the ec_snapshot_repository branch from 20bc1c2 to f33684d Compare March 31, 2023 12:54
@pascal-hofmann pascal-hofmann marked this pull request as ready for review March 31, 2023 12:59
@pascal-hofmann pascal-hofmann requested review from alaudazzi and a team as code owners March 31, 2023 12:59
@pascal-hofmann
Copy link
Contributor Author

@tobio, @dimuon: Is there anything I can help with to get this merged?

Copy link
Member

@tobio tobio left a comment

Choose a reason for hiding this comment

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

Code looks good, I think we should cover the generic repo type at the same time though.

@pascal-hofmann pascal-hofmann force-pushed the ec_snapshot_repository branch 2 times, most recently from d80dd58 to bc6521f Compare April 17, 2023 05:44
@pascal-hofmann pascal-hofmann requested a review from tobio April 17, 2023 08:05
Copy link
Member

@tobio tobio left a comment

Choose a reason for hiding this comment

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

LGTM. Manually tested this against a GCS snapshot repo 🎉

Can we add an entry to .changelog here as the final thing please.

This updates elastic/cloud-sdk-go to v1.12.1 because of
`snaprepoapi.S3Config.PathStyleAccess` which was added there.
@pascal-hofmann pascal-hofmann force-pushed the ec_snapshot_repository branch from bc6521f to 9584cf2 Compare April 19, 2023 07:37
@pascal-hofmann
Copy link
Contributor Author

@tobio I've added an entry to .changelog and rebased on master.

@tobio tobio merged commit a3bdb3c into elastic:master Apr 19, 2023
@pascal-hofmann pascal-hofmann deleted the ec_snapshot_repository branch April 19, 2023 07:52
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.

3 participants