-
-
Notifications
You must be signed in to change notification settings - Fork 143
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
Disable default values? #566
Comments
Hi @miberecz! 👋🏼 Thank you for the report! The use case you've described appears to be more of a bug to me. When cloning a disk, the provider should replicate it from the template as-is if no disk is defined in the target. |
Hm... based on the comment from muhlba91/pulumi-proxmoxve#129 this could be a Pulumi-specific behaviour. But anyway, i'm going to run some tests. The disk management in the provider is somewhat finicky. |
Noticed that while working on #606. Is there any easy way to log payloads of all PVE API calls ? It would help with cleaning that up. Disk It seems that that any change to any disk in terraform configuration will cause Btw. it seems that almost everything should be |
@otopetrik |
Thanks @bpg, it works! |
related: #840 (review) |
Have similar issues with other parameters. Scenario:
The provider applies defaults to It'd be very helpful to have an option like: "just don't change any parameters in the cloned template, if they are not specified in the terraform resource". |
I hear you @konstantin-kornienko & others 😞 I know this is confusing and leads to weird behaviour in cloning, stumbled upon this few times myself. If you comment to this ticket with the list of attributes that bothers you most, I could probably look at them in the next few weeks. |
@bpg, thanks in advance! for me personally it's I can create a dedicated issue for that, if you like. |
I'm making some progress in #1219. The |
Well, it didn't go well. Can't make all clone and non-clone update cases work properly 😞 |
More of a question then a feature request:
Would it be possible to NOT use the default values defined in the Provider?
We are using this Provider with the Pulumi wrapper and there we define our defaults to fit the environment we use, but not all parameters. Those cases are getting the values from the TF provider.
We would like to avoid this behavior if possible.
For example:
Lets have a VM template we want to clone. The template already has some disks. If I do not define the disks, the default size would apply (8G) which is lower then what's already in the template, thus Proxmox fails that it cannot shrink a disk.
This can be done with the GUI: one can just clone a template VM with only providing a name for the new VM.
The text was updated successfully, but these errors were encountered: