-
Notifications
You must be signed in to change notification settings - Fork 29
feat(cli): onboard iaas snapshot api #774
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Conversation
|
Please check failing CI pipeline |
72de161 to
1f38eb0
Compare
b1941e2 to
24be571
Compare
@rubenhoenle |
Merging this branch changes the coverage (2 decrease, 5 increase)
Coverage by fileChanged files (no unit tests)
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
|
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