Skip to content

Add Feature: create initial snapshot of VM after clean-up#21

Merged
sylviamoss merged 8 commits intovmware:mainfrom
0xFaul:dev-snapshot
May 17, 2021
Merged

Add Feature: create initial snapshot of VM after clean-up#21
sylviamoss merged 8 commits intovmware:mainfrom
0xFaul:dev-snapshot

Conversation

@0xFaul
Copy link
Copy Markdown
Contributor

@0xFaul 0xFaul commented May 10, 2021

  • extended drivers by CreateSnapshot method to create snapshots
  • added additional step to builders to create initial snapshot of the finished VM (after clean-up)

simply set the "snapshot_name" field inside the builder's config to create an initial snapshot (if not set, snapshot creation will be skipped)

Closes #20

@0xFaul 0xFaul requested a review from a team as a code owner May 10, 2021 12:49
@hashicorp-cla
Copy link
Copy Markdown

hashicorp-cla commented May 10, 2021

CLA assistant check
All committers have signed the CLA.

Comment on lines +37 to +40
state.Put("snapshot_created", true)
} else {
state.Put("snapshot_skipped", true)
}
Copy link
Copy Markdown

Choose a reason for hiding this comment

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

Is there any reason you are adding these information to the state? I don't see them being used somewhere else 🤔

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.

those are at the moment mainly for testing and to have the state as an internal checklist, but are not necessarily needed.

Copy link
Copy Markdown

Choose a reason for hiding this comment

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

Oh sorry, I didn't notice it was being used for testing. Sounds good!

@sylviamoss sylviamoss added the enhancement Enhancement label May 11, 2021
0xFaul and others added 2 commits May 17, 2021 09:02
Co-authored-by: Sylvia Moss <sylviamoss.m@gmail.com>
Copy link
Copy Markdown

@sylviamoss sylviamoss left a comment

Choose a reason for hiding this comment

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

This is looking good 👍🏼
It is missing only the generated docs which you get by running go generate ./...

0xFaul and others added 2 commits May 17, 2021 10:28
Co-authored-by: Sylvia Moss <sylviamoss.m@gmail.com>
@sylviamoss
Copy link
Copy Markdown

Thank you!

@sylviamoss sylviamoss merged commit ccc6c4e into vmware:main May 17, 2021
@0xFaul 0xFaul deleted the dev-snapshot branch May 17, 2021 11:47
@vmware vmware locked and limited conversation to collaborators Jun 29, 2024
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.

Labels

enhancement Enhancement

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Create initial snapshot after cleanup

3 participants