Skip to content

Commit 8a76180

Browse files
author
Audrey Spaulding
committed
updated VMExport API to v1beta1
1 parent 4913404 commit 8a76180

File tree

2 files changed

+9
-9
lines changed

2 files changed

+9
-9
lines changed

modules/virt-accessing-exported-vm-manifests.adoc

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -56,7 +56,7 @@ $ oc get vmexport <export_name> -o yaml
5656

5757
[source,yaml]
5858
----
59-
apiVersion: export.kubevirt.io/v1alpha1
59+
apiVersion: export.kubevirt.io/v1beta1
6060
kind: VirtualMachineExport
6161
metadata:
6262
name: example-export
@@ -73,9 +73,9 @@ status:
7373
#...
7474
manifests:
7575
- type: all
76-
url: https://vmexport-proxy.test.net/api/export.kubevirt.io/v1alpha1/namespaces/example/virtualmachineexports/example-export/external/manifests/all <1>
76+
url: https://vmexport-proxy.test.net/api/export.kubevirt.io/v1beta1/namespaces/example/virtualmachineexports/example-export/external/manifests/all <1>
7777
- type: auth-header-secret
78-
url: https://vmexport-proxy.test.net/api/export.kubevirt.io/v1alpha1/namespaces/example/virtualmachineexports/example-export/external/manifests/secret <2>
78+
url: https://vmexport-proxy.test.net/api/export.kubevirt.io/v1beta1/namespaces/example/virtualmachineexports/example-export/external/manifests/secret <2>
7979
internal:
8080
#...
8181
manifests:
@@ -107,7 +107,7 @@ For example:
107107
+
108108
[source,terminal]
109109
----
110-
$ curl --cacert cacert.crt https://vmexport-proxy.test.net/api/export.kubevirt.io/v1alpha1/namespaces/example/virtualmachineexports/example-export/external/manifests/secret -H "x-kubevirt-export-token:token_decode" -H "Accept:application/yaml"
110+
$ curl --cacert cacert.crt https://vmexport-proxy.test.net/api/export.kubevirt.io/v1beta1/namespaces/example/virtualmachineexports/example-export/external/manifests/secret -H "x-kubevirt-export-token:token_decode" -H "Accept:application/yaml"
111111
----
112112

113113
. Get the manifests of `type: all`, such as the `ConfigMap` and `VirtualMachine` manifests, by running the following command:
@@ -125,7 +125,7 @@ For example:
125125
+
126126
[source,terminal]
127127
----
128-
$ curl --cacert cacert.crt https://vmexport-proxy.test.net/api/export.kubevirt.io/v1alpha1/namespaces/example/virtualmachineexports/example-export/external/manifests/all -H "x-kubevirt-export-token:token_decode" -H "Accept:application/yaml"
128+
$ curl --cacert cacert.crt https://vmexport-proxy.test.net/api/export.kubevirt.io/v1beta1/namespaces/example/virtualmachineexports/example-export/external/manifests/all -H "x-kubevirt-export-token:token_decode" -H "Accept:application/yaml"
129129
----
130130

131131
.Next steps

modules/virt-creating-virtualmachineexport.adoc

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -32,7 +32,7 @@ The export server supports the following file formats:
3232
.`VirtualMachineExport` example
3333
[source,yaml]
3434
----
35-
apiVersion: export.kubevirt.io/v1alpha1
35+
apiVersion: export.kubevirt.io/v1beta1
3636
kind: VirtualMachineExport
3737
metadata:
3838
name: example-export
@@ -70,7 +70,7 @@ The internal and external links for the exported volumes are displayed in the `s
7070
.Output example
7171
[source,yaml]
7272
----
73-
apiVersion: export.kubevirt.io/v1alpha1
73+
apiVersion: export.kubevirt.io/v1beta1
7474
kind: VirtualMachineExport
7575
metadata:
7676
name: example-export
@@ -102,9 +102,9 @@ status:
102102
volumes:
103103
- formats:
104104
- format: raw
105-
url: https://vmexport-proxy.test.net/api/export.kubevirt.io/v1alpha1/namespaces/example/virtualmachineexports/example-export/volumes/example-disk/disk.img
105+
url: https://vmexport-proxy.test.net/api/export.kubevirt.io/v1beta1/namespaces/example/virtualmachineexports/example-export/volumes/example-disk/disk.img
106106
- format: gzip
107-
url: https://vmexport-proxy.test.net/api/export.kubevirt.io/v1alpha1/namespaces/example/virtualmachineexports/example-export/volumes/example-disk/disk.img.gz
107+
url: https://vmexport-proxy.test.net/api/export.kubevirt.io/v1beta1/namespaces/example/virtualmachineexports/example-export/volumes/example-disk/disk.img.gz
108108
name: example-disk
109109
internal: <2>
110110
cert: |-

0 commit comments

Comments
 (0)