Skip to content
Merged
Show file tree
Hide file tree
Changes from 2 commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 2 additions & 0 deletions .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -577,3 +577,5 @@ GitExtensions.settings.backup
*.AssemblyHooks.vb
/src/WorkflowManager/mc.exe
*.lutconfig
/src/TaskManager/TaskManager/Properties/launchSettings.json
/src/WorkflowManager/WorkflowManager/Properties/launchSettings.json
7 changes: 6 additions & 1 deletion deploy/helm/Gateway.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,10 @@ replicaCount: 1
image:
repository: registry.gitlab.com/answerdigital/londonai/aide/workflow-manager-images/infomatics-gateway
pullPolicy: IfNotPresent
tag: 2022-08-01
tag: 2022-08-30-01

imagePullSecrets:
- name: gitlab-image-pull

enviromentVariables:
InformaticsGateway__messaging__publisherSettings__endpoint: "rabbitmq-monai"
Expand All @@ -29,6 +32,8 @@ enviromentVariables:
InformaticsGateway__storage__settings__accessKey: "rootminio"
InformaticsGateway__storage__settings__accessToken: "rootminio"
InformaticsGateway__dicom__scp__rejectUnknownSources: false
Kestrel__EndPoints__Http__Url: "http://::5000"
InformaticsGateway__storage__watermarkPercent: 95


service:
Expand Down
65 changes: 65 additions & 0 deletions deploy/helm/MTM.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,65 @@
# Copyright 2022 MONAI Consortium
#
# Licensed under the Apache License, Version 2.0 (the "License");
# you may not use this file except in compliance with the License.
# You may obtain a copy of the License at
#
# http://www.apache.org/licenses/LICENSE-2.0
#
# Unless required by applicable law or agreed to in writing, software
# distributed under the License is distributed on an "AS IS" BASIS,
# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
# See the License for the specific language governing permissions and
# limitations under the License.

replicaCount: 1

image:
repository: registry.gitlab.com/answerdigital/londonai/aide/workflow-manager-images/task-manager
pullPolicy: IfNotPresent
tag: 2022-09-05-01

imagePullSecrets:
- name: gitlab-image-pull

enviromentVariables:
WorkflowManager__storage__settings__endpoint: "minio.monai:9000"
WorkflowManager__storage__settings__accessKey: "rootminio"
WorkflowManager__storage__settings__accessToken: "rootminio"
WorkflowManager__storage__settings__executableLocation: "mc"
WorkflowManager__messaging__publisherSettings__endpoint: "rabbitmq.monai"
WorkflowManager__messaging__subscriberSettings__endpoint: "rabbitmq.monai"
WorkloadManagerDatabase__ConnectionString: "mongodb://root:[email protected]:27017"

enviromentVariablesFromSecrets:
secrets:
- name: WorkflowManager__messaging__subscriberSettings__username
secretName: rabbit-secret-master
secretKey: username
- name: WorkflowManager__messaging__subscriberSettings__password
secretName: rabbit-secret-master
secretKey: password
- name: WorkflowManager__messaging__publisherSettings__username
secretName: rabbit-secret-master
secretKey: username
- name: WorkflowManager__messaging__publisherSettings__password
secretName: rabbit-secret-master
secretKey: password

service:
type: ClusterIP
port: 5000

serviceAccount:
create: true
name: mtm
namespace: monai
clusterrole:
name: clusterrole-taskmanager-argo-secret-master
rules:
apiGroups: [""]
resources: ["secrets"]
verbs: ["get", "list", "watch", "create", "update", "patch", "delete"]



5 changes: 3 additions & 2 deletions deploy/helm/MWM.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -27,9 +27,10 @@ enviromentVariables:
WorkflowManager__storage__settings__accessKey: "rootminio"
WorkflowManager__storage__settings__accessToken: "rootminio"
WorkflowManager__storage__settings__executableLocation: "mc"
WorkflowManager__messaging__publisherSettings__endpoint: "rabbitmq.monai"
WorkflowManager__messaging__subscriberSettings__endpoint: "rabbitmq.monai"
WorkflowManager__messaging__publisherSettings__endpoint: "rabbitmq-monai.monai"
WorkflowManager__messaging__subscriberSettings__endpoint: "rabbitmq-monai.monai"
WorkloadManagerDatabase__ConnectionString: "mongodb://root:[email protected]:27017"
Kestrel__EndPoints__Http__Url: "http://::5000"

enviromentVariablesFromSecrets:
secrets:
Expand Down
2 changes: 1 addition & 1 deletion deploy/helm/templates/deployment.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -63,7 +63,7 @@ spec:
value: {{ $value | quote }}
{{- end }}

{{- range .Values.enviromentVariablesFromSecrets.secrets }}
{{- range (.Values.enviromentVariablesFromSecrets).secrets }}
- name: {{ .name }}
valueFrom:
secretKeyRef:
Expand Down
2 changes: 1 addition & 1 deletion deploy/helm/templates/volume.yml
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,7 @@
# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
# See the License for the specific language governing permissions and
# limitations under the License.
{{- if .Values.volumeMounts -}}
{{- if .Values.volumeMounts }}
apiVersion: v1
kind: PersistentVolume
metadata:
Expand Down
2 changes: 1 addition & 1 deletion deploy/helm/templates/volumeclaim.yml
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,7 @@
# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
# See the License for the specific language governing permissions and
# limitations under the License.
{{- if .Values.volumeMounts -}}
{{- if .Values.volumeMounts }}
apiVersion: v1
kind: PersistentVolumeClaim
metadata:
Expand Down
15 changes: 15 additions & 0 deletions src/TaskManager/Plug-ins/Argo/ArgoPlugin.cs
Original file line number Diff line number Diff line change
Expand Up @@ -486,6 +486,21 @@ private async Task CopyWorkflowTemplateToWorkflow(WorkflowTemplate workflowTempl

await CopyTemplateSteps(template.Steps, workflowTemplate, name, workflow, cancellationToken).ConfigureAwait(false);
await CopyTemplateDags(template.Dag, workflowTemplate, name, workflow, cancellationToken).ConfigureAwait(false);
CopyImagePullSecrets(workflowTemplate, workflow);
}

private void CopyImagePullSecrets(WorkflowTemplate workflowTemplate, Workflow workflow)
{
Guard.Against.Null(workflowTemplate.Spec.ImagePullSecrets);

if (workflowTemplate.Spec.ImagePullSecrets.Any())
{
workflow.Spec.ImagePullSecrets = new List<LocalObjectReference>();
foreach (var secret in workflowTemplate.Spec.ImagePullSecrets)
{
workflow.Spec.ImagePullSecrets.Add(secret);
}
}
}

/// <summary>
Expand Down
2 changes: 1 addition & 1 deletion src/TaskManager/TaskManager/appsettings.Local.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"WorkloadManagerDatabase": {
"ConnectionString": "mongodb://root:rootpassword@localhost:27017",
"ConnectionString": "mongodb://root:rootpassword@localhost:30017",
"DatabaseName": "WorkloadManager",
"WorkflowCollectionName": "Workflows",
"WorkflowInstanceCollectionName": "WorkflowInstances",
Expand Down
2 changes: 1 addition & 1 deletion src/WorkflowManager/WorkflowManager/appsettings.Local.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"WorkloadManagerDatabase": {
"ConnectionString": "mongodb://root:rootpassword@localhost:27017",
"ConnectionString": "mongodb://root:rootpassword@localhost:30017",
"DatabaseName": "WorkloadManager",
"WorkflowCollectionName": "Workflows",
"WorkflowInstanceCollectionName": "WorkflowInstances",
Expand Down