Bug 1971324 - [DOC][MTV][API] Add custom resource creation example for NetworkMap and StorageMap
Summary: [DOC][MTV][API] Add custom resource creation example for NetworkMap and Stora...
Keywords:
Status: CLOSED CURRENTRELEASE
Alias: None
Product: Migration Toolkit for Virtualization
Classification: Red Hat
Component: Documentation
Version: 2.0.0
Hardware: Unspecified
OS: Unspecified
unspecified
high
Target Milestone: ---
: 2.0.0
Assignee: Avital Pinnick
QA Contact: Maayan Hadasi
Avital Pinnick
URL:
Whiteboard:
Depends On:
Blocks:
TreeView+ depends on / blocked
 
Reported: 2021-06-13 16:19 UTC by Maayan Hadasi
Modified: 2021-06-15 08:49 UTC (History)
3 users (show)

Fixed In Version:
Doc Type: If docs needed, set a value
Doc Text:
Clone Of:
Environment:
Last Closed: 2021-06-15 08:49:14 UTC
Target Upstream Version:
Embargoed:


Attachments (Terms of Use)

Description Maayan Hadasi 2021-06-13 16:19:47 UTC
Description of problem:

Documentation link: https://access.redhat.com/documentation/en-us/migration_toolkit_for_virtualization/2.0/html-single/installing_and_using_the_migration_toolkit_for_virtualization/index?lb_target=stage

Section to update:
------------------
1.1. MTV custom resources and services:

What to Change:
---------------
Change the MTV custom resource name (real CR's name):
NetworkMapping -> NetworkMap
StorageMapping -> StorageMap

=======================================================

Section to update:
------------------
3.3. Migrating virtual machines from the command line interface

What to Change:
---------------
1. Update the section with CR creation example for NetworkMap:

cat << EOF | oc apply -f -
apiVersion: forklift.konveyor.io/v1beta1
kind: NetworkMap
metadata: 
  name: <networkmap_name>
  namespace: openshift-mtv
spec: 
  map: 
    - destination: 
        type: pod
      source: 
        id: <source_network_id>
    - destination:                     ### Here is a 2nd network mapping
        type: multus                   ### network destination type must be pod/multus
        name: <NetworkAttachmentDefinition_name>
      source: 
        id: <source_network_id>
  provider: 
    source:
      name: vmware-provider
      namespace: openshift-mtv
    destination:
      name: destination-cluster
      namespace: openshift-mtv
EOF



2. Update the section with CR creation example for StorageMap:

cat << EOF | oc apply -f -
apiVersion: forklift.konveyor.io/v1beta1
kind: StorageMap
metadata: 
  name: <storagemap_name>
  namespace: openshift-mtv
spec: 
  map:
    - destination: 
        storageClass: <destination_storageClass>
      source: 
        id: <source_datastore_id>
  provider: 
    source:
      name: vmware-provider
      namespace: openshift-mtv
    destination:
      name: destination-cluster
      namespace: openshift-mtv
EOF

Comment 2 Avital Pinnick 2021-06-15 08:49:14 UTC
Changes merged.


Note You need to log in before you can comment on or make changes to this bug.