Skip to content

feat(compute): add file field support for setup.kv_stores bulk import#1784

Merged
anthony-gomez-fastly merged 2 commits into
mainfrom
CDTOOL-713-setup.kvstore-file-support
May 11, 2026
Merged

feat(compute): add file field support for setup.kv_stores bulk import#1784
anthony-gomez-fastly merged 2 commits into
mainfrom
CDTOOL-713-setup.kvstore-file-support

Conversation

@anthony-gomez-fastly
Copy link
Copy Markdown
Member

Change summary

Add support for a 'file' field in [setup.kv_stores] configuration to enable bulk loading of KV Store items from a JSON file during deploy. This provides consistency with the [local.kv_stores] file-based configuration format.

Users can now specify either individual items or load all key-value pairs from a JSON file:

[setup.kv_stores.my_store]
file = "kv_data.json"

The file field and items field are mutually exclusive. JSON files should contain a single object where keys are KV Store keys and values are either strings or objects (which are marshaled to JSON).

All Submissions:

  • Have you followed the guidelines in our Contributing document?
  • Have you checked to ensure there aren't other open Pull Requests for the same update/change?

New Feature Submissions:

  • Does your submission pass tests?

Changes to Core Features:

  • Have you written new tests for your core changes, as applicable?
  • Have you successfully run tests with your changes locally?

Add support for a 'file' field in [setup.kv_stores] configuration to
enable bulk loading of KV Store items from a JSON file during deploy.
This provides consistency with the [local.kv_stores] file-based
configuration format.

Users can now specify either individual items or load all key-value
pairs from a JSON file:

  [setup.kv_stores.my_store]
  file = "kv_data.json"

The file field and items field are mutually exclusive. JSON files
should contain a single object where keys are KV Store keys and
values are either strings or objects (which are marshaled to JSON).
@anthony-gomez-fastly anthony-gomez-fastly requested a review from a team as a code owner May 8, 2026 19:40
Copy link
Copy Markdown
Member

@rcaril rcaril left a comment

Choose a reason for hiding this comment

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

LGTM!

@anthony-gomez-fastly anthony-gomez-fastly enabled auto-merge (squash) May 11, 2026 14:05
@anthony-gomez-fastly anthony-gomez-fastly merged commit 306eeed into main May 11, 2026
13 checks passed
@anthony-gomez-fastly anthony-gomez-fastly deleted the CDTOOL-713-setup.kvstore-file-support branch May 11, 2026 14:15
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