-
-
Notifications
You must be signed in to change notification settings - Fork 121
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
feat(vm): add support for "args" flag for VM #205
Conversation
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.
Hey @kaje783 👋🏻 Thanks for the PR!
Overall it looks great, but could you pls. address that linter warning about the duplicated struct field? I don't have a strong opinion about the name, either existing KVMArguments
or new Args
, but there should be only one :)
You can ignore other linter errors for now, I'm going to address most of them in #204
Thanks!
@@ -229,6 +229,7 @@ type VirtualEnvironmentVMCreateRequestBody struct { | |||
ACPI *CustomBool `json:"acpi,omitempty" url:"acpi,omitempty,int"` | |||
Agent *CustomAgent `json:"agent,omitempty" url:"agent,omitempty"` | |||
AllowReboot *CustomBool `json:"reboot,omitempty" url:"reboot,omitempty,int"` | |||
Args *string `json:"args,omitempty" url:"args,omitempty"` |
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.
See the linter error below about KVMArguments
-- that's actually a good catch, i wouldn't notice that 😅
I think we can totally reuse this field instead of the new one, but I leave it to you which one to keep.
Hey @bpg , i move from I had to change the type of As an alternative I created a second branch which takes a list as input. But there is a little problem there. For splitting I have to take " -" and add at the end a "-", for this problem there is surely a better solution: |
also update doc to match description from the official PVE documentation.
Great, thanks! |
Community Note
Relates OR Closes #0000
Example to deploy OpenSuse MicroOS and setup it with Ingition
enable
snippets
forlocal
storageterraform template:
Login with
root
andtesttest