You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Adds a cli flag for the iaas ( _create server_ ) API param:
`"agent": {"provisioned": true}`
ref STACKITRCO-186
---
Tests:
* ran `make fmt`, `make generate-docs`
* unit tests
```
[~/stackit-cli] go test internal/cmd/server/create/*
ok command-line-arguments 0.006s
[~/stackit-cli]
[~/stackit-cli] make test
>> Running tests for the CLI application
...
ok github.com/stackitcloud/stackit-cli/internal/cmd/server/create 0.006s coverage: 69.7% of statements
...
```
* ran stackit-cli with and without specifying the new flag, all seemed OK.
Signed-off-by: Adrian Nackov <adrian.nackov@digits.schwarz>
cmd.Flags().Var(flags.EnumFlag(false, "INHERIT", agentProvisioningPolicyOptions...), agentProvisioningPolicyFlag, fmt.Sprintf("Whether to provision an agent on server creation, one of %q", agentProvisioningPolicyOptions))
cmd.Flags().String(machineTypeFlag, "", "Name of the type of the machine for the server. Possible values are documented in https://docs.stackit.cloud/products/compute-engine/server/basics/machine-types/")
167
175
cmd.Flags().String(affinityGroupFlag, "", "The affinity group the server is assigned to")
0 commit comments