Skip to content

Commit

Permalink
I6 optional auto config entries (#7)
Browse files Browse the repository at this point in the history
Provide optional auto config entries (#7)
  • Loading branch information
thardtke-tt authored Nov 4, 2021
1 parent c96a216 commit 57735af
Show file tree
Hide file tree
Showing 3 changed files with 37 additions and 1 deletion.
2 changes: 1 addition & 1 deletion charts/test-guide/Chart.yaml
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
apiVersion: v2
version: 0.2.0
version: 0.3.0
type: application
name: test-guide
description: TEST-GUIDE is a database application for the overview, analysis and follow-up processing of test procedures, which has been specially developed for use in the automotive sector.
Expand Down
19 changes: 19 additions & 0 deletions charts/test-guide/templates/config-file.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -14,6 +14,7 @@ stringData:
serveradmin.name={{ .Values.serveradmin.name }}
serveradmin.pass={{ .Values.serveradmin.pass }}
serveradmin.mail={{ .Values.serveradmin.mail }}
serveradmin.company={{ .Values.serveradmin.company }}
# Database connection
database.driver={{ .Values.db.driver }}
Expand All @@ -29,10 +30,28 @@ stringData:
database.monitoring.password={{ .Values.dbMonitoring.password }}
{{- end }}
{{ if .Values.dbArtifact -}}
# Artifact database connection
database.artifact.driver={{ .Values.dbArtifact.driver }}
database.artifact.url={{ .Values.dbArtifact.url }}
database.artifact.user={{ .Values.dbArtifact.user }}
database.artifact.password={{ .Values.dbArtifact.password }}
{{- end }}
# Demo initialization
demo.init={{ .Values.initDemo }}
{{ if and (eq .Values.license.type "server") (.Values.license.key) -}}
# License information
license.code={{ .Values.license.key }}
{{- end }}
{{ if .Values.mail -}}
# Configure mail settings
mail.host={{ .Values.mail.host }}
mail.port={{ .Values.mail.port }}
mail.useSsl={{ .Values.mail.useSsl }}
mail.useTls={{ .Values.mail.useTls }}
mail.smtpUsername={{ .Values.mail.smtpUsername }}
mail.smtpUserPassword={{ .Values.mail.UserPassword }}
{{- end }}
17 changes: 17 additions & 0 deletions charts/test-guide/values.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -17,6 +17,7 @@ serveradmin:
name: ServerAdmin
pass: TG-demo1
mail: admin@localhost
company: local

# Configure main database connection
db:
Expand All @@ -32,6 +33,13 @@ dbMonitoring:
user: ATX
password: ATX

# Configure artifact database connection
dbArtifact:
driver: H2
url: jdbc:h2:/app/TTS-TM/TT-Artifact
user: ATX
password: ATX

# Import demo data
initDemo: false

Expand All @@ -46,6 +54,15 @@ baseSettings:
# Default needs to be set to individual value
uuid: 1

# Configure mail settings
mail:
host: mail.localhost
port: 25
useSsl: false
useTls: false
smtpUsername: Example
smtpUserPassword: Example

serviceAccount:
# Specifies whether a service account should be created
create: true
Expand Down

0 comments on commit 57735af

Please sign in to comment.