Bug 1971324

Summary: [DOC][MTV][API] Add custom resource creation example for NetworkMap and StorageMap
Product: Migration Toolkit for Virtualization Reporter: Maayan Hadasi <mguetta>
Component: DocumentationAssignee: Avital Pinnick <apinnick>
Status: CLOSED CURRENTRELEASE QA Contact: Maayan Hadasi <mguetta>
Severity: high Docs Contact: Avital Pinnick <apinnick>
Priority: unspecified    
Version: 2.0.0CC: apinnick, fdupont, istein
Target Milestone: ---   
Target Release: 2.0.0   
Hardware: Unspecified   
OS: Unspecified   
Whiteboard:
Fixed In Version: Doc Type: If docs needed, set a value
Doc Text:
Story Points: ---
Clone Of: Environment:
Last Closed: 2021-06-15 08:49:14 UTC Type: Bug
Regression: --- Mount Type: ---
Documentation: --- CRM:
Verified Versions: Category: ---
oVirt Team: --- RHEL 7.3 requirements from Atomic Host:
Cloudforms Team: --- Target Upstream Version:
Embargoed:

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.