Skip to content

Commit

Permalink
docs: update versions to v1 in vm presets.md
Browse files Browse the repository at this point in the history
Signed-off-by: jbpratt <[email protected]>
  • Loading branch information
jbpratt committed Jan 26, 2022
1 parent cf3d712 commit 092fb03
Showing 1 changed file with 11 additions and 11 deletions.
22 changes: 11 additions & 11 deletions docs/vm-presets.md
Original file line number Diff line number Diff line change
Expand Up @@ -116,7 +116,7 @@ Simple `VirtualMachineInstancePreset` Example
------------------------

```yaml
apiVersion: kubevirt.io/v1alpha2
apiVersion: kubevirt.io/v1
kind: VirtualMachineInstancePreset
metadata:
name: example-preset
Expand All @@ -134,7 +134,7 @@ spec:
spinlocks:
spinlocks: 8191
---
apiVersion: kubevirt.io/v1alpha2
apiVersion: kubevirt.io/v1
kind: VirtualMachineInstance
version: v1
metadata:
Expand All @@ -154,17 +154,17 @@ resulting resource would look like this:
```yaml
apiVersion: v1
items:
- apiVersion: kubevirt.io/v1alpha2
- apiVersion: kubevirt.io/v1
kind: VirtualMachineInstance
metadata:
annotations:
presets.virtualmachines.kubevirt.io/presets-applied: kubevirt.io/v1alpha2
virtualmachinepreset.kubevirt.io/example-preset: kubevirt.io/v1alpha2
presets.virtualmachines.kubevirt.io/presets-applied: kubevirt.io/v1
virtualmachinepreset.kubevirt.io/example-preset: kubevirt.io/v1
labels:
kubevirt.io/flavor: windows-10
name: myvm
namespace: default
selfLink: /apis/kubevirt.io/v1alpha2/namespaces/default/virtualmachineinstances/myvm
selfLink: /apis/kubevirt.io/v1/namespaces/default/virtualmachineinstances/myvm
spec:
domain:
devices: {}
Expand Down Expand Up @@ -204,7 +204,7 @@ and `VirtualMachineInstancePreset` request different number of CPU's.


```yaml
apiVersion: kubevirt.io/v1alpha2
apiVersion: kubevirt.io/v1
kind: VirtualMachineInstancePreset
metadata:
name: example-preset
Expand All @@ -216,7 +216,7 @@ spec:
cpu:
cores: 4
---
apiVersion: kubevirt.io/v1alpha2
apiVersion: kubevirt.io/v1
kind: VirtualMachineInstance
version: v1
metadata:
Expand All @@ -235,17 +235,17 @@ In this case the `VirtualMachineInstance` Spec will remain unmodified. Use
```yaml
apiVersion: v1
items:
- apiVersion: kubevirt.io/v1alpha2
- apiVersion: kubevirt.io/v1
kind: VirtualMachineInstance
metadata:
annotations:
presets.virtualmachines.kubevirt.io/presets-applied: kubevirt.io/v1alpha2
presets.virtualmachines.kubevirt.io/presets-applied: kubevirt.io/v1
clusterName: ""
labels:
kubevirt.io/flavor: default-features
name: myvm
namespace: default
selfLink: /apis/kubevirt.io/v1alpha2/namespaces/default/virtualmachineinstances/myvm
selfLink: /apis/kubevirt.io/v1/namespaces/default/virtualmachineinstances/myvm
spec:
domain:
cpu:
Expand Down

0 comments on commit 092fb03

Please sign in to comment.