Skip to content

Commit 64e3084

Browse files
committed
add: mtv operator
1 parent 7347f2f commit 64e3084

File tree

14 files changed

+160
-0
lines changed

14 files changed

+160
-0
lines changed
Lines changed: 36 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,36 @@
1+
# mtv-operator
2+
3+
The Migration Toolkit for Virtualization Operator manages the deployment and life cycle of Migration Toolkit for Virtualization on [OpenShift](https://www.openshift.com/) Container Platform.
4+
5+
### Installation
6+
7+
OpenShift Virtualization must be installed on an OpenShift migration target cluster before you can use MTV to transfer any VMs to that cluster
8+
9+
Once you have successfully installed the Operator, proceed to deploy components by creating the required ForkliftController CR.
10+
11+
By default, the Operator installs the following components on a target cluster:
12+
13+
* Controller, to coordinate migration processes.
14+
* UI, the web console to manage migrations.
15+
* Validation, a service to validate migration workflows.
16+
17+
### Compatibility
18+
19+
Migration Toolkit for Virtualization 2.9 is supported on OpenShift 4.17, 4.18 and 4.19
20+
21+
Migration Toolkit for Virtualization 2.10 is supported on OpenShift 4.18, 4.19 and 4.20
22+
23+
More information on compatibility in the [MTV Lifecycle document](https://access.redhat.com/support/policy/updates/migration-toolkit-for-virtualization).
24+
25+
### Documentation
26+
Documentation can be found on the [Red Hat Customer Portal](https://access.redhat.com/documentation/en-us/migration_toolkit_for_virtualization/).
27+
28+
### Getting help
29+
If you encounter any issues while using Migration Toolkit for Virtualization Operator, create a [support case](https://access.redhat.com/support/cases/) for bugs, enhancements, or other requests.
30+
31+
### Contributing
32+
You can contribute by:
33+
34+
* Creating a case in the [Red Hat Customer Portal](https://access.redhat.com/support/cases/) with any issues you find using Migration Toolkit for Application and its Operator.
35+
* Fixing issues by opening Pull Requests in the [KubeV2V](https://github.com/kubev2v/) under Forklift Projects.
36+
* Improving Forklift upstream [documentation](https://github.com/kubev2v/forklift-documentation/).
Lines changed: 34 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,34 @@
1+
# Migration Toolkit for Virtualization Operator
2+
3+
Install Migration Toolkit for Virtualization Operator.
4+
5+
Do not use the `base` directory directly, as you will need to patch the `channel` based on the version of OpenShift you are using, or the version of the operator you want to use.
6+
7+
The current *overlays* available are for the following channels:
8+
9+
* [release-v2.10](operator/overlays/release-v2.10)
10+
* [release-v2.7](operator/overlays/release-v2.7)
11+
* [release-v2.8](operator/overlays/release-v2.8)
12+
13+
## Usage
14+
15+
If you have cloned the `gitops-catalog` repository, you can install Migration Toolkit for Virtualization Operator based on the overlay of your choice by running from the root (`gitops-catalog`) directory.
16+
17+
```sh
18+
oc apply -k mtv-operator/operator/overlays/<channel>
19+
```
20+
21+
Or, without cloning:
22+
23+
```sh
24+
oc apply -k https://github.com/redhat-cop/gitops-catalog/mtv-operator/operator/overlays/<channel>
25+
```
26+
27+
As part of a different overlay in your own GitOps repo:
28+
29+
```yaml
30+
apiVersion: kustomize.config.k8s.io/v1beta1
31+
kind: Kustomization
32+
resources:
33+
- https://github.com/redhat-cop/gitops-catalog/mtv-operator/operator/overlays/<channel>?ref=main
34+
```
Lines changed: 9 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,9 @@
1+
apiVersion: forklift.konveyor.io/v1beta1
2+
kind: ForkliftController
3+
metadata:
4+
name: forklift-controller
5+
namespace: openshift-mtv
6+
spec:
7+
feature_ui_plugin: 'true'
8+
feature_validation: 'true'
9+
feature_volume_populator: 'true'
Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,5 @@
1+
apiVersion: kustomize.config.k8s.io/v1beta1
2+
kind: Kustomization
3+
4+
resources:
5+
- forklift.yaml
Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,7 @@
1+
apiVersion: kustomize.config.k8s.io/v1beta1
2+
kind: Kustomization
3+
4+
resources:
5+
- namespace.yaml
6+
- operator-group.yaml
7+
- subscription.yaml
Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,8 @@
1+
apiVersion: v1
2+
kind: Namespace
3+
metadata:
4+
annotations:
5+
openshift.io/display-name: "Migration Toolkit for Virtualization Operator"
6+
labels:
7+
openshift.io/cluster-monitoring: 'true'
8+
name: openshift-mtv
Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,8 @@
1+
apiVersion: operators.coreos.com/v1
2+
kind: OperatorGroup
3+
metadata:
4+
name: mtv-operator
5+
namespace: openshift-mtv
6+
spec:
7+
targetNamespaces:
8+
- openshift-mtv
Lines changed: 11 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,11 @@
1+
apiVersion: operators.coreos.com/v1alpha1
2+
kind: Subscription
3+
metadata:
4+
name: mtv-operator
5+
namespace: openshift-mtv
6+
spec:
7+
channel: patch-me-see-overlays-dir
8+
installPlanApproval: Automatic
9+
name: mtv-operator
10+
source: redhat-operators
11+
sourceNamespace: openshift-marketplace
Lines changed: 11 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,11 @@
1+
apiVersion: kustomize.config.k8s.io/v1beta1
2+
kind: Kustomization
3+
4+
resources:
5+
- ../../base
6+
7+
patches:
8+
- target:
9+
kind: Subscription
10+
name: mtv-operator
11+
path: patch-channel.yaml
Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,3 @@
1+
- op: replace
2+
path: /spec/channel
3+
value: release-v2.10

0 commit comments

Comments
 (0)