-
Notifications
You must be signed in to change notification settings - Fork 48
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
✨ Persist VM's kubernetes and bootstrap data in ExtraConfig #213
Conversation
c5f9fa1
to
0bc8e24
Compare
0bc8e24
to
caed9c2
Compare
Can you also include a decoded and uncompressed boostrap ConfigMap/Secret resource in the Testing Done section like you have for a VM? |
@akutz , FYI, your investigation in the design doc indicated that using gzip with a level of 6 is the optimal compression level. However, I am not enforcing that here since our discovery that the GuestInfo size limits are only applicable for messages originating in the guest. Let me know if you disagree. |
controllers/virtualmachine/v1alpha1/virtualmachine_controller.go
Outdated
Show resolved
Hide resolved
controllers/virtualmachine/v1alpha1/virtualmachine_controller_unit_test.go
Show resolved
Hide resolved
controllers/virtualmachine/v1alpha1/virtualmachine_controller_unit_test.go
Outdated
Show resolved
Hide resolved
889b3de
to
364c5e3
Compare
364c5e3
to
ac55ce9
Compare
controllers/virtualmachine/v1alpha1/virtualmachine_controller_unit_test.go
Show resolved
Hide resolved
controllers/virtualmachine/v1alpha1/virtualmachine_controller_unit_test.go
Outdated
Show resolved
Hide resolved
c9cb4b5
to
7088eaa
Compare
51c799c
to
7cef995
Compare
Minimum allowed line rate is |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
LGTM.
…mware-tanzu#213)" This reverts commit e552bc9.
What does this PR do, and why is it needed?
This PR updates the VirtualMachine Controller to store the VM's Kubernetes and bootstrap data YAML (compressed using gzip and base64-encoded) into the VM's ExtraConfig, if the corresponding FSS is enabled. This enables the VM to be restored by recreating the YAML from this backup data.
Are there any special notes for your reviewer:
The v1a2 VM Controller code has been updated with the new
BackupVirtualMachine()
function. However, the implementation of that function has not been added because the v1a2 VM provider code does not exist yet.Please add a release note if necessary:
Testing Done
Decoding "vmservice.virtualmachine.bootstrapdata"
Decoding "vmservice.virtualmachine.kubedata"