You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
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)
Testing-Instructions
Create a volume that will be used for snapshot testing.
stackit volume create
--availability-zone eu01-1
--size 10
--name "snapshot-test-vol"
--labels purpose=snapshot-testing
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.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Description
Onboarding the snapshot API https://docs.api.stackit.cloud/documentation/iaas/version/v1#tag/Snapshots to manage the snapshot resources via the cli.
Checklist
make fmtmake generate-docs(will be checked by CI)make test(will be checked by CI)make lint(will be checked by CI)Testing-Instructions
Create a volume that will be used for snapshot testing.
stackit volume create
--availability-zone eu01-1
--size 10
--name "snapshot-test-vol"
--labels purpose=snapshot-testing
Create a snapshot of the volume above
volume-idflagstackit volume snapshot create
--volume-id $VOLUME_ID
--name "test-snap-1"
--labels purpose=testing,test-type=minimal
List snapshot(s)
stackit volume snapshot list --limit 3
Describe snapshot
stackit volume snapshot describe $SNAPSHOT_ID
Update snapshot
stackit volume snapshot update $SNAPSHOT_ID
--name "test-snap-1-updated"
--labels purpose=testing-updated
Verify update
stackit volume snapshot describe $SNAPSHOT_ID
Delete the snapshot
stackit volume snapshot delete $SNAPSHOT_ID
Delete the volume
stackit volume delete $VOLUME_ID