Skip to content
GitLab
Menu
Projects
Groups
Snippets
Loading...
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
Menu
Open sidebar
memoriav
Memobase 2020
services
Import Process
Mapper Service
Commits
19116e37
Commit
19116e37
authored
Sep 25, 2020
by
Matthias
Browse files
adapt helm charts to new workflow
parent
6628a520
Pipeline
#14785
passed with stages
in 6 minutes and 54 seconds
Changes
4
Pipelines
1
Hide whitespace changes
Inline
Side-by-side
helm-charts/templates/app-config.yml
View file @
19116e37
apiVersion
:
v1
kind
:
ConfigMap
metadata
:
name
:
"
{{
.Values.
processId
}}-{{
.Values.job
Name
}}-config"
name
:
"
{{
.Values.
deployment
Name
}}-config"
namespace
:
memobase
data
:
APPLICATION_ID
:
"
{{
.Values.processId
}}-{{
.Values.jobName
}}"
INSTITUTION_ID
:
"
{{
.Values.institutionId
}}"
RECORD_SET_ID
:
"
{{
.Values.recordSetId
}}"
IS_PUBLISHED
:
"
{{
.Values.isPublished
}}"
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
helm-charts/templates/
job
.yaml
→
helm-charts/templates/
deployment
.yaml
View file @
19116e37
apiVersion
:
batch/v1
kind
:
Job
apiVersion
:
apps/v1
kind
:
Deployment
metadata
:
name
:
"
{{
.Values.
processId
}}-{{
.Values.job
Name
}}
"
name
:
{{
.Values.
deployment
Name
}}
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
:
-
configMapRef
:
name
:
"
{{
.Values.kafkaConfigs
}}"
-
configMapRef
:
name
:
"
{{
.Values.processId
}}-{{
.Values.jobName
}}-config"
volumeMounts
:
-
name
:
config-volume
mountPath
:
"
/configs/mappings/"
volumes
:
-
name
:
config-volume
configMap
:
name
:
"
{{
.Values.processId
}}-{{
.Values.configMapName
}}"
restartPolicy
:
Never
backoffLimit
:
0
name
:
"
{{
.Values.deploymentName
}}-config"
\ No newline at end of file
helm-charts/values.yaml
View file @
19116e37
...
...
@@ -7,21 +7,20 @@ registry: "cr.gitlab.switch.ch"
image
:
"
memoriav/memobase-2020/services/import-process/mapper-service"
tag
:
"
latest"
lastJobName
:
table-data-transform
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
# configMapName holds the name of the config with the mappings for the service.
configMapName
:
mapper-service-mapping-config
############################################
## Values below should be defined via the #
## User Interface (Drupal) #
############################################
jobName
:
mapper-service
processId
:
p0001
institutionId
:
placeholder
recordSetId
:
placeholder
isPublished
:
false
#the filename of the mapping
configFileName
:
mapping.yml
inputTopicName
:
import-process-mapper
outputTopicName
:
import-process-mapper
reportingTopicName
:
import-process-reporting
\ No newline at end of file
src/main/resources/app.yml
View file @
19116e37
app
:
institutionId
:
${INSTITUTION_ID:?user}
recordSetId
:
${RECORD_SET_ID:?user}
configs
:
/configs/mappings
isPublished
:
${IS_PUBLISHED:?user}
kafka
:
streams
:
bootstrap.servers
:
${KAFKA_BOOTSTRAP_SERVERS:?system}
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment