Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[sophora-metadata-supplier] add option to configure a custom message.properties file #63

Merged
Merged
Changes from all 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: 1 addition & 1 deletion charts/sophora-metadata-supplier/Chart.yaml
Original file line number Diff line number Diff line change
@@ -2,5 +2,5 @@ apiVersion: v2
name: sophora-metadata-supplier
description: Sophora Metadata Supplier (SMS)
type: application
version: 1.0.0
version: 1.1.0
appVersion: '4.14.0'
3 changes: 3 additions & 0 deletions charts/sophora-metadata-supplier/templates/configmap.yaml
Original file line number Diff line number Diff line change
@@ -8,3 +8,6 @@ data:
application.yaml: |- {{ toYaml (required "A valid application.yml config is required" .Values.metadataSupplier.configuration) | nindent 4 }}
loader.properties: |-
loader.path=plugins
{{ if .Values.metadataSupplier.messages}}
messages.properties: |- {{.Values.metadataSupplier.messages | nindent 4 }}
{{- end }}
5 changes: 5 additions & 0 deletions charts/sophora-metadata-supplier/templates/deployment.yaml
Original file line number Diff line number Diff line change
@@ -101,6 +101,11 @@ spec:
name: plugins
- mountPath: /app/data
name: data
{{ if .Values.metadataSupplier.messages}}
- mountPath: /app/i18n/messages.properties
subPath: messages.properties
name: config
{{- end }}
ports:
- name: http
containerPort: 8080
2 changes: 2 additions & 0 deletions charts/sophora-metadata-supplier/values.yaml
Original file line number Diff line number Diff line change
@@ -21,6 +21,8 @@ javaOptions: "-XX:InitialRAMPercentage=50.0 -XX:MaxRAMPercentage=80.0 -XX:+ExitO
metadataSupplier:
configuration:
# This is the application.yaml
messages:
# This is the custom messages.properties
mapping:
source: # "s3" or "sidecar". leave blank for none.
downloadFromS3: