| FazBrowse GitHub Viewer | Trending | | Home |
| Tools: [Download Repo ZIP] [Original HTTPS Page] |
Aiven reports what an instance is actually running, so it outranks the CR, which only records what was asked for. An unknown version previously became `V2` by default, so the API asserted a version nobody chose and the update path could validate an upgrade against that guess. `V1` is no longer offered by Aiven for OpenSearch. BREAKING CHANGE: `version` is now required on `createValkey` and `updateValkey`. `V1` is removed from `OpenSearchMajorVersion`. Closes: nais/system#539
|
@thokra-nav Sorry, du kan ignorere/vente til neste uke og når copilot har gått igjennom. |
Sorry, something went wrong.
There was a problem hiding this comment.
Exposes authoritative Aiven versions for Valkey and OpenSearch and validates upgrades against running versions.
Changes:
Copilot reviewed 22 out of 24 changed files in this pull request and generated 5 comments.
Show a summary per file| File | Description |
|---|---|
| internal/thirdparty/aiven/versionloader.go | Adds shared version loader. |
| internal/thirdparty/aiven/fake.go | Adds fake version metadata. |
| internal/thirdparty/aiven/dataloader.go | Registers shared loader. |
| internal/persistence/valkey/queries.go | Persists and updates versions. |
| internal/persistence/valkey/models.go | Adds version models and validation. |
| internal/persistence/opensearch/queries.go | Uses Aiven versions. |
| internal/persistence/opensearch/models.go | Removes V1 support. |
| internal/persistence/opensearch/dataloader.go | Removes domain-specific loader. |
| internal/graph/valkey.resolvers.go | Resolves Valkey versions. |
| internal/graph/schema/valkey.graphqls | Exposes version API. |
| internal/graph/schema/opensearch.graphqls | Removes V1 enum value. |
| internal/graph/gengql/valkey.generated.go | Updates generated Valkey GraphQL code. |
| internal/graph/gengql/root_.generated.go | Updates generated schema code. |
| internal/cmd/api/http.go | Initializes the shared loader. |
| integration_tests/valkeyversion.lua | Tests version queries. |
| integration_tests/valkey_crud.lua | Updates version mutation tests. |
| integration_tests/opensearchversion.lua | Updates reported version expectations. |
| integration_tests/opensearch_version_defects.lua | Tests version-source edge cases. |
| integration_tests/opensearch_crud.lua | Updates supported-version tests. |
| integration_tests/k8s_resources/opensearch_version/dev/myteam/opensearch-myteam-nometa.yaml | Adds CR-fallback fixture. |
| integration_tests/k8s_resources/opensearch_version/dev/myteam/opensearch-myteam-nocrd.yaml | Adds unknown-version fixture. |
| integration_tests/activitylog_filter.lua | Supplies required Valkey version. |
| flake.nix | Updates Go and Prettier configuration. |
| flake.lock | Updates pinned nixpkgs. |
internal/graph/schema/valkey.graphqls:69
enum ValkeyMajorVersion {
internal/graph/schema/valkey.graphqls:66
"The desired major version of the Valkey instance." desiredMajor: ValkeyMajorVersion!
💡 Add a code-review agent skill or configure MCP servers for context-aware, tailored reviews. Learn more in the docs.
Sorry, something went wrong.
| if oldMajor == input.Version { | ||
| return changes, nil |
| switch { | ||
| case aivenErr == nil: | ||
| oldVersion = *actual |
|
|
||
| if major == "" { | ||
| major = OpenSearchMajorVersionV2 | ||
| major, err := OpenSearchMajorVersionFromAivenString(*actual) |
| total: Int! | ||
| } | ||
|
|
||
| type ValkeyVersion { |
| newVersionNotInNixpkgs = -1 == prev.lib.compareVersions nixpkgsVersion version; | ||
| in | ||
| { | ||
| go = if newVersionNotInNixpkgs then newerGoVersion else prev.go; | ||
| buildGoModule = prev.buildGoModule.override { go = final.go; }; | ||
| go_latest = if newVersionNotInNixpkgs then newerGoVersion else prev.go_latest; | ||
| buildGoModule = prev.buildGoModule.override { go = final.go_latest; }; |
| Back | FazBrowse Home | New Git URL |
Aiven reports what an instance is actually running, so it outranks the CR, which only records what was asked for. An unknown version previously became V2 by default, so the API asserted a version nobody chose and the update path could validate an upgrade against that guess. V1 is no longer offered by Aiven for OpenSearch.
BREAKING CHANGE: version is now required on createValkey and updateValkey. V1 is removed from OpenSearchMajorVersion.
Closes: https://github.com/nais/system/pull/539