-
Notifications
You must be signed in to change notification settings - Fork 41
Add support for linked clones #478
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
TestsPlease note that running unit and e2e tests requires manual approval from a team member. e2e testsWe use labels to control which e2e tests contexts are run:
ℹ️ Ask a team member to add the requested labels if you don't have enough permissions. |
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.
thanks for your contribution.
Have you tested the functionality of the provider while setting linked clones?
|
||
Expect(k8sClient.Create(context.Background(), dm)).Should(MatchError(ContainSubstring("Must set full=true when specifying storage"))) | ||
}) | ||
|
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.
Can you add a test case for a linked clone?
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.
Sure, added
Yes, tested both using linked clones as well as full clones |
Please Rebase and we are good to go. |
Previous rule required 'full' to be always set to 'true' and did not validate for 'storage' being set. Signed-off-by: Lukas Kirylak <[email protected]>
Moving validation rules to VirtualMachineCloneSpec also adds them to other resources where it is embedded that users interact with directly. Signed-off-by: Lukas Kirylak <[email protected]>
Having 'format' default to 'raw' prevents making linked clones on storages that support it. Signed-off-by: Lukas Kirylak <[email protected]>
Signed-off-by: Lukas Kirylak <[email protected]>
Rebased 👍 |
|
Issue #, if available:
#174
Description of changes:
ProxmoxMachineSpec
validation rulesfull
to be always set totrue
and did not validate forstorage
being setProxmoxMachine
toVirtualMachineCloneSpec
VirtualMachineCloneSpec
also adds them to other resources where it is embedded that users interact with directlyVirtualMachineCloneSpec.Format
format
default toraw
prevents making linked clones on storages that support itTesting performed:
make test