Skip to content

feat(valkey): support version and persistence in apply - #799

Merged
thokra-nav merged 1 commit into
mainfrom
vk_version_persistence
Oct 12, 2026
Merged

thokra-nav merged 1 commit into
mainfrom
vk_version_persistence

Conversation

@thokra-nav

Copy link
Copy Markdown
Contributor

Convert manifest versions to GraphQL enums and forward persistence settings. Omit empty maxMemoryPolicy values from create and update requests.

@thokra-nav
thokra-nav requested a balanced review from Copilot October 12, 2026 13:16
@github-actions

github-actions Bot commented Oct 12, 2026 •

Copy link
Copy Markdown
Contributor

📝 Changelog preview

Below is a preview of the Changelog that will be added to the next release. Only commit messages that follow the Conventional Commits specification will be included in the Changelog.

v6.5.0 - 2026-10-12

Full Changelog: v6.4.0...v6.5.0

🚀 Features

  • (valkey) Support version and persistence in apply (e204fb9)

Copilot AI left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

🟡 Changes recommended

An unconditional debug dump pollutes CLI output during every Valkey apply.

1 open finding
What changed in this PR

Adds Valkey version and persistence support to native apply manifests while preserving omitted optional fields.

Changes:

  • Converts manifest versions into GraphQL enum values.
  • Forwards persistence and conditionally omits optional mutation fields.
  • Adds validation, mutation, conversion tests, and documentation.
File Description
internal/​valkey/​valkey.go Forwards version, persistence, and optional policy fields.
internal/​valkey/​valkey_test.go Tests mutation payload serialization.
internal/​naisapi/​gql/​generated.go Makes optional input fields omittable.
internal/​apply/​validate_test.go Tests version and persistence validation.
internal/​apply/​resource/​valkey.go Converts manifest fields into API values.
internal/​apply/​resource/​valkey_test.go Tests manifest-to-API conversion.
internal/​apply/​resource/​parse_test.go Updates persistence parsing expectations.
internal/​apply/​README.md Documents the supported manifest fields.

🧠 Review effort: Balanced


💡 Add a code-review agent skill or configure MCP servers for context-aware, tailored reviews. Learn more in the docs.

Comment thread internal/apply/resource/valkey.go Outdated
Convert manifest versions to GraphQL enums and forward persistence settings. Omit empty maxMemoryPolicy values from create and update requests.

Copilot AI left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

🟢 Approval recommended

The implementation consistently forwards optional settings, preserves omission semantics, and includes focused validation and serialization tests.

0 open findings

1 resolved since last review

🧠 Review effort: Balanced

@thokra-nav
thokra-nav marked this pull request as ready for review October 12, 2026 13:26
@thokra-nav
thokra-nav merged commit c887ff2 into main Oct 12, 2026
23 checks passed
@thokra-nav
thokra-nav deleted the vk_version_persistence branch October 12, 2026 13:28
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