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鈥檒l occasionally send you account related emails.

Already on GitHub? Sign in to your account

Add support for specifying location when creating KV stores #517

Merged

Conversation

hrmsk66
Copy link
Contributor

@hrmsk66 hrmsk66 commented Apr 16, 2024

馃憢 This PR adds the ability to specify the location when creating a new KV store using the API. I would like terraform-provider-fastly to support specifying the location for KV stores, and this change is a preparation for that.

Changes made:

  • Added a new Location field to the CreateKVStoreInput struct.
  • Updated the CreateKVStore method to include the location parameter in the API request if it is provided in the input struct.
  • Added a new test TestClient_CreateKVStoresWithLocations to verify that KV stores can be created with different locations.

@Integralist
Copy link
Collaborator

@hrmsk66 Thanks for opening this PR. Would be good to also get a PR opened for the CLI 馃檪

@Integralist Integralist added the enhancement New feature or request label Apr 16, 2024
Copy link
Collaborator

@Integralist Integralist left a comment

Choose a reason for hiding this comment

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

LGTM but with one minor suggested edit.

fastly/kv_store.go Outdated Show resolved Hide resolved
Co-authored-by: Mark McDonnell <Integralist@users.noreply.github.com>
@Integralist Integralist merged commit 241ad0a into fastly:main Apr 16, 2024
2 checks passed
@hrmsk66 hrmsk66 deleted the hrmsk66/add-location-to-create-kv-store branch April 16, 2024 15:29
@Integralist
Copy link
Collaborator

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

2 participants