Skip to content

Commit ef9349c

Browse files
authored
Merge pull request #64470 from ShaunaDiaz/OSDOCS-7070
OSDOCS-7070: update storage migration controller
2 parents 2d2f8f7 + 7720ff0 commit ef9349c

File tree

5 files changed

+60
-7
lines changed

5 files changed

+60
-7
lines changed

_topic_maps/_topic_map_ms.yml

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -154,6 +154,8 @@ Topics:
154154
File: microshift-storage-plugin-overview
155155
- Name: Working with volume snapshots
156156
File: volume-snapshots-microshift
157+
- Name: Understanding storage migration
158+
File: microshift-storage-migration
157159
---
158160
Name: Running applications
159161
Dir: microshift_running_apps

microshift_rest_api/understanding-compatibility-guidelines.adoc

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -6,6 +6,8 @@ include::_attributes/common-attributes.adoc[]
66

77
toc::[]
88

9+
Follow the compatibility guidelines to understand the APIs enabled for {product-title}.
10+
911
[IMPORTANT]
1012
====
1113
This guidance does not cover layered {product-title} offerings.
Lines changed: 11 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,11 @@
1+
:_content-type: ASSEMBLY
2+
[id="microshift-storage-migration"]
3+
= Storage migration using the Kube Storage Version Migrator
4+
include::_attributes/attributes-microshift.adoc[]
5+
:context: microshift-storage-plugin-overview
6+
7+
toc::[]
8+
9+
Storage version migration is used to update existing objects in the cluster from their current version to the latest version. The Kube Storage Version Migrator embedded controller is used in {product-title} to migrate resources without having to recreate those resources. Either you or a controller can create a `StorageVersionMigration` custom resource (CR) that will request a migration through the Migrator Controller.
10+
11+
include::modules/microshift-making-storage-migration-request.adoc[leveloffset=+1]
Lines changed: 38 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,38 @@
1+
// Module included in the following assemblies:
2+
//
3+
// * microshift_storage/microshift-storage-migration.adoc
4+
5+
:_content-type: PROCEDURE
6+
[id="microshift-making-storage-migration-request_{context}"]
7+
= Making a storage migration request
8+
9+
Storage migration is the process of updating stored data to the latest storage version, for example from `v1beta1` to `v1beta2`. To update your storage version, use the following procedure.
10+
11+
.Procedure
12+
13+
* Either you or any controller that has support for the `StorageVersionMigration` API must trigger a migration request. Use the following example request for reference:
14+
+
15+
.Example request
16+
+
17+
[source,terminal]
18+
----
19+
apiVersion: migration.k8s.io/v1alpha1
20+
kind: StorageVersionMigration
21+
metadata:
22+
name: snapshot-v1
23+
spec:
24+
resource:
25+
group: snapshot.storage.k8s.io
26+
resource: volumesnapshotclasses <1>
27+
version: v1 <2>
28+
----
29+
<1> You must use the plural name of the resource.
30+
<2> Version being updated to.
31+
32+
* The progress of the migration is posted to the `StorageVersionMigration` status.
33+
34+
[NOTE]
35+
====
36+
* Failures can occur because of a misnamed group or resource.
37+
* Migration failures can also occur when there is an incompatibility between the previous and latest versions.
38+
====

rest_api/workloads_apis/persistentvolume-core-v1.adoc

Lines changed: 7 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -305,7 +305,7 @@ Defaults to unset
305305
| Parameter | Type | Description
306306
| `body`
307307
| xref:../objects/index.adoc#deleteoptions-meta-v1[`DeleteOptions meta/v1`]
308-
|
308+
|
309309
|===
310310

311311
.HTTP responses
@@ -398,7 +398,7 @@ Description::
398398
| Parameter | Type | Description
399399
| `body`
400400
| xref:../workloads_apis/persistentvolume-core-v1.adoc#persistentvolume-core-v1[`PersistentVolume core/v1`]
401-
|
401+
|
402402
|===
403403

404404
.HTTP responses
@@ -461,7 +461,7 @@ Description::
461461
| Parameter | Type | Description
462462
| `body`
463463
| xref:../objects/index.adoc#deleteoptions-meta-v1[`DeleteOptions meta/v1`]
464-
|
464+
|
465465
|===
466466

467467
.HTTP responses
@@ -515,7 +515,7 @@ Description::
515515
| Parameter | Type | Description
516516
| `body`
517517
| xref:../objects/index.adoc#patch-meta-v1[`Patch meta/v1`]
518-
|
518+
|
519519
|===
520520

521521
.HTTP responses
@@ -551,7 +551,7 @@ Description::
551551
| Parameter | Type | Description
552552
| `body`
553553
| xref:../workloads_apis/persistentvolume-core-v1.adoc#persistentvolume-core-v1[`PersistentVolume core/v1`]
554-
|
554+
|
555555
|===
556556

557557
.HTTP responses
@@ -626,7 +626,7 @@ Description::
626626
| Parameter | Type | Description
627627
| `body`
628628
| xref:../objects/index.adoc#patch-meta-v1[`Patch meta/v1`]
629-
|
629+
|
630630
|===
631631

632632
.HTTP responses
@@ -662,7 +662,7 @@ Description::
662662
| Parameter | Type | Description
663663
| `body`
664664
| xref:../workloads_apis/persistentvolume-core-v1.adoc#persistentvolume-core-v1[`PersistentVolume core/v1`]
665-
|
665+
|
666666
|===
667667

668668
.HTTP responses

0 commit comments

Comments
 (0)