Skip to content

Commit 6f01451

Browse files
authored
Add Migration Toolkit for Containers (#389)
* add mtc * newline... * speeelingz
1 parent 8591ba5 commit 6f01451

File tree

10 files changed

+104
-0
lines changed

10 files changed

+104
-0
lines changed

.wordlist-md

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -75,6 +75,7 @@ LVM
7575
Lifecycle
7676
Logstash
7777
MTA
78+
MTC
7879
MachineConfig
7980
MachineSet
8081
MetalLB
@@ -278,6 +279,7 @@ servicemesh
278279
servicemeshoperator
279280
sfdc
280281
spiffe
282+
stateful
281283
strimzi
282284
sublicense
283285
tekton
Lines changed: 35 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,35 @@
1+
# Migration Toolkit for Containers Operator
2+
3+
This is to deploy the [Migration Toolkit for Containers Operator](https://docs.redhat.com/en/documentation/openshift_container_platform/4.18/html/migration_toolkit_for_containers/about-mtc) to OpenShift. The Migration Toolkit for Containers (MTC) enables you to migrate stateful application workloads between OpenShift Container Platform 4 clusters at the granularity of a namespace.
4+
5+
The Migration Toolkit for Containers Operator is a "Rolling Stream" Operator, meaning updates are available asynchronously of OpenShift Container Platform releases. For more information, see OpenShift Operator Life Cycles on the Red Hat Customer Portal.
6+
7+
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.
8+
9+
The current *overlays* available are for the following channels:
10+
11+
* [release-v1.8](operator/overlays/release-v1.8)
12+
* [release-v1.7](operator/overlays/release-v1.7)
13+
14+
## Usage
15+
16+
If you have cloned the `gitops-catalog` repository, you can install operator based on the overlay of your choice by running from the root (`gitops-catalog`) directory.
17+
18+
```
19+
oc apply -k migration-toolkit-containers/operator/overlays/<channel>
20+
```
21+
22+
Or, without cloning:
23+
24+
```
25+
oc apply -k https://github.com/redhat-cop/gitops-catalog/migration-toolkit-containers/operator/overlays/<channel>
26+
```
27+
28+
As part of a different overlay in your own GitOps repo:
29+
30+
```
31+
apiVersion: kustomize.config.k8s.io/v1beta1
32+
kind: Kustomization
33+
resources:
34+
- https://github.com/redhat-cop/gitops-catalog/migration-toolkit-containers/operator/overlays/<channel>?ref=main
35+
```
Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,8 @@
1+
---
2+
apiVersion: kustomize.config.k8s.io/v1beta1
3+
kind: Kustomization
4+
5+
resources:
6+
- namespace.yaml
7+
- operator-group.yaml
8+
- subscription.yaml
Lines changed: 9 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,9 @@
1+
---
2+
apiVersion: v1
3+
kind: Namespace
4+
metadata:
5+
annotations:
6+
openshift.io/display-name: "Migration Toolkit for Containers"
7+
labels:
8+
openshift.io/cluster-monitoring: 'true'
9+
name: openshift-migration
Lines changed: 10 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,10 @@
1+
---
2+
apiVersion: operators.coreos.com/v1
3+
kind: OperatorGroup
4+
metadata:
5+
name: mtc-operator
6+
namespace: openshift-migration
7+
spec:
8+
targetNamespaces:
9+
- openshift-migration
10+
upgradeStrategy: Default
Lines changed: 12 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,12 @@
1+
---
2+
apiVersion: operators.coreos.com/v1alpha1
3+
kind: Subscription
4+
metadata:
5+
name: mtc-operator
6+
namespace: openshift-migration
7+
spec:
8+
channel: patch-me-see-overlays-dir
9+
installPlanApproval: Automatic
10+
name: mtc-operator
11+
source: redhat-operators
12+
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: mtc-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-v1.7
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: mtc-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-v1.8

0 commit comments

Comments
 (0)