89 lines
3.4 KiB
YAML
89 lines
3.4 KiB
YAML
apiVersion: v1
|
|
kind: ConfigMap
|
|
metadata:
|
|
name: {{ include "property-settings-svc-v2-chart.fullname" . }}-config
|
|
labels:
|
|
{{- include "property-settings-svc-v2-chart.labels" . | nindent 4 }}
|
|
data:
|
|
propertySettingsService.cfg: |
|
|
{
|
|
prod: {
|
|
log_config: "{{ .Values.config.propertySettingsService.prod.logConfig }}",
|
|
property_settings_db_hibernate_config: "{{ .Values.config.propertySettingsService.prod.hibernateConfig }}",
|
|
rest_accessor_config_file: "{{ .Values.config.propertySettingsService.prod.restAccessorConfig }}",
|
|
},
|
|
test: {
|
|
log_config: "{{ .Values.config.propertySettingsService.test.logConfig }}",
|
|
property_settings_db_hibernate_config: "{{ .Values.config.propertySettingsService.test.hibernateConfig }}",
|
|
rest_accessor_config_file: "{{ .Values.config.propertySettingsService.test.restAccessorConfig }}",
|
|
}
|
|
}
|
|
log.cfg: |
|
|
{{ .Values.config.log | indent 4 }}
|
|
prodRestAccessor.cfg: |
|
|
{
|
|
"post_properties":
|
|
{
|
|
"url": "http://prop-property-settings:8080/propertySettingsSvcV2/properties",
|
|
"type": "post",
|
|
"response": "com.sokrati.propertySettingsSvcObjectsV2.PostPropertiesResponse"
|
|
},
|
|
"get_all_properties":
|
|
{
|
|
"url": "http://prop-property-settings:8080/propertySettingsSvcV2/properties",
|
|
"type": "get",
|
|
"response": "com.sokrati.propertySettingsSvcObjectsV2.GetPropertiesResponse"
|
|
},
|
|
"get_best_properties":
|
|
{
|
|
"url": "http://prop-property-settings:8080/propertySettingsSvcV2/properties",
|
|
"type": "get",
|
|
"response": "com.sokrati.propertySettingsSvcObjectsV2.GetPropertiesResponse"
|
|
},
|
|
"fetch_context":
|
|
{
|
|
{{- if .Values.traefik.enabled }}
|
|
"url": "{{ .Values.traefik.hadesUrl }}/hadesV2/context",
|
|
{{- else }}
|
|
"url": "http://hades.hades.svc.cluster.local:8080/hadesV2/context",
|
|
{{- end }}
|
|
"type": "get",
|
|
"response": "com.sokrati.hadesObjects.ContextResponse"
|
|
}
|
|
}
|
|
testRestAccessor.cfg: |
|
|
{
|
|
"post_properties":
|
|
{
|
|
"url": "http://prop-property-settings:8080/propertySettingsSvcV2/properties",
|
|
"type": "post",
|
|
"response": "com.sokrati.propertySettingsSvcObjectsV2.PostPropertiesResponse"
|
|
},
|
|
"get_all_properties":
|
|
{
|
|
"url": "http://prop-property-settings:8080/propertySettingsSvcV2/properties",
|
|
"type": "get",
|
|
"response": "com.sokrati.propertySettingsSvcObjectsV2.GetPropertiesResponse"
|
|
},
|
|
"get_best_properties":
|
|
{
|
|
"url": "http://prop-property-settings:8080/propertySettingsSvcV2/properties",
|
|
"type": "get",
|
|
"response": "com.sokrati.propertySettingsSvcObjectsV2.GetPropertiesResponse"
|
|
},
|
|
"fetch_context":
|
|
{
|
|
{{- if .Values.traefik.enabled }}
|
|
"url": "{{ .Values.traefik.hadesUrl }}/hadesV2/context",
|
|
{{- else }}
|
|
"url": "http://hades.hades.svc.cluster.local:8080/hadesV2/context",
|
|
{{- end }}
|
|
"type": "get",
|
|
"response": "com.sokrati.hadesObjects.ContextResponse"
|
|
}
|
|
}
|
|
authConfig.cfg: |
|
|
{{ .Values.config.auth | indent 4 }}
|
|
statsLogging.cfg: |
|
|
{{ .Values.config.statsLogging | indent 4 }}
|