Skip to content

Commit

Permalink
api: Update examples and docs to v1
Browse files Browse the repository at this point in the history
This updates examples and the generated docs of the kubevirt.io API to
the v1 version.

Signed-off-by: Felix Matouschek <[email protected]>
  • Loading branch information
0xFelix committed May 9, 2023
1 parent 8a6ce92 commit 4b1e3e9
Show file tree
Hide file tree
Showing 4 changed files with 7 additions and 6 deletions.
2 changes: 1 addition & 1 deletion cmd/container-disk-v2alpha/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -34,7 +34,7 @@ Example: Create a KubeVirt VMI definition with container backed ephemeral disk.

```
cat << END > vm.yaml
apiVersion: kubevirt.io/v1alpha3
apiVersion: kubevirt.io/v1
kind: VirtualMachine
metadata:
creationTimestamp: null
Expand Down
4 changes: 2 additions & 2 deletions docs/updates.md
Original file line number Diff line number Diff line change
Expand Up @@ -41,7 +41,7 @@ by patching the imageTag value with a new release tag.
The cluster has the following KubeVirt CR deployed.

```
apiVersion: kubevirt.io/v1alpha3
apiVersion: kubevirt.io/v1
kind: KubeVirt
metadata:
name: kubevirt
Expand Down Expand Up @@ -69,7 +69,7 @@ updating KubeVirt as well.
The cluster has the following KubeVirt CR deployed.

```
apiVersion: kubevirt.io/v1alpha3
apiVersion: kubevirt.io/v1
kind: KubeVirt
metadata:
name: kubevirt
Expand Down
2 changes: 1 addition & 1 deletion manifests/release/demo-content.yaml.in
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
# Virtual Machine Presets
apiVersion: kubevirt.io/v1alpha3
apiVersion: kubevirt.io/v1
kind: VirtualMachineInstancePreset
metadata:
name: windows-server-2012r2
Expand Down
5 changes: 3 additions & 2 deletions staging/src/kubevirt.io/api/core/v1/doc.go
Original file line number Diff line number Diff line change
@@ -1,8 +1,9 @@
// +k8s:deepcopy-gen=package
// +k8s:openapi-gen=true
// +k8s:defaulter-gen=TypeMeta

// +groupName=kubevirt.io
// +versionName=v1alpha3
// +k8s:openapi-gen=true
// +versionName=v1

// Package v1 is the v1 version of the API.
package v1

0 comments on commit 4b1e3e9

Please sign in to comment.