Commit 88ac27ef authored by Matthias's avatar Matthias
Browse files

adapt helm charts to new workflow

parent c44bdf5e
Pipeline #14789 passed with stages
in 4 minutes and 52 seconds
apiVersion: v1
kind: ConfigMap
metadata:
name: "{{ .Values.processId }}-{{ .Values.jobName }}-config"
name: "{{ .Values.deploymentName }}-config"
namespace: memobase
data:
APPLICATION_ID: "{{ .Values.processId }}-{{ .Values.jobName }}"
RECORD_SET_ID: "{{ .Values.recordSetId }}"
SFTP_BASE_PATH: "{{ .Values.sftpBasePath }}"
TOPIC_IN: "{{ .Values.processId }}-{{ .Values.lastJobName }}"
TOPIC_OUT: "{{ .Values.processId }}-{{ .Values.jobName }}"
TOPIC_PROCESS: "{{ .Values.processId }}-reporting"
\ No newline at end of file
APPLICATION_ID: {{ .Values.applicationId }}
TOPIC_IN: {{ .Values.inputTopicName }}
TOPIC_OUT: {{ .Values.outputTopicName }}
TOPIC_PROCESS: {{ .Values.reportingTopicName }}
\ No newline at end of file
apiVersion: batch/v1
kind: Job
apiVersion: apps/v1
kind: Deployment
metadata:
name: "{{ .Values.processId }}-{{ .Values.jobName }}"
name: {{ .Values.deploymentName }}
namespace: memobase
labels:
institutionId: "{{ .Values.institutionId }}"
recordSetId: "{{ .Values.recordSetId }}"
jobType: "import-job"
jobType: "import-process-deployment"
spec:
selector:
matchLabels:
app: {{ .Values.deploymentName }}
replicas: 1
template:
metadata:
labels:
app: {{ .Values.deploymentName }}
tier: import-process
spec:
restartPolicy: Always
containers:
- name: "{{ .Values.processId }}-{{ .Values.jobName }}"
- name: "{{ .Values.deploymentName }}-container"
image: "{{ .Values.registry }}/{{ .Values.image }}:{{ .Values.tag }}"
imagePullPolicy: Always
envFrom:
- secretRef:
name: "{{ .Values.sftpConfigs }}"
- configMapRef:
name: "{{ .Values.kafkaConfigs }}"
- configMapRef:
name: "{{ .Values.processId }}-{{ .Values.jobName }}-config"
restartPolicy: Never
name: "{{ .Values.deploymentName }}-config"
backoffLimit: 0
......@@ -7,17 +7,16 @@ registry: "cr.gitlab.switch.ch"
image: "memoriav/memobase-2020/services/import-process/media-linker"
tag: "latest"
lastJobName: mapper-service
deploymentName: xml-data-transform
## TODO: This needs to be solved differently. This way it is not possible to deploy a replica-set.
## somehow the id needs to be dependent on the pod name?
applicationId: xml-data-transform-app
kafkaConfigs: prod-kafka-bootstrap-servers
sftpConfigs: internal-sftp-config
############################################
## Values below should be defined via the #
## User Interface (Drupal) #
############################################
jobName: media-linker
processId: p0001
sftpBasePath: /swissbib_index/mb_sftp
institutionId: placeholder
recordSetId: placeholder
sftpBasePath: /swissbib_index/mb_sftp
\ No newline at end of file
inputTopicName: import-process-mapper
outputTopicName: import-process-media-linker
reportingTopicName: import-process-reporting
......@@ -4,7 +4,6 @@ sftp:
user: ${SFTP_USER:?system}
password: ${SFTP_PASSWORD:?system}
app:
recordSetId: ${RECORD_SET_ID:?system}
sftp:
basePath: ${SFTP_BASE_PATH:?system}
kafka:
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment