Skip to content
GitLab
Menu
Projects
Groups
Snippets
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
Table Data Transform
Commits
925d8be7
Commit
925d8be7
authored
Jan 19, 2021
by
Jonas Waeber
Browse files
Merge branch 'master' into feature/refactor-import-process
parents
9a32fc10
ca225542
Pipeline
#20355
failed with stages
in 1 minute and 42 seconds
Changes
4
Pipelines
1
Show whitespace changes
Inline
Side-by-side
build.gradle
View file @
925d8be7
helm-charts/templates/app-config.yaml
View file @
925d8be7
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
}}"
SHEET_INDEX
:
"
{{
.Values.sheetIndex
}}"
HEADER_COUNT
:
"
{{
.Values.headerCount
}}"
HEADER_LINE_INDEX
:
"
{{
.Values.headerLineIndex
}}"
IDENTIFIER_INDEX
:
"
{{
.Values.identifierIndex
}}"
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 @
925d8be7
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
}}"
image
:
"
{{
.Values.registry
}}/{{
.Values.image
}}:{{
.Values.tag
}}"
...
...
@@ -19,6 +26,4 @@ spec:
-
configMapRef
:
name
:
"
{{
.Values.kafkaConfigs
}}"
-
configMapRef
:
name
:
"
{{
.Values.processId
}}-{{
.Values.jobName
}}-config"
restartPolicy
:
Never
backoffLimit
:
0
name
:
"
{{
.Values.deploymentName
}}-config"
\ No newline at end of file
src/main/resources/app.yml
View file @
925d8be7
...
...
@@ -3,12 +3,6 @@ sftp:
port
:
${SFTP_PORT:?system}
user
:
${SFTP_USER:?system}
password
:
${SFTP_PASSWORD:?system}
app
:
sheet
:
${SHEET_INDEX:?user}
header
:
count
:
${HEADER_COUNT:?user}
line
:
${HEADER_LINE_INDEX:?user}
identifier
:
${IDENTIFIER_INDEX:?user}
kafka
:
streams
:
bootstrap.servers
:
${KAFKA_BOOTSTRAP_SERVERS:?system}
...
...
Write
Preview
Supports
Markdown
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