Skip to content

Commit

Permalink
Add subcharts for MTA
Browse files Browse the repository at this point in the history
  • Loading branch information
gabriel-farache authored and masayag committed Feb 6, 2024
1 parent 2a27ebf commit 51b132e
Show file tree
Hide file tree
Showing 5 changed files with 113 additions and 0 deletions.
15 changes: 15 additions & 0 deletions charts/workflows/charts/mta/INSTALL.md
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 charts/workflows/charts/mta/crds/tackle.konveyor.io_tackles.yaml
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 charts/workflows/charts/mta/templates/00-mta-operator.yaml
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
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
19 changes: 19 additions & 0 deletions charts/workflows/charts/mta/templates/NOTES.txt
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 }}

0 comments on commit 51b132e

Please sign in to comment.