Skip to content

feat(valkey): onboard valkey - #1530

Open
SerseusWasTaken wants to merge 2 commits into
mainfrom
feat/onboard-valkey
Open

feat(valkey): onboard valkey#1530
SerseusWasTaken wants to merge 2 commits into
mainfrom
feat/onboard-valkey

Conversation

@SerseusWasTaken

Copy link
Copy Markdown
Contributor

Description

Relates to STACKITCLI-428

Checklist

  • Issue was linked above
  • Code format was applied: make fmt
  • Examples were added / adjusted (see e.g. here)
  • Docs are up-to-date: make generate-docs (will be checked by CI)
  • Unit tests got implemented or updated
  • Unit tests are passing: make test (will be checked by CI)
  • No linter issues: make lint (will be checked by CI)

Relates to STACKITCLI-428
@SerseusWasTaken
SerseusWasTaken marked this pull request as ready for review August 12, 2026 05:42
@SerseusWasTaken
SerseusWasTaken requested a review from a team as a code owner August 12, 2026 05:42
Comment thread internal/cmd/root.go
Comment thread internal/cmd/beta/valkey/instance/create/create.go Outdated
Comment thread internal/cmd/beta/valkey/instance/create/create.go Outdated

func outputResult(p *print.Printer, model *inputModel, projectLabel, instanceId string, resp *valkey.CreateInstanceResponse) error {
return p.OutputResult(model.OutputFormat, resp, func() error {
if model == nil {

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.

This check should be made before calling this function otherwise model.OutputFormat would crash if model is nil

Copy link
Copy Markdown
Contributor Author

Choose a reason for hiding this comment

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

Where would it crash? I don't think model is accessed between passing and this check

Comment thread internal/cmd/beta/valkey/plans/plans.go Outdated
Comment thread internal/cmd/valkey/plans/plans.go
Comment thread internal/cmd/valkey/plans/plans.go
@github-actions

Copy link
Copy Markdown

Merging this branch changes the coverage (1 decrease, 11 increase)

Impacted Packages Coverage Δ 🤖
github.com/stackitcloud/stackit-cli/internal/cmd 6.78% (-0.06%) 👎
github.com/stackitcloud/stackit-cli/internal/cmd/valkey 0.00% (ø)
github.com/stackitcloud/stackit-cli/internal/cmd/valkey/credentials 0.00% (ø)
github.com/stackitcloud/stackit-cli/internal/cmd/valkey/credentials/create 56.45% (+56.45%) 🌟
github.com/stackitcloud/stackit-cli/internal/cmd/valkey/credentials/delete 35.90% (+35.90%) 🌟
github.com/stackitcloud/stackit-cli/internal/cmd/valkey/credentials/describe 69.77% (+69.77%) 🌟
github.com/stackitcloud/stackit-cli/internal/cmd/valkey/credentials/list 57.14% (+57.14%) 🌟
github.com/stackitcloud/stackit-cli/internal/cmd/valkey/instance 0.00% (ø)
github.com/stackitcloud/stackit-cli/internal/cmd/valkey/instance/create 62.77% (+62.77%) 🌟
github.com/stackitcloud/stackit-cli/internal/cmd/valkey/instance/delete 25.00% (+25.00%) 🌟
github.com/stackitcloud/stackit-cli/internal/cmd/valkey/instance/describe 74.00% (+74.00%) 🌟
github.com/stackitcloud/stackit-cli/internal/cmd/valkey/instance/list 56.52% (+56.52%) 🌟
github.com/stackitcloud/stackit-cli/internal/cmd/valkey/instance/update 61.46% (+61.46%) 🌟
github.com/stackitcloud/stackit-cli/internal/cmd/valkey/plans 53.85% (+53.85%) 🌟
github.com/stackitcloud/stackit-cli/internal/pkg/config 70.32% (+0.11%) 👍
github.com/stackitcloud/stackit-cli/internal/pkg/services/valkey/client 0.00% (ø)
github.com/stackitcloud/stackit-cli/internal/pkg/services/valkey/utils 0.00% (ø)

Coverage by file

Changed files (no unit tests)

Changed File Coverage Δ Total Covered Missed 🤖
github.com/stackitcloud/stackit-cli/internal/cmd/root.go 6.78% (-0.06%) 118 (+1) 8 110 (+1) 👎
github.com/stackitcloud/stackit-cli/internal/cmd/valkey/credentials/create/create.go 56.45% (+56.45%) 62 (+62) 35 (+35) 27 (+27) 🌟
github.com/stackitcloud/stackit-cli/internal/cmd/valkey/credentials/credentials.go 0.00% (ø) 7 (+7) 0 7 (+7)
github.com/stackitcloud/stackit-cli/internal/cmd/valkey/credentials/delete/delete.go 35.90% (+35.90%) 39 (+39) 14 (+14) 25 (+25) 🌟
github.com/stackitcloud/stackit-cli/internal/cmd/valkey/credentials/describe/describe.go 69.77% (+69.77%) 43 (+43) 30 (+30) 13 (+13) 🌟
github.com/stackitcloud/stackit-cli/internal/cmd/valkey/credentials/list/list.go 57.14% (+57.14%) 49 (+49) 28 (+28) 21 (+21) 🌟
github.com/stackitcloud/stackit-cli/internal/cmd/valkey/instance/create/create.go 62.77% (+62.77%) 94 (+94) 59 (+59) 35 (+35) 🌟
github.com/stackitcloud/stackit-cli/internal/cmd/valkey/instance/delete/delete.go 25.00% (+25.00%) 40 (+40) 10 (+10) 30 (+30) 🌟
github.com/stackitcloud/stackit-cli/internal/cmd/valkey/instance/describe/describe.go 74.00% (+74.00%) 50 (+50) 37 (+37) 13 (+13) 🌟
github.com/stackitcloud/stackit-cli/internal/cmd/valkey/instance/instance.go 0.00% (ø) 8 (+8) 0 8 (+8)
github.com/stackitcloud/stackit-cli/internal/cmd/valkey/instance/list/list.go 56.52% (+56.52%) 46 (+46) 26 (+26) 20 (+20) 🌟
github.com/stackitcloud/stackit-cli/internal/cmd/valkey/instance/update/update.go 61.46% (+61.46%) 96 (+96) 59 (+59) 37 (+37) 🌟
github.com/stackitcloud/stackit-cli/internal/cmd/valkey/plans/plans.go 53.85% (+53.85%) 52 (+52) 28 (+28) 24 (+24) 🌟
github.com/stackitcloud/stackit-cli/internal/cmd/valkey/valkey.go 0.00% (ø) 6 (+6) 0 6 (+6)
github.com/stackitcloud/stackit-cli/internal/pkg/config/config.go 91.04% (+0.14%) 67 (+1) 61 (+1) 6 👍
github.com/stackitcloud/stackit-cli/internal/pkg/services/valkey/client/client.go 0.00% (ø) 1 (+1) 0 1 (+1)
github.com/stackitcloud/stackit-cli/internal/pkg/services/valkey/utils/utils.go 0.00% (ø) 32 (+32) 0 32 (+32)

Please note that the "Total", "Covered", and "Missed" counts above refer to code statements instead of lines of code. The value in brackets refers to the test coverage of that file in the old version of the code.

Changed unit test files

  • github.com/stackitcloud/stackit-cli/internal/cmd/valkey/credentials/create/create_test.go
  • github.com/stackitcloud/stackit-cli/internal/cmd/valkey/credentials/delete/delete_test.go
  • github.com/stackitcloud/stackit-cli/internal/cmd/valkey/credentials/describe/describe_test.go
  • github.com/stackitcloud/stackit-cli/internal/cmd/valkey/credentials/list/list_test.go
  • github.com/stackitcloud/stackit-cli/internal/cmd/valkey/instance/create/create_test.go
  • github.com/stackitcloud/stackit-cli/internal/cmd/valkey/instance/delete/delete_test.go
  • github.com/stackitcloud/stackit-cli/internal/cmd/valkey/instance/describe/describe_test.go
  • github.com/stackitcloud/stackit-cli/internal/cmd/valkey/instance/list/list_test.go
  • github.com/stackitcloud/stackit-cli/internal/cmd/valkey/instance/update/update_test.go
  • github.com/stackitcloud/stackit-cli/internal/cmd/valkey/plans/plans_test.go

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