-
Notifications
You must be signed in to change notification settings - Fork 14
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
1 parent
2a27ebf
commit 51b132e
Showing
5 changed files
with
113 additions
and
0 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,15 @@ | ||
MTA | ||
=========== | ||
|
||
# Installation | ||
From `charts` folder run | ||
```console | ||
helm install mta workflows/mta --namespace=sonataflow-infra | ||
``` | ||
|
||
Then wait for all resources to be up: | ||
```console | ||
oc wait --for=jsonpath='{.status.phase}=Succeeded' -n openshift-mta csv/mta-operator.v6.2.1 --timeout=2m | ||
oc wait --for=condition=Ready=true pods -l "app.kubernetes.io/name=mta-ui" -n openshift-mta --timeout=2m | ||
oc wait -n sonataflow-infra sonataflow/mtaanalysis --for=condition=Running --timeout=2m | ||
``` |
44 changes: 44 additions & 0 deletions
44
charts/workflows/charts/mta/crds/tackle.konveyor.io_tackles.yaml
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,44 @@ | ||
apiVersion: apiextensions.k8s.io/v1 | ||
kind: CustomResourceDefinition | ||
metadata: | ||
creationTimestamp: null | ||
name: tackles.tackle.konveyor.io | ||
spec: | ||
group: tackle.konveyor.io | ||
names: | ||
kind: Tackle | ||
listKind: TackleList | ||
plural: tackles | ||
singular: tackle | ||
scope: Namespaced | ||
versions: | ||
- name: v1alpha1 | ||
schema: | ||
openAPIV3Schema: | ||
description: Tackle is the Schema for the tackles API | ||
properties: | ||
apiVersion: | ||
description: 'APIVersion defines the versioned schema of this representation | ||
of an object. Servers should convert recognized schemas to the latest | ||
internal value, and may reject unrecognized values. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#resources' | ||
type: string | ||
kind: | ||
description: 'Kind is a string value representing the REST resource this | ||
object represents. Servers may infer this from the endpoint the client | ||
submits requests to. Cannot be updated. In CamelCase. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#types-kinds' | ||
type: string | ||
metadata: | ||
type: object | ||
spec: | ||
description: Spec defines the desired state of Tackle | ||
type: object | ||
x-kubernetes-preserve-unknown-fields: true | ||
status: | ||
description: Status defines the observed state of Tackle | ||
type: object | ||
x-kubernetes-preserve-unknown-fields: true | ||
type: object | ||
served: true | ||
storage: true | ||
subresources: | ||
status: {} |
26 changes: 26 additions & 0 deletions
26
charts/workflows/charts/mta/templates/00-mta-operator.yaml
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,26 @@ | ||
apiVersion: v1 | ||
kind: Namespace | ||
metadata: | ||
name: openshift-mta | ||
--- | ||
apiVersion: operators.coreos.com/v1 | ||
kind: OperatorGroup | ||
metadata: | ||
name: openshift-mta | ||
namespace: openshift-mta | ||
spec: | ||
targetNamespaces: | ||
- openshift-mta | ||
upgradeStrategy: Default | ||
--- | ||
apiVersion: operators.coreos.com/v1alpha1 | ||
kind: Subscription | ||
metadata: | ||
name: mta-operator | ||
namespace: openshift-mta | ||
spec: | ||
channel: stable-v6.2 | ||
installPlanApproval: Automatic | ||
name: mta-operator | ||
source: redhat-operators | ||
sourceNamespace: openshift-marketplace |
9 changes: 9 additions & 0 deletions
9
charts/workflows/charts/mta/templates/00-tackle-resources.yaml
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,9 @@ | ||
kind: Tackle | ||
apiVersion: tackle.konveyor.io/v1alpha1 | ||
metadata: | ||
name: tackle | ||
namespace: openshift-mta | ||
spec: | ||
feature_auth_required: false | ||
hub_database_volume_size: 1Gi | ||
hub_bucket_volume_size: 1Gi |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,19 @@ | ||
{{/* Empty line */}} | ||
Helm Release {{ .Release.Name }} installed in namespace {{ .Release.Namespace }}. | ||
{{- $yes := "YES" }} | ||
{{- $no := "NO " }} | ||
{{- $mtaOperatorInstalled := $yes }} | ||
{{- $mtaWorkflowInstalled := $yes }} | ||
{{- $timeout := "--timeout=2m" }} | ||
|
||
|
||
Components Installed Namespace | ||
==================================================================== | ||
MTA operator {{ $mtaOperatorInstalled }} openshift-mta | ||
serverless workflow - mta analysis {{ $mtaWorkflowInstalled }} {{ .Release.Namespace }} | ||
{{/* Empty line */}} | ||
|
||
Run the following commands to wait until the mta analysis workflow dependencies and build are done and workflow is running on namespace {{ .Release.Namespace }}: | ||
oc wait --for=jsonpath='{.status.phase}=Succeeded' -n openshift-mta csv/mta-operator.v6.2.1 {{ $timeout }} | ||
oc wait --for=condition=Ready=true pods -l "app.kubernetes.io/name=mta-ui" -n openshift-mta {{ $timeout }} | ||
oc wait -n {{ .Release.Namespace }} sonataflow/mtaanalysis --for=condition=Running {{ $timeout }} |