From 2c1235f85545c3b04e841efb1f3beac7566abd44 Mon Sep 17 00:00:00 2001 From: Lee Yarwood Date: Mon, 25 Mar 2024 14:20:22 +0000 Subject: [PATCH] instancetype: Add basic expand-spec docs Adds missing expand-spec documentation for both the subresource API and virtctl command. Signed-off-by: Lee Yarwood --- docs/user_workloads/instancetypes.md | 202 +++++++++++++++++++++++++++ 1 file changed, 202 insertions(+) diff --git a/docs/user_workloads/instancetypes.md b/docs/user_workloads/instancetypes.md index 2daa3a03..c3f86ace 100644 --- a/docs/user_workloads/instancetypes.md +++ b/docs/user_workloads/instancetypes.md @@ -359,6 +359,208 @@ $ kubectl get vmi/vm-cirros-csmall -o json | jq .spec.domain.cpu } ``` +## expand-spec + +The VM `expand-spec` subresource API and `virtctl expand` subcommand allow users to view an existing or yet-to-be defined VM with any referenced instance types or preferences expanded within the core spec of the VM. + +For example, given the following simple VM using an instance type we can use the API or `virtctl expand` command to obtain an expanded copy of the VM, using `diff` to highlight the differences between the original and expanded VM: + +```yaml +$ kubectl apply -f - <